diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-05-07 21:04:45 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-05-07 21:04:45 -0700 |
commit | 888b4cd8eabff44ad10954f26bd4df4497e28617 (patch) | |
tree | 6e890232896f4cfdaa51fad4bcd25fd981b0ef2a /mu-init.subx | |
parent | 61a68452ae84df936e1861e65a331959643ae016 (diff) | |
download | mu-888b4cd8eabff44ad10954f26bd4df4497e28617.tar.gz |
always check for null in 'index' instructions
Diffstat (limited to 'mu-init.subx')
-rw-r--r-- | mu-init.subx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/mu-init.subx b/mu-init.subx index da22b2b3..c1c6b435 100644 --- a/mu-init.subx +++ b/mu-init.subx @@ -12,12 +12,6 @@ Entry: # initialize stack bd/copy-to-ebp 0/imm32 - # Clear memory location 0 to ensure that uninitialized arrays run afoul of - # the bounds checker. - # TODO: This is utterly bonkers, and does not actually protect us against - # all null pointer reads/writes. Create a real page table sometime. - b8/copy-to-eax 0/imm32 - c7 0/subop/copy *eax 0/imm32 # #? (main 0 0 Primary-bus-secondary-drive) # always first run tests |