feat: main function
This commit is contained in:
parent
beb7fb38ae
commit
ba608513e6
10 changed files with 151 additions and 57 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include "memory/pointer.h"
|
||||
|
||||
#include "acpi/discovery.h"
|
||||
#include "cpu/gdt.h"
|
||||
#include "memory/pagetable.h"
|
||||
|
||||
namespace apic {
|
||||
|
|
@ -18,12 +19,13 @@ struct Core {
|
|||
core_id id;
|
||||
stack_t stack;
|
||||
PageTable kernelPageTable;
|
||||
Gdt gdt;
|
||||
};
|
||||
|
||||
optional<Core> initCore(acpi::Madt madt, core_id id);
|
||||
|
||||
void initCores(acpi::discovery_result_t);
|
||||
|
||||
void transitionStartupCore();
|
||||
[[noreturn]] void transitionStartupCore();
|
||||
|
||||
} // namespace apic
|
||||
Loading…
Add table
Add a link
Reference in a new issue