diff --git a/include/panic.h b/include/panic.h deleted file mode 100644 index f96cda6..0000000 --- a/include/panic.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef _KERNEL_PANIC_H -#define _KERNEL_PANIC_H - -#include -#include - -void panic(const char* arr) -{ - - uint8_t color = 0x1F; - uint8_t blank = 0xFF; - - for (size_t y = 0; y < VGA_HEIGHT; y++) - { - for (size_t x = 0; x < VGA_WIDTH; x++) - { - const size_t index = y * VGA_WIDTH + x; - VGA_MEMORY[index] = (uint16_t) ' ' | (uint16_t) blank << 8; - } - } - - int i; - for (i = 0; i < 75; i += 2) - { - VGA_MEMORY[i] = arr[i]; - VGA_MEMORY[i + 1] = color; - } -} - -#endif