LumaOS  v0.1.116
An experimental x86-64 OS
Loading...
Searching...
No Matches
panic.c File Reference

Handler for kernel panics. More...

#include <kernel/vars.h>
#include <lib/kstring.h>
#include <kernel/kprintf.h>
#include <kernel/panic.h>
Include dependency graph for panic.c:

Go to the source code of this file.

Macros

#define MAX_DEPTH   16

Functions

static void hcf (void)
 Halts the CPU.
 __attribute__ ((noreturn))

Detailed Description

Handler for kernel panics.

Author
Matheus Boscariol
Since
02/11/2026

Definition in file panic.c.

Function Documentation

◆ __attribute__()

__attribute__ ( (noreturn) )

Definition at line 23 of file panic.c.

◆ hcf()

void hcf ( void )
static

Halts the CPU.

Definition at line 17 of file panic.c.