]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/SemihostLib: Made arguments 'native' size
authorHarry Liebel <Harry.Liebel@arm.com>
Tue, 25 Mar 2014 11:03:54 +0000 (11:03 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 25 Mar 2014 11:03:54 +0000 (11:03 +0000)
The arguments passed to the semi-hosing backend should
be of 'native' size to match register widths.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15389 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Library/SemihostLib/SemihostPrivate.h

index 02836ca281aff6027c5ac90a64a8a117cfb14ed5..c4bc4c0ec4af12af880781ca8c68201971be5e0c 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
 /** @file\r
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+  Copyright (c) 2013 - 2014, ARM Ltd. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
 \r
 typedef struct {\r
   CHAR8   *FileName;\r
 \r
 typedef struct {\r
   CHAR8   *FileName;\r
-  UINT32  Mode;\r
-  UINT32  NameLength;\r
+  UINTN    Mode;\r
+  UINTN    NameLength;\r
 } SEMIHOST_FILE_OPEN_BLOCK;\r
 \r
 typedef struct {\r
 } SEMIHOST_FILE_OPEN_BLOCK;\r
 \r
 typedef struct {\r
-  UINT32  Handle;\r
+  UINTN    Handle;\r
   VOID    *Buffer;\r
   VOID    *Buffer;\r
-  UINT32  Length;\r
+  UINTN    Length;\r
 } SEMIHOST_FILE_READ_WRITE_BLOCK;\r
 \r
 typedef struct {\r
 } SEMIHOST_FILE_READ_WRITE_BLOCK;\r
 \r
 typedef struct {\r
-  UINT32  Handle;\r
-  UINT32  Location;\r
+  UINTN    Handle;\r
+  UINTN    Location;\r
 } SEMIHOST_FILE_SEEK_BLOCK;\r
 \r
 typedef struct {\r
   CHAR8   *FileName;\r
 } SEMIHOST_FILE_SEEK_BLOCK;\r
 \r
 typedef struct {\r
   CHAR8   *FileName;\r
-  UINT32  NameLength;\r
+  UINTN    NameLength;\r
 } SEMIHOST_FILE_REMOVE_BLOCK;\r
 \r
 typedef struct {\r
   CHAR8   *CommandLine;\r
 } SEMIHOST_FILE_REMOVE_BLOCK;\r
 \r
 typedef struct {\r
   CHAR8   *CommandLine;\r
-  UINT32  CommandLength;\r
+  UINTN    CommandLength;\r
 } SEMIHOST_SYSTEM_BLOCK;\r
 \r
 #if defined(__CC_ARM) \r
 } SEMIHOST_SYSTEM_BLOCK;\r
 \r
 #if defined(__CC_ARM) \r