// test user fault handler being called with no exception stack mapped #include void _pgfault_upcall(); void umain(int argc, char **argv) { sys_env_set_pgfault_upcall(0, (void*) _pgfault_upcall); *(int*)0 = 0; }