#include "mos/platform/platform_defs.h"
#include "mos/syslog/printk.h"
#include <mos/types.h>
#include <stdarg.h>
Go to the source code of this file.
|
#define | MOS_EMIT_PANIC_HOOK(e, f, n) |
|
#define | MOS_PANIC_HOOK_FEAT(_feat, _f, _n) |
|
#define | MOS_PANIC_HOOK(_f, _name) |
|
#define | MOS_MAKE_PANIC_POINT(panic_instruction, file, func, line) |
|
#define | mos_panic(fmt, ...) |
|
#define | mos_panic_inline(fmt, ...) |
|
◆ MOS_EMIT_PANIC_HOOK
#define MOS_EMIT_PANIC_HOOK |
( |
| e, |
|
|
| f, |
|
|
| n ) |
Value:
#define MOS_PUT_IN_SECTION(_section, _struct, _var,...)
Definition at line 30 of file panic.h.
◆ MOS_PANIC_HOOK_FEAT
#define MOS_PANIC_HOOK_FEAT |
( |
| _feat, |
|
|
| _f, |
|
|
| _n ) |
Value:
#define mos_debug_enabled_ptr(name)
#define MOS_EMIT_PANIC_HOOK(e, f, n)
Definition at line 32 of file panic.h.
◆ MOS_PANIC_HOOK
#define MOS_PANIC_HOOK |
( |
| _f, |
|
|
| _name ) |
Value:
Definition at line 33 of file panic.h.
◆ MOS_MAKE_PANIC_POINT
#define MOS_MAKE_PANIC_POINT |
( |
| panic_instruction, |
|
|
| file, |
|
|
| func, |
|
|
| line ) |
Value: __asm__ volatile("1: " panic_instruction "\n\t" \
"\n\t" \
: \
:
"i"(file),
"i"(func),
"i"(
line) \
: "memory")
Definition at line 47 of file panic.h.
◆ mos_panic
#define mos_panic |
( |
| fmt, |
|
|
| ... ) |
Value: do \
{ \
pr_emerg(
fmt, ##__VA_ARGS__); \
__builtin_unreachable(); \
} while (0)
Definition at line 55 of file panic.h.
Referenced by __stack_chk_fail(), acpi_find_rsdp(), cpio_i_iterate_dir(), cpio_read_metadata(), dentry_check_refstat(), dentry_resolve_follow_symlink(), do_handle_sdt_header(), do_iterate_sdts(), extract_exact_range(), futex_wake(), hashmap_init(), initrd_read(), io_mmap(), ipc_client_io_close(), ipc_control_io_close(), ipc_server_io_close(), lapic_memory_setup(), limine_entry(), madt_parse_table(), mm_handle_fault(), mos_start_kernel(), mos_test_engine_run_tests(), platform_ap_entry(), platform_jump_to_signal_handler(), platform_restore_from_signal_handler(), platform_shutdown(), platform_startup_late(), platform_syscall_setup_restart_context(), platform_syscall_store_retval(), process_do_fork(), process_exit(), register_sysfs_acpi_node(), register_sysfs_acpi_rsdp(), slab_allocate_mem(), stack_grow(), stack_pop(), stack_push(), test_engine_warning_handler(), tmpfs_create_inode(), vfs_register_filesystem(), x86_handle_exception(), and x86_handle_nmi().
◆ mos_panic_inline
#define mos_panic_inline |
( |
| fmt, |
|
|
| ... ) |
Value: do \
{ \
pr_emerg(
fmt, ##__VA_ARGS__); \
static const panic_point_t point = { .ip = 0, .file = __FILE__, .line = __LINE__, .func = __func__ }; \
try_handle_kernel_panics_at(&point); \
} while (0)
Definition at line 63 of file panic.h.
◆ kmsg_handler_t
◆ MOS_STATIC_ASSERT()
◆ kwarn_handler_set()
◆ kwarn_handler_remove()
◆ __BEGIN_DECLS()
__BEGIN_DECLS |
( |
3 | , |
|
|
4 | ) const |
◆ try_handle_kernel_panics()
◆ try_handle_kernel_panics_at()
◆ line
◆ fmt