aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86_64/boot.asm
diff options
context:
space:
mode:
authorXander <xander@icth.xyz>2023-06-28 17:20:46 +0200
committerXander <xander@icth.xyz>2023-06-28 17:20:46 +0200
commitb83b28b21571f9b1fadd251295f5ca03d9dfedc7 (patch)
tree0de3d841a23358aedc706fdedc35fec7ff4e773a /src/arch/x86_64/boot.asm
parentebc6738ad4265db0b2b8d1b5c653d8f9597ff335 (diff)
downloadats-os-b83b28b21571f9b1fadd251295f5ca03d9dfedc7.tar.xz
ats-os-b83b28b21571f9b1fadd251295f5ca03d9dfedc7.zip
Booting to protected mode
Diffstat (limited to 'src/arch/x86_64/boot.asm')
-rw-r--r--src/arch/x86_64/boot.asm8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/arch/x86_64/boot.asm b/src/arch/x86_64/boot.asm
new file mode 100644
index 0000000..1a531c0
--- /dev/null
+++ b/src/arch/x86_64/boot.asm
@@ -0,0 +1,8 @@
+global start
+
+section .text
+bits 32
+start:
+ ; print `OK` to screen
+ mov dword [0xb8000], 0x2f4b2f4f
+ hlt