LF OS
Hobby operating system for amd64 with high ambitions
Loading...
Searching...
No Matches
panic.c File Reference

(29312b1 fbconsole, panic: render panic after framebuffer was given to userspace - without clearing screen contents)

#include "panic.h"
#include "config.h"
#include "string.h"
#include "fbconsole.h"
#include "elf.h"
+ Include dependency graph for panic.c:

Go to the source code of this file.

Data Structures

struct  StackFrame
 

Functions

void panic (void)
 
void panic_message (const char *message)
 
void panic_cpu (const cpu_state *cpu)
 

Variables

const char * LAST_INIT_STEP
 
void * kernel_symbols = 0
 

Data Structure Documentation

◆ StackFrame

struct StackFrame

Definition at line 9 of file panic.c.

+ Collaboration diagram for StackFrame:
Data Fields
struct StackFrame * prev
ptr_t rip

Function Documentation

◆ panic()

void panic ( void  )

Definition at line 58 of file panic.c.

References panic_message().

+ Here is the call graph for this function:

◆ panic_cpu()

void panic_cpu ( const cpu_state cpu)

Definition at line 73 of file panic.c.

References DUMP_CPU, elf_symbolize(), cpu_state::error_code, cpu_state::interrupt, kernel_symbols, ksnprintf(), logi, message, cpu_state::rbp, and cpu_state::rip.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ panic_message()

void panic_message ( const char *  message)

Definition at line 64 of file panic.c.

References message.

+ Here is the caller graph for this function:

Variable Documentation

◆ kernel_symbols

void* kernel_symbols = 0

Definition at line 14 of file panic.c.

◆ LAST_INIT_STEP

const char* LAST_INIT_STEP
extern

Definition at line 21 of file main.c.