From 4c5d9c51eb4c3d15574923f734592345efcdc688 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Tue, 21 Aug 2018 02:00:54 +0300 Subject: [PATCH] Fix memory manager init, so now it works on more hardware. Also kernel now requires 11-12 mb ram to boot. --- Boot486/2run.sh | 1 + Boot486/boot0.S | 2 +- Boot486/run.sh | 2 +- Dsw/Mod/Linker.odc | Bin 29618 -> 29617 bytes System/Mod486/Kernel.odc | Bin 85129 -> 85557 bytes 5 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Boot486/2run.sh b/Boot486/2run.sh index 8a26c50..b14f800 100755 --- a/Boot486/2run.sh +++ b/Boot486/2run.sh @@ -15,4 +15,5 @@ bochs -q \ 'ata0-master: type=disk, path="../BlackBox.img", mode=flat' \ 'com1: enabled=1, mode=file, dev=serial.txt' \ 'display_library: x, options="gui_debug"' \ + 'magic_break: enabled=1' \ 2> bochs.log diff --git a/Boot486/boot0.S b/Boot486/boot0.S index 9ff81fa..ef70f6b 100644 --- a/Boot486/boot0.S +++ b/Boot486/boot0.S @@ -19,7 +19,7 @@ .set BootDiskDxAdr, 0x7e06 .set BootDiskCxAdr, 0x7e08 .set MemoryMapAdr, 0x7e0A -.set ImageBase, 0x1000000 +.set ImageBase, 0x100000 # =========================================================================== # # Stage 1 diff --git a/Boot486/run.sh b/Boot486/run.sh index 43e93b0..2044e8a 100755 --- a/Boot486/run.sh +++ b/Boot486/run.sh @@ -1,4 +1,4 @@ #!/bin/sh set -e -qemu-system-i386 -s -m 64M -hda ../BlackBox.img -hdb ../minix.img +qemu-system-i386 -s -m 16M -hda ../BlackBox.img -hdb ../minix.img diff --git a/Dsw/Mod/Linker.odc b/Dsw/Mod/Linker.odc index d12dca6dc38d83fe43b25f1152e5aae25ee904e1..38b5cb8a5bf178528c7db01afbc4b76a43a87bbb 100644 GIT binary patch delta 58 zcmdn=oN?oG#tHR|dJ`MsIBSX+7&sXi7)mBScV(2DtjlQ6sZzkezz-CXnOw?vf{}f* N9g`R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