summaryrefslogtreecommitdiffstats
path: root/src/arch/i386
diff options
context:
space:
mode:
authorMichael Brown2016-02-16 19:49:38 +0100
committerMichael Brown2016-02-16 20:32:32 +0100
commit8819a34c0e588e7007bd8a7a162193ace8186b72 (patch)
treeb85ce189005de22d3cb4a62d39c4e1622c178a2b /src/arch/i386
parent[bios] Allow bios_console.c to be compiled for x86_64 (diff)
downloadipxe-8819a34c0e588e7007bd8a7a162193ace8186b72.tar.gz
ipxe-8819a34c0e588e7007bd8a7a162193ace8186b72.tar.xz
ipxe-8819a34c0e588e7007bd8a7a162193ace8186b72.zip
[bios] Allow memmap.c to be compiled for x86_64
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/i386')
-rw-r--r--src/arch/i386/firmware/pcbios/memmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/i386/firmware/pcbios/memmap.c b/src/arch/i386/firmware/pcbios/memmap.c
index bcacecd6..88bfec9f 100644
--- a/src/arch/i386/firmware/pcbios/memmap.c
+++ b/src/arch/i386/firmware/pcbios/memmap.c
@@ -92,7 +92,7 @@ static unsigned int extmemsize_e801 ( void ) {
"int $0x15\n\t"
"pushfw\n\t"
"popw %w0\n\t" )
- : "=r" ( flags ),
+ : "=R" ( flags ),
"=a" ( extmem_1m_to_16m_k ),
"=b" ( extmem_16m_plus_64k ),
"=c" ( confmem_1m_to_16m_k ),