about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx')
-rw-r--r--subx/010---vm.cc2
-rw-r--r--subx/012elf.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/subx/010---vm.cc b/subx/010---vm.cc
index 7e5b8d79..3744d721 100644
--- a/subx/010---vm.cc
+++ b/subx/010---vm.cc
@@ -112,7 +112,7 @@ SF = ZF = OF = false;
 //:: simulated RAM
 
 :(before "End Types")
-const uint32_t SEGMENT_ALIGNMENT = 0x1000000;
+const uint32_t SEGMENT_ALIGNMENT = 0x1000000;  // 16MB
 inline uint32_t align_upwards(uint32_t x, uint32_t align) {
   return (x+align-1) & -(align);
 }
diff --git a/subx/012elf.cc b/subx/012elf.cc
index 21019d18..47aba102 100644
--- a/subx/012elf.cc
+++ b/subx/012elf.cc
@@ -128,7 +128,7 @@ void load_segment_from_program_header(uint8_t* elf_contents, int segment_index,
 }
 
 :(before "End Includes")
-// Very primitive/fixed/insecure ELF segments for now.
+// Very primitive/fixed/insecure ELF segments for now: just consecutive VMAs.
 //   code: 0x09000000 -> 0x09ffffff
 //   data/heap: 0x0a000000 -> 0x0affffff
 //   stack: 0x0b000ffc -> 0x0b000000 (downward)