From fc83627b14536d0b13b2dd751d09cecbea9db378 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 29 Sep 2020 02:06:41 +0200 Subject: move thread init into arch/ --- lib/arch/x86_64/api.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/arch/x86_64/api.h (limited to 'lib/arch/x86_64/api.h') 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); -- cgit v1.2.3