GDT finally works

This commit is contained in:
2025-08-10 21:29:16 +02:00
parent f8f00cc608
commit 8ee1ea1292
36 changed files with 868 additions and 206 deletions

19
kernel/hal/hal.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef KERNEL_HAL_HAL_H_
#define KERNEL_HAL_HAL_H_
#include <stdint.h>
#include "util.h"
__attribute__((noreturn)) void hal_hang(void);
void hal_init(void);
void hal_intr_disable(void);
void hal_intr_enable(void);
void hal_memset(void *mem, uint8_t v, uint32_t size);
#if defined(__x86_64__)
# define HAL_PAGE_SIZE 0x1000
#endif
#endif // KERNEL_HAL_HAL_H_