17 #ifdef POK_NEEDS_ERROR_HANDLING
20 #include <core/thread.h>
21 #include <core/error.h>
22 #include <core/syscall.h>
24 void pok_error_handler_worker ();
26 pok_ret_t pok_error_handler_create ()
29 stack_size = POK_DEFAULT_STACK_SIZE;
30 return (pok_syscall2 (POK_SYSCALL_ERROR_HANDLER_CREATE, stack_size, (uint32_t)&pok_error_handler_worker));