diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-09-29 02:06:41 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-09-29 02:06:41 +0200 |
commit | fc83627b14536d0b13b2dd751d09cecbea9db378 (patch) | |
tree | 68d42350261fb7769615ceaa8af4187eb2dc571e /lib/arch/x86_64/api.h | |
parent | 38d7af6768871a5d285e776bbcfe18b6e7440cfb (diff) | |
download | matcha-threads-fc83627b14536d0b13b2dd751d09cecbea9db378.tar.gz matcha-threads-fc83627b14536d0b13b2dd751d09cecbea9db378.zip |
move thread init into arch/
Diffstat (limited to 'lib/arch/x86_64/api.h')
-rw-r--r-- | lib/arch/x86_64/api.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/arch/x86_64/api.h b/lib/arch/x86_64/api.h new file mode 100644 index 0000000..b2babc9 --- /dev/null +++ b/lib/arch/x86_64/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); |