From 228fdff4bece78e53f44c79f5478dde7d51a8250 Mon Sep 17 00:00:00 2001 From: Harry Liebel Date: Tue, 25 Mar 2014 11:03:54 +0000 Subject: ArmPkg/SemihostLib: Made arguments 'native' size 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 Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15389 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Library/SemihostLib/SemihostPrivate.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'ArmPkg/Library') diff --git a/ArmPkg/Library/SemihostLib/SemihostPrivate.h b/ArmPkg/Library/SemihostLib/SemihostPrivate.h index 02836ca281..c4bc4c0ec4 100644 --- a/ArmPkg/Library/SemihostLib/SemihostPrivate.h +++ b/ArmPkg/Library/SemihostLib/SemihostPrivate.h @@ -1,6 +1,7 @@ /** @file Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
+ Copyright (c) 2013 - 2014, ARM Ltd. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -17,29 +18,29 @@ typedef struct { CHAR8 *FileName; - UINT32 Mode; - UINT32 NameLength; + UINTN Mode; + UINTN NameLength; } SEMIHOST_FILE_OPEN_BLOCK; typedef struct { - UINT32 Handle; + UINTN Handle; VOID *Buffer; - UINT32 Length; + UINTN Length; } SEMIHOST_FILE_READ_WRITE_BLOCK; typedef struct { - UINT32 Handle; - UINT32 Location; + UINTN Handle; + UINTN Location; } SEMIHOST_FILE_SEEK_BLOCK; typedef struct { CHAR8 *FileName; - UINT32 NameLength; + UINTN NameLength; } SEMIHOST_FILE_REMOVE_BLOCK; typedef struct { CHAR8 *CommandLine; - UINT32 CommandLength; + UINTN CommandLength; } SEMIHOST_SYSTEM_BLOCK; #if defined(__CC_ARM) -- cgit v1.2.3