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