소스 검색

[memmap] Allow for 4GB+ systems in debug message

INT 15,e801 is capable of returning a memory range that extends to
4GB, so allow for this in the debug message that shows the data
returned by INT 15,e801.
tags/v0.9.4
Michael Brown 15 년 전
부모
커밋
0fd1e54026
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      src/arch/i386/firmware/pcbios/memmap.c

+ 3
- 3
src/arch/i386/firmware/pcbios/memmap.c 파일 보기

@@ -86,9 +86,9 @@ static unsigned int extmemsize_e801 ( void ) {
86 86
 	}
87 87
 
88 88
 	extmem = ( extmem_1m_to_16m_k + ( extmem_16m_plus_64k * 64 ) );
89
-	DBG ( "INT 15,e801 extended memory size %d+64*%d=%d kB [100000,%x)\n",
90
-	      extmem_1m_to_16m_k, extmem_16m_plus_64k, extmem,
91
-	      ( 0x100000 + ( extmem * 1024 ) ) );
89
+	DBG ( "INT 15,e801 extended memory size %d+64*%d=%d kB "
90
+	      "[100000,%llx)\n", extmem_1m_to_16m_k, extmem_16m_plus_64k,
91
+	      extmem, ( 0x100000 + ( ( ( uint64_t ) extmem ) * 1024 ) ) );
92 92
 	return extmem;
93 93
 }
94 94
 

Loading…
취소
저장