Move status codes into a separate header
All checks were successful
Build documentation / build-and-deploy (push) Successful in 36s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 36s
This commit is contained in:
@@ -22,7 +22,7 @@ int make_thread (void (*fn) (void)) {
|
||||
size_t stack_size = 256 * PAGE_SIZE;
|
||||
void* stack = malloc (stack_size);
|
||||
if (stack == NULL)
|
||||
return -SR_OOM_ERROR;
|
||||
return -ST_OOM_ERROR;
|
||||
|
||||
uintptr_t stack_top = (uintptr_t)stack + stack_size;
|
||||
return proc_spawn_thread (stack_top, stack_size, (void*)fn);
|
||||
|
||||
Reference in New Issue
Block a user