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 <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
This commit is contained in:
Harry Liebel 2014-03-25 11:03:54 +00:00 committed by oliviermartin
parent b2bd493edb
commit 228fdff4be

View File

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