From 8bc689672480339f6975c94fcce120a46a8fa7df Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 25 Jul 2019 09:50:08 -0700 Subject: 5471 Purge all traces of the old assumption that segment 0 is code and segment 1 is data. --- subx/010---vm.cc | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'subx/010---vm.cc') 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 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. -- cgit 1.4.1-2-gfad0