diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-03-15 09:22:27 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-03-15 09:22:27 -0700 |
commit | 4f73f09f1aa1b3db3abefdbbe202c0352a2c9abe (patch) | |
tree | f47f07a70a06a88f56849366c0e3b54c609bf371 | |
parent | 5a824b6e9a4b423e0210a608cb2fcb67baf83f83 (diff) | |
download | mu-4f73f09f1aa1b3db3abefdbbe202c0352a2c9abe.tar.gz |
.
-rw-r--r-- | boot.subx | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/boot.subx b/boot.subx index 497a5ddb..f73ea2ac 100644 --- a/boot.subx +++ b/boot.subx @@ -50,8 +50,7 @@ # to the address range [0x7c00, 0x7e00) # - starts executing code at address 0x7c00 - # disable interrupts for this initialization - fa/clear-interrupts + fa/disable-interrupts # initialize segment registers b8/copy-to-ax 0/imm16 @@ -277,18 +276,17 @@ initialize_32bit_mode: ## sector 2 onwards loaded by load_disk, not automatically on boot null-interrupt-handler: - cf # iret + cf/return-from-interrupt # padding # 201: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -== data - keyboard-interrupt-handler: # prologue - fa # disable interrupts - 60 # push all registers to stack + fa/disable-interrupts + 60/push-all-registers +== data # acknowledge interrupt b0 20 # al <- 0x20 e6 20 # port 0x20 <- al @@ -437,11 +435,11 @@ keyboard-interrupt-handler: 25 # 00/mod/indirect 100/subop/and 101/rm32/use-disp32 28 80 00 00 # disp32 [label] 0f # imm8 -# 2d9: +== code # epilogue - 61 # pop all registers - fb # enable interrupts - cf # iret + 61/pop-all-registers + fb/enable-interrupts + cf/return-from-interrupt ## the rest of this file is all data |