aboutsummaryrefslogtreecommitdiff
path: root/lib/arch/arm64/api.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arch/arm64/api.h')
-rw-r--r--lib/arch/arm64/api.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/arch/arm64/api.h b/lib/arch/arm64/api.h
new file mode 100644
index 0000000..b2babc9
--- /dev/null
+++ b/lib/arch/arm64/api.h
@@ -0,0 +1,6 @@
+/* Copyright (c) 2020 Johannes Stoelp */
+
+#pragma once
+
+extern "C" void yield(const void* new_stack, void* const* old_stack);
+void* init_stack(void* stack_ptr, void (*entry)(void*), void* ctx);