[SMP] Cpu initialization cleanup

This commit is contained in:
2016-11-20 00:23:47 +01:00
parent 664379b35c
commit f356cc8f95
11 changed files with 126 additions and 43 deletions

View File

@@ -5,6 +5,7 @@
#include <string.h>
#include <multiboot.h>
#include <int.h>
#include <cpu.h>
RSDP_st *find_rsdp()
{
@@ -80,6 +81,8 @@ void parse_MADT(SDT_header *header)
if(f->proc.flags & 0x1)
{
debug(" enabled");
// Add processor and LAPIC to list
cpu_add(f->proc.proc_ID, f->proc.APIC_ID);
}
debug("\n");
break;