aboutsummaryrefslogtreecommitdiff
path: root/source/kernel/arch/x86_64/src/entry.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2023-10-07 11:17:54 +0200
committerFelix Morgner <felix.morgner@ost.ch>2023-10-07 11:17:54 +0200
commit090ba239c5c71c765706019fa2733ed2b28ece8f (patch)
treec8c1f597ae5dc4a7e7d15369f2c49d9c7267cdd9 /source/kernel/arch/x86_64/src/entry.cpp
parentd24a09a7374af2ca413d4553cea4fc8b0a69799f (diff)
downloadteachos-090ba239c5c71c765706019fa2733ed2b28ece8f.tar.xz
teachos-090ba239c5c71c765706019fa2733ed2b28ece8f.zip
kernel: move x86_64 entry point source
Diffstat (limited to 'source/kernel/arch/x86_64/src/entry.cpp')
-rw-r--r--source/kernel/arch/x86_64/src/entry.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/kernel/arch/x86_64/src/entry.cpp b/source/kernel/arch/x86_64/src/entry.cpp
new file mode 100644
index 0000000..0daf227
--- /dev/null
+++ b/source/kernel/arch/x86_64/src/entry.cpp
@@ -0,0 +1,9 @@
+namespace teachos
+{
+ extern "C" auto kernel_main() -> void
+ {
+ while(true) {
+ asm volatile ("nop");
+ }
+ }
+}