aboutsummaryrefslogtreecommitdiff
path: root/lib/arch/arm/api.h
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-02-26 23:19:03 +0100
committerjohannst <johannes.stoelp@gmail.com>2021-02-26 23:19:03 +0100
commit0d881bc974b74dff75c00a3cab5d535cbb2ace46 (patch)
tree35c5892c135d5623879b106e93df4cc235669a8d /lib/arch/arm/api.h
parent5fbee6be76c8751c282b45c54b8179ae525e00c1 (diff)
downloadmatcha-threads-0d881bc974b74dff75c00a3cab5d535cbb2ace46.tar.gz
matcha-threads-0d881bc974b74dff75c00a3cab5d535cbb2ace46.zip
added implementation for armv7a
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);