summaryrefslogtreecommitdiff
path: root/src/kmain.c
diff options
context:
space:
mode:
authorSimon <sgkadesh@icloud.com>2024-01-27 02:18:08 -0500
committerSimon <sgkadesh@icloud.com>2024-01-27 02:18:08 -0500
commitdf2c0ee981f997b8677bb28149272818ae51f926 (patch)
treea249eef7fd55e1ef6f04935e422d19321365c472 /src/kmain.c
parentadd system includes from include (diff)
downloadcorn-df2c0ee981f997b8677bb28149272818ae51f926.tar.gz
corn-df2c0ee981f997b8677bb28149272818ae51f926.tar.bz2
corn-df2c0ee981f997b8677bb28149272818ae51f926.zip
Added basic long mode setup
Diffstat (limited to '')
-rw-r--r--src/kmain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kmain.c b/src/kmain.c
index 9f4d63d..048cec0 100644
--- a/src/kmain.c
+++ b/src/kmain.c
@@ -1,5 +1,6 @@
void kmain() {
+ *(char*)0xB8000 = 'c';
while(1) {
- asm("cli; hlt");
+ __asm("cli; hlt");
}
}