about summary refs log tree commit diff stats
path: root/subx/012elf.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-12-28 11:12:19 -0800
committerKartik Agaram <vc@akkartik.com>2018-12-28 11:14:29 -0800
commit6a7eaa81eea991cd459f295c2dd3882c8528187c (patch)
treeeec627b325f1bfd12f5477850830f52f8820d95e /subx/012elf.cc
parent51bf3554b79ebfea92f494e891837a03d656c2fd (diff)
downloadmu-6a7eaa81eea991cd459f295c2dd3882c8528187c.tar.gz
4883 - rudimentary memory allocator
Diffstat (limited to 'subx/012elf.cc')
-rw-r--r--subx/012elf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/012elf.cc b/subx/012elf.cc
index 4d1ae19d..21019d18 100644
--- a/subx/012elf.cc
+++ b/subx/012elf.cc
@@ -133,7 +133,7 @@ void load_segment_from_program_header(uint8_t* elf_contents, int segment_index,
 //   data/heap: 0x0a000000 -> 0x0affffff
 //   stack: 0x0b000ffc -> 0x0b000000 (downward)
 const int CODE_SEGMENT = 0x09000000;
-const int DATA_SEGMENT = 0x0a000000;
+const int DATA_SEGMENT = 0x0a000000;  // keep sync'd with `Heap.limit` in allocate.subx
 const int STACK_SEGMENT = 0x0b000000;
 const int AFTER_STACK = 0x0c000000;
 const int ARGV_DATA_SEGMENT = 0x0c000000;