![]() |
MOS Source Code
|
#include "mos/misc/power.hpp"#include "mos/syslog/syslog.hpp"#include <mos/interrupt/ipi.hpp>#include <mos/lib/structures/list.hpp>#include <mos/misc/cmdline.hpp>#include <mos/misc/panic.hpp>#include <mos/misc/setup.hpp>#include <mos/platform/platform.hpp>#include <mos/syslog/printk.hpp>#include <mos_stdio.hpp>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 | handle_kernel_panic (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 18 of file panic.cpp.
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 37 of file panic.cpp.
Referenced by mos_test_engine_run_tests().
Definition at line 43 of file panic.cpp.
Referenced by mos_test_engine_run_tests().
|
static |
Definition at line 54 of file panic.cpp.
Referenced by try_handle_kernel_panics().
Definition at line 68 of file panic.cpp.
Referenced by riscv64_trap_handler(), and x86_handle_exception().
| void handle_kernel_panic | ( | const panic_point_t * | point | ) |
Definition at line 79 of file panic.cpp.
Referenced by try_handle_kernel_panics().
|
static |
Definition at line 28 of file panic.cpp.
Referenced by kwarn_handler_remove(), kwarn_handler_set(), and mos_kwarn().
Definition at line 29 of file panic.cpp.
Referenced by handle_kernel_panic(), and MOS_EARLY_SETUP().
|
extern |
Referenced by find_panic_point().
| const panic_point_t __MOS_PANIC_LIST_END[] |
Definition at line 51 of file panic.cpp.
Referenced by find_panic_point().
|
extern |
Referenced by handle_kernel_panic().
| const panic_hook_t __MOS_PANIC_HOOKS_END[] |
Definition at line 52 of file panic.cpp.
Referenced by handle_kernel_panic().