summaryrefslogtreecommitdiff
path: root/src/platform/asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/asm.h')
-rw-r--r--src/platform/asm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/platform/asm.h b/src/platform/asm.h
new file mode 100644
index 0000000..6f72617
--- /dev/null
+++ b/src/platform/asm.h
@@ -0,0 +1,9 @@
+#pragma once
+
+// boot.s
+__attribute__((noreturn))
+void halt_cpu();
+
+// sysenter.c
+void sysexit(void (*fun)(), void *stack_top);
+void sysenter_setup();