revert apic change

this is now on its own branch and will be worked on separately from the
main focus of this project, which is to get a VFS and into userspace as
soon as possible
This commit is contained in:
Michael Shaw 2023-04-22 14:46:40 -04:00
commit 9cf4b71559
5 changed files with 7 additions and 20 deletions

View file

@ -8,7 +8,6 @@
#include <kernel/pio.h>
#include <dev/pic.h>
#include <dev/apic.h>
#include <dev/console.h>
#include <dev/serial.h>
@ -16,6 +15,8 @@
#define KSTACK_SIZE 0x4000
void stack_init(uintptr_t rsp, uintptr_t rbp);
struct limine_hhdm_request hhdm_req = { .id = LIMINE_HHDM_REQUEST, .revision = 0 };
uintptr_t hhdm_start;
@ -23,8 +24,6 @@ uintptr_t data_end;
uintptr_t bss_start;
uintptr_t bss_end;
void stack_init(uintptr_t rsp, uintptr_t rbp);
void yield()
{
for (;;) {
@ -64,10 +63,7 @@ void kmain(void)
mem_early_init(kmem, one_gb);
kmalloc_init();
cli();
acpi_init();
apic_init();
sti();
_pic_init();
printf("\n# ");