GDT finally works
This commit is contained in:
19
kernel/hal/hal.h
Normal file
19
kernel/hal/hal.h
Normal 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_
|
Reference in New Issue
Block a user