mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
This patch allows me to compile openbios using the cross-pcc target
on amd64 host. Signed-off-by: Laurent Vivier <Laurent@lvivier.info> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/openbios/openbios-devel@251 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Stefan Reinauer
parent
e5bc7e8990
commit
71033f7bb8
@@ -47,7 +47,7 @@ static FILE *srcfiles[128];
|
||||
static unsigned int cursrc = 0;
|
||||
|
||||
#ifdef NATIVE_BITWIDTH_SMALLER_THAN_HOST_BITWIDTH
|
||||
ucell base_address;
|
||||
unsigned long base_address;
|
||||
#endif
|
||||
|
||||
/* include path handling */
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef NATIVE_BITWIDTH_SMALLER_THAN_HOST_BITWIDTH
|
||||
extern ucell base_address;
|
||||
extern unsigned long base_address;
|
||||
#define pointer2cell(x) ((ucell)(((unsigned long)(x))-base_address))
|
||||
#define cell2pointer(x) ((u8 *)(((unsigned long)(x))+base_address))
|
||||
#define FMT_CELL_x "x"
|
||||
|
||||
Reference in New Issue
Block a user