From 3b4a6097dee760d22eecd97ebe041c69da6b056a Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 8 Oct 2020 20:14:42 +0200 Subject: remove incorrect const --- lib/arch/x86_64/init_stack.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/arch/x86_64/init_stack.cc') 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 -- cgit v1.2.3