20 lines
364 B
C
20 lines
364 B
C
#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_
|