Added late gdt setup with initial tss Moved attributes to include root Reordered some imports
16 lines
398 B
C
16 lines
398 B
C
//
|
|
// Created by rick on 03-03-21.
|
|
//
|
|
|
|
#include <attributes.h>
|
|
|
|
#include <myke/drivers/ports.h>
|
|
#include <myke/libk/libk.h>
|
|
#include <myke/util/power.h>
|
|
|
|
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);
|
|
k_panics("Failed to shut down!\n");
|
|
} |