blu_os
Loading...
Searching...
No Matches
kal.h
1//
2// Created by dylan on 17/07/2026.
3//
4
5#ifndef BLU_OS_HAL_H
6#define BLU_OS_HAL_H
7
8#include <kernel/thread/thread.h>
9#include <stddef.h>
10#include <stdint.h>
11#include "arch/x86/i386/mmu/physicalmemorymanager.h"
12
13void kalInitGdt();
14
15void kalInitIdt();
16
17void kalInitPhysicalMemoryManager(size_t memSizeInMb);
18
19void kalMarkRangeUsed(physical_addr_t address, size_t size);
20
21void kalInitVirtualMemoryManager();
22
23void kalThreadSetupStack(Thread* t);
24
25void kalInitTimer(uint32_t freqHz);
26
27void kalInitTss(void);
28
29void kalLoadTss(uint16_t selector);
30
31uint64_t timerWallClockUnixMs(void);
32
33#endif // BLU_OS_HAL_H
Common definitions for C programs.
Fixed-width integer types.