add: kpanic
This commit is contained in:
@ -6,3 +6,5 @@ struct stackframe {
|
||||
struct stackframe *ebp;
|
||||
uint32_t eip;
|
||||
};
|
||||
|
||||
void print_stack(void);
|
3
headers/kpanic.h
Normal file
3
headers/kpanic.h
Normal file
@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
void kpanic(const char *format, ...);
|
4
headers/power.h
Normal file
4
headers/power.h
Normal file
@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
void reboot(void);
|
||||
void halt(void);
|
@ -1,5 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "debug.h"
|
||||
#include "power.h"
|
||||
|
||||
#define PROMPT "> "
|
||||
|
||||
[[__maybe_unused__]] static const char *POOP =
|
||||
@ -44,8 +47,5 @@
|
||||
"\n";
|
||||
|
||||
void shell_init(void);
|
||||
void reboot(void);
|
||||
void halt(void);
|
||||
void print_stack(void);
|
||||
void date(void);
|
||||
void merdella(void);
|
||||
|
@ -41,7 +41,8 @@ typedef enum {
|
||||
enum cursor_direction { LEFT, RIGHT, UP, DOWN };
|
||||
|
||||
void terminal_initialize(void);
|
||||
void terminal_setcolor(uint8_t color);
|
||||
void terminal_set_bg_color(uint8_t color);
|
||||
void terminal_set_fg_color(uint8_t color);
|
||||
int terminal_putchar(char c);
|
||||
int terminal_write(const char *data, size_t size);
|
||||
int terminal_writestring(const char *data);
|
||||
|
Reference in New Issue
Block a user