VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/ipxe/contrib/vm/bochs-writable-ROM-patch

Last change on this file was 95666, checked in by vboxsync, 2 years ago

Devices/PC/ipxe: scm fixes and export to OSE, bugref:10254

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 606 bytes
Line 
1--- memory/memory.cc 18 Oct 2008 18:10:14 -0000 1.71
2+++ memory/memory.cc 21 Oct 2008 19:47:07 -0000
3@@ -172,7 +172,11 @@
4 break;
5
6 case 0x0: // Writes to ROM, Inhibit
7- BX_DEBUG(("Write to ROM ignored: address 0x" FMT_PHY_ADDRX ", data %02x", a20addr, *data_ptr));
8+ if ((a20addr & 0xfffe0000) == 0x000e0000) {
9+ BX_DEBUG(("Write to ROM ignored: address 0x" FMT_PHY_ADDRX ", data %02x", a20addr, *data_ptr));
10+ } else {
11+ BX_MEM_THIS rom[(a20addr & EXROM_MASK) + BIOSROMSZ] = *data_ptr;
12+ }
13 break;
14
15 default:
Note: See TracBrowser for help on using the repository browser.

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