PebbleOS v4.48.0-75-g7416f78a1
Loading...
Searching...
No Matches
fatal.h File Reference
#include <stdint.h>
#include <pbl/kernel/compiler.h>

Data Structures

struct  pbl_fault_info
 CPU fault, as handed to the fault handlers. More...
 

Macros

#define pbl_panic(...)   PBL_PANIC_SELECT(__VA_OPT__(MESSAGE))(__VA_ARGS__)
 Stop the system.
 

Enumerations

enum  pbl_fault_reason {
  PBL_FAULT_STACK_OVERFLOW , PBL_FAULT_MEMORY , PBL_FAULT_BUS , PBL_FAULT_USAGE ,
  PBL_FAULT_HARD
}
 Cause of a CPU fault. More...
 

Functions

void pbl_fatal_error_handler (uintptr_t lr)
 Handle a fatal error.
 
void pbl_fault_fatal_record (const struct pbl_fault_info *info)
 Record a CPU fault the system can't recover from.
 
void pbl_fault_fatal_handler (const struct pbl_fault_info *info)
 Handle a CPU fault the system can't recover from.
 
void pbl_fault_thread_handler (const struct pbl_fault_info *info)
 Handle a CPU fault in an unprivileged thread.