feat: gdt, attributes move, reorder

Added late gdt setup with initial tss
Moved attributes to include root
Reordered some imports
This commit is contained in:
2021-03-21 17:34:38 +01:00
parent 513693189e
commit 20ab9e1d6e
28 changed files with 351 additions and 121 deletions

View File

@@ -2,12 +2,13 @@
// Created by rick on 03-03-21.
//
#include <attributes.h>
#include <myke/drivers/ports.h>
#include <myke/attributes.h>
#include <myke/libk/libk.h>
#include <myke/util/power.h>
void noreturn power_shutdown() {
void att_noreturn power_shutdown() {
port_word_out(PORT_ACPI, PORT_ACPI_SHUTDOWN);
port_word_out(PORT_QEMU_COMMAND, PORT_QEMU_COMMAND_SHUTDOWN);
port_word_out(PORT_VBOX, PORT_VBOX_SHUTDOWN);