about summary refs log tree commit diff stats
path: root/boot.subx
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-03-14 23:34:41 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-03-14 23:34:41 -0700
commit174925e6f9166b388dcc1d287c97f45ca26adbf6 (patch)
tree8b1b9194570562e268f6b90144c94a11710bb590 /boot.subx
parent4f7758fa1598c04062b24eee3afbec446ecd6b67 (diff)
downloadmu-174925e6f9166b388dcc1d287c97f45ca26adbf6.tar.gz
.
Diffstat (limited to 'boot.subx')
-rw-r--r--boot.subx12
1 files changed, 6 insertions, 6 deletions
diff --git a/boot.subx b/boot.subx
index d1d8a3bc..926b744f 100644
--- a/boot.subx
+++ b/boot.subx
@@ -235,15 +235,15 @@ initialize_32bit_mode:
   8e/seg-> 3/mod/direct 0/rm32/ax 4/r32/fs
   8e/seg-> 3/mod/direct 0/rm32/ax 5/r32/gs
 
-== data
-
-# 10e:
-  bc 00 00 07 00  # esp <- 0x00070000
+  bc/copy-to-esp 0x00070000/imm32
 
-# 113:
   # load interrupt handlers
-  0f 01 1d  # lidt 00/mod/indirect 011/subop 101/rm32/use-disp32
+  0f 01/lidt 0/mod/indirect 3/subop/lidt 5/rm32/use-disp32
+== data
     00 80 00 00  # *idt_descriptor [label]
+== code
+
+== data
 
   # For now, not bothering reprogramming the IRQ to not conflict with software
   # exceptions.