aboutsummaryrefslogtreecommitdiff
path: root/lib/arch/arm64/api.h
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-09-29 04:31:51 +0200
committerjohannst <johannes.stoelp@gmail.com>2020-09-29 04:31:51 +0200
commit533a9e57de8cb74594499f625810ad812359d3fb (patch)
tree8e8eed62ab86416170b4c9716b36bae736d6b3a8 /lib/arch/arm64/api.h
parent48142327c37f716da307bd4a9b22576ad0a67c22 (diff)
downloadmatcha-threads-533a9e57de8cb74594499f625810ad812359d3fb.tar.gz
matcha-threads-533a9e57de8cb74594499f625810ad812359d3fb.zip
added basic arm64 support
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);