瀏覽代碼

[bios] Allow memmap.c to be compiled for x86_64

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 年之前
父節點
當前提交
8819a34c0e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/arch/i386/firmware/pcbios/memmap.c

+ 1
- 1
src/arch/i386/firmware/pcbios/memmap.c 查看文件

@@ -92,7 +92,7 @@ static unsigned int extmemsize_e801 ( void ) {
92 92
 					   "int $0x15\n\t"
93 93
 					   "pushfw\n\t"
94 94
 					   "popw %w0\n\t" )
95
-			       : "=r" ( flags ),
95
+			       : "=R" ( flags ),
96 96
 				 "=a" ( extmem_1m_to_16m_k ),
97 97
 				 "=b" ( extmem_16m_plus_64k ),
98 98
 				 "=c" ( confmem_1m_to_16m_k ),

Loading…
取消
儲存