about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-04-25 08:08:47 -0700
committerKartik Agaram <vc@akkartik.com>2021-04-25 08:08:47 -0700
commit8185a605c6cf1995477954aa7868785e770f1c69 (patch)
treee1c69127a22fdeb1f3ae0cddf39bf4b5eefb8eeb
parent9c3e2821c120aefe252812700f36ba9d6eeb50d8 (diff)
downloadmu-8185a605c6cf1995477954aa7868785e770f1c69.tar.gz
expand heap to Qemu default
-rw-r--r--120allocate.subx2
-rw-r--r--boot.subx4
2 files changed, 3 insertions, 3 deletions
diff --git a/120allocate.subx b/120allocate.subx
index 38c4110b..639b9635 100644
--- a/120allocate.subx
+++ b/120allocate.subx
@@ -28,7 +28,7 @@ Heap:  # allocation-descriptor
   # curr
   0x01000000/imm32  # 16 MB
   # limit
-  0x02000000/imm32  # 32 MB
+  0x08000000/imm32  # 128 MB is how much RAM Qemu models by default
 
 Next-alloc-id:  # int
   0x100/imm32  # save a few alloc ids for fake handles
diff --git a/boot.subx b/boot.subx
index 8f9667b6..7b355ff6 100644
--- a/boot.subx
+++ b/boot.subx
@@ -17,8 +17,8 @@
 # Memory map of a Mu computer:
 #   code: currently 4 tracks loaded from the primary disk to [0x00007c00, 0x00048600)
 #   stack: grows down from 0x00070000
-#   heap: [0x01000000, 0x02000000)
-#     see 120allocate.subx
+#   heap: [0x01000000, 0x08000000)
+#     see 120allocate.subx; Qemu initializes with 128MB RAM by default
 # Consult https://wiki.osdev.org/Memory_Map_(x86) before modifying any of
 # this. And don't forget to keep *stack-debug.subx in sync.