summaryrefslogtreecommitdiff
path: root/src/arch/amd64/boot.S
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-01-29 18:05:26 -0500
committerFreya Murphy <freya@freyacat.org>2024-01-29 18:05:26 -0500
commit36d7dad0708039ee94fcfd7ed4b21d5cc76634e1 (patch)
treed5c9ac5de709c7884fe9d7071d6dec5506958102 /src/arch/amd64/boot.S
parentadd interrupts (not yet fully working) (diff)
downloadcorn-36d7dad0708039ee94fcfd7ed4b21d5cc76634e1.tar.gz
corn-36d7dad0708039ee94fcfd7ed4b21d5cc76634e1.tar.bz2
corn-36d7dad0708039ee94fcfd7ed4b21d5cc76634e1.zip
things
Diffstat (limited to 'src/arch/amd64/boot.S')
-rw-r--r--src/arch/amd64/boot.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/amd64/boot.S b/src/arch/amd64/boot.S
index 483f0f0..c6145d5 100644
--- a/src/arch/amd64/boot.S
+++ b/src/arch/amd64/boot.S
@@ -135,6 +135,11 @@ start:
bits 64
code64:
+
+ mov dx, 16
+ mov ds, dx
+ mov ss, dx
+
pop rdi
call amd64_shim
mov rdi, rax