diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:49:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:49:04 +0000 |
commit | 16f504a9dca3fe3b70568f67b7d41241ae485288 (patch) | |
tree | c60f36ada0496ba928b7161059ba5ab1ab224f9d /src/VBox/Devices/PC/ipxe/contrib/vm/bochs-writable-ROM-patch | |
parent | Initial commit. (diff) | |
download | virtualbox-upstream.tar.xz virtualbox-upstream.zip |
Adding upstream version 7.0.6-dfsg.upstream/7.0.6-dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/VBox/Devices/PC/ipxe/contrib/vm/bochs-writable-ROM-patch')
-rw-r--r-- | src/VBox/Devices/PC/ipxe/contrib/vm/bochs-writable-ROM-patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/VBox/Devices/PC/ipxe/contrib/vm/bochs-writable-ROM-patch b/src/VBox/Devices/PC/ipxe/contrib/vm/bochs-writable-ROM-patch new file mode 100644 index 00000000..dc586dde --- /dev/null +++ b/src/VBox/Devices/PC/ipxe/contrib/vm/bochs-writable-ROM-patch @@ -0,0 +1,15 @@ +--- memory/memory.cc 18 Oct 2008 18:10:14 -0000 1.71 ++++ memory/memory.cc 21 Oct 2008 19:47:07 -0000 +@@ -172,7 +172,11 @@ + break; + + case 0x0: // Writes to ROM, Inhibit +- BX_DEBUG(("Write to ROM ignored: address 0x" FMT_PHY_ADDRX ", data %02x", a20addr, *data_ptr)); ++ if ((a20addr & 0xfffe0000) == 0x000e0000) { ++ BX_DEBUG(("Write to ROM ignored: address 0x" FMT_PHY_ADDRX ", data %02x", a20addr, *data_ptr)); ++ } else { ++ BX_MEM_THIS rom[(a20addr & EXROM_MASK) + BIOSROMSZ] = *data_ptr; ++ } + break; + + default: |