diff options
Diffstat (limited to 'lib/arch/x86_64/init_stack.cc')
-rw-r--r-- | lib/arch/x86_64/init_stack.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arch/x86_64/init_stack.cc b/lib/arch/x86_64/init_stack.cc index 748fb56..c249bc8 100644 --- a/lib/arch/x86_64/init_stack.cc +++ b/lib/arch/x86_64/init_stack.cc @@ -3,7 +3,7 @@ extern "C" void thread_create(); -void* init_stack(void* stack_ptr, void (*entry)(void*), void* ctx) { +void* init_stack(void* stack_ptr, void (*entry)(void*), const void* ctx) { static_assert(sizeof(uint64_t) == sizeof(std::uintptr_t), "Pointer must be 64bit!"); // Setup initial stack frame which will be popped when yielding |