VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/edk2.patch-memdetect@ 30230

Last change on this file since 30230 was 30230, checked in by vboxsync, 15 years ago

EFI: fix of vbox/7002.

File size: 456 bytes
Line 
1Index: OvmfPkg/PlatformPei/MemDetect.c
2===================================================================
3--- OvmfPkg/PlatformPei/MemDetect.c (revision 9332)
4+++ OvmfPkg/PlatformPei/MemDetect.c (working copy)
5@@ -53,7 +53,7 @@
6 Cmos0x34 = (UINT8) CmosRead8 (0x34);
7 Cmos0x35 = (UINT8) CmosRead8 (0x35);
8
9- return ((((Cmos0x35 << 8) + Cmos0x34) << 16) + SIZE_16MB);
10+ return ((((UINTN)(Cmos0x35 << 8) + Cmos0x34) << 16) + SIZE_16MB);
11 }
12
13
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette