Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[contrib] Add contrib/vm, containing utilities from old contrib/bochs
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Sep 22, 2010
1 parent c4af205 commit 041f01e
Show file tree
Hide file tree
Showing 6 changed files with 1,246 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/vm/.gitignore
@@ -0,0 +1,6 @@
bochsout.txt
parport.out
ne2k-tx.log
ne2k-txdump.txt
bochs
qemu
7 changes: 7 additions & 0 deletions contrib/vm/Makefile
@@ -0,0 +1,7 @@
all : serial-console.1

%.1 : %
pod2man $< > $@

clean :
rm -f serial-console.1
15 changes: 15 additions & 0 deletions 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:

0 comments on commit 041f01e

Please sign in to comment.