diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-05-11 23:10:42 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-05-11 23:11:34 -0700 |
commit | d5d43e044d16335a3a865a8c9f5aea5cbad73360 (patch) | |
tree | 31d52d72e2a7babf378f421a4ed85242e9d76135 /subx/012elf.cc | |
parent | e59a74abddaf0b4f9a39432da21c6a98eae46df6 (diff) | |
download | mu-d5d43e044d16335a3a865a8c9f5aea5cbad73360.tar.gz |
5157
Support allocating more than 0x01000000 bytes (8MB) to a segment in the VM.
Diffstat (limited to 'subx/012elf.cc')
-rw-r--r-- | subx/012elf.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subx/012elf.cc b/subx/012elf.cc index 2fea60db..0fa9d793 100644 --- a/subx/012elf.cc +++ b/subx/012elf.cc @@ -149,7 +149,9 @@ void load_segment_from_program_header(uint8_t* elf_contents, int segment_index, // Once we do, we can go up to 0xc0000000; higher addresses are reserved for // the Linux kernel. const int CODE_SEGMENT = 0x09000000; -const int DATA_SEGMENT = 0x0a000000; +const int DATA_SEGMENT = 0x0a000000; +const int START_HEAP = 0x0b000000; +const int END_HEAP = 0x7d000000; const int STACK_SEGMENT = 0x7d000000; const int AFTER_STACK = 0x7e000000; const int ARGV_DATA_SEGMENT = 0x7f000000; |