From bb9615202a4842efc368568e808f9917527e46c5 Mon Sep 17 00:00:00 2001 From: david-on-debian Date: Sun, 6 Jul 2025 15:01:38 -0500 Subject: [PATCH] Delete include/panic.h --- include/panic.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 include/panic.h 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