2022-06-18 00:44:37 +02:00
|
|
|
#include "hal.h"
|
2022-06-18 01:53:28 +02:00
|
|
|
#include "../arch/i686/gdt.h"
|
2022-06-18 00:44:37 +02:00
|
|
|
#include "../arch/i686/idt.h"
|
2022-06-18 03:56:45 +02:00
|
|
|
#include "../arch/i686/isr.h"
|
2022-08-15 01:34:15 +02:00
|
|
|
#include "../arch/i686/pit.h"
|
2022-06-18 00:44:37 +02:00
|
|
|
|
|
|
|
void hal_initialize(){
|
2022-06-18 01:53:28 +02:00
|
|
|
i686_gdt_initialize();
|
2022-06-18 00:44:37 +02:00
|
|
|
i686_idt_initialize();
|
2022-06-18 03:56:45 +02:00
|
|
|
i686_isr_initialize();
|
2022-08-15 01:34:15 +02:00
|
|
|
i686_pit_initialize();
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t hal_get_tick_count(){
|
|
|
|
return i686_pit_get_tick_count();
|
2022-06-18 00:44:37 +02:00
|
|
|
}
|