From 888b4cd8eabff44ad10954f26bd4df4497e28617 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 7 May 2021 21:04:45 -0700 Subject: always check for null in 'index' instructions --- mu-init.subx | 6 ------ 1 file changed, 6 deletions(-) (limited to 'mu-init.subx') 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 -- cgit 1.4.1-2-gfad0