diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-07-25 09:50:08 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-07-25 09:50:18 -0700 |
commit | 8bc689672480339f6975c94fcce120a46a8fa7df (patch) | |
tree | 9faef2128f1194d4a3d332bad96b846ca7dfd492 /subx/010---vm.cc | |
parent | dd92b23f539a3a1f19020ff60777aa3372a26e05 (diff) | |
download | mu-8bc689672480339f6975c94fcce120a46a8fa7df.tar.gz |
5471
Purge all traces of the old assumption that segment 0 is code and segment 1 is data.
Diffstat (limited to 'subx/010---vm.cc')
-rw-r--r-- | subx/010---vm.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/subx/010---vm.cc b/subx/010---vm.cc index 82a7d2f5..52b6b597 100644 --- a/subx/010---vm.cc +++ b/subx/010---vm.cc @@ -156,17 +156,6 @@ void sanity_check(uint32_t start, uint32_t end) { // RAM is made of VMAs. vector<vma> Mem; :(code) -// The first 3 VMAs are special. When loading ELF binaries in later layers, -// we'll assume that the first VMA is for code, the second is for data -// (including the heap), and the third for the stack. -void grow_code_segment(uint32_t new_end_address) { - assert(!Mem.empty()); - Mem.at(0).grow_until(new_end_address); -} -void grow_data_segment(uint32_t new_end_address) { - assert(SIZE(Mem) > 1); - Mem.at(1).grow_until(new_end_address); -} :(before "End Globals") uint32_t End_of_program = 0; // when the program executes past this address in tests we'll stop the test // The stack grows downward. Can't increase its size for now. |