MOS Source Code
|
#include "mos/misc/power.h"
#include <mos/interrupt/ipi.h>
#include <mos/lib/structures/list.h>
#include <mos/misc/cmdline.h>
#include <mos/misc/panic.h>
#include <mos/misc/setup.h>
#include <mos/platform/platform.h>
#include <mos/syslog/printk.h>
#include <mos_stdio.h>
Go to the source code of this file.
Functions | |
void | __stack_chk_fail (void) |
void | __stack_chk_fail_local (void) |
MOS_EARLY_SETUP ("poweroff_on_panic", setup_poweroff_on_panic) | |
void | kwarn_handler_set (kmsg_handler_t *handler) |
void | kwarn_handler_remove (void) |
static const panic_point_t * | find_panic_point (ptr_t ip) |
void | try_handle_kernel_panics (ptr_t ip) |
void | try_handle_kernel_panics_at (const panic_point_t *point) |
void | mos_kwarn (const char *func, u32 line, const char *fmt,...) |
Variables | |
u64 | __stack_chk_guard = 0 |
static kmsg_handler_t * | kwarn_handler = NULL |
static bool | poweroff_on_panic = false |
const panic_point_t | __MOS_PANIC_LIST_START [] |
const panic_point_t | __MOS_PANIC_LIST_END [] |
const panic_hook_t | __MOS_PANIC_HOOKS_START [] |
const panic_hook_t | __MOS_PANIC_HOOKS_END [] |
Definition at line 17 of file panic.c.
Referenced by __stack_chk_fail_local().
MOS_EARLY_SETUP | ( | "poweroff_on_panic" | , |
setup_poweroff_on_panic | ) |
void kwarn_handler_set | ( | kmsg_handler_t * | handler | ) |
Definition at line 36 of file panic.c.
Referenced by mos_test_engine_run_tests().
Definition at line 42 of file panic.c.
Referenced by mos_test_engine_run_tests().
|
static |
Definition at line 53 of file panic.c.
Referenced by try_handle_kernel_panics().
Definition at line 67 of file panic.c.
Referenced by riscv64_trap_handler(), and x86_handle_exception().
void try_handle_kernel_panics_at | ( | const panic_point_t * | point | ) |
Definition at line 78 of file panic.c.
Referenced by try_handle_kernel_panics().
|
static |
Definition at line 27 of file panic.c.
Referenced by kwarn_handler_remove(), kwarn_handler_set(), and mos_kwarn().
Definition at line 28 of file panic.c.
Referenced by MOS_EARLY_SETUP(), and try_handle_kernel_panics_at().
|
extern |
Referenced by find_panic_point().
const panic_point_t __MOS_PANIC_LIST_END[] |
Definition at line 50 of file panic.c.
Referenced by find_panic_point().
|
extern |
Referenced by try_handle_kernel_panics_at().
const panic_hook_t __MOS_PANIC_HOOKS_END[] |
Definition at line 51 of file panic.c.
Referenced by try_handle_kernel_panics_at().