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

@@ -8,7 +8,7 @@
#include <sys/types.h>
#include <myke/driver.h>
#include <stdbool.h>
#include <myke/attributes.h>
#include <attributes.h>
#define PCI_CLASS_MASS_STORAGE 0x01
#define PCI_CLASS_BRIDGE 0x06
@@ -190,7 +190,7 @@ typedef union {
bool fast_b2b_enable: 1;
bool interrupt_disable: 1;
uint8_t reserved2: 5;
} packed command;
} att_packed command;
} pci_command_register_t;
typedef union {
@@ -209,7 +209,7 @@ typedef union {
bool received_master_abort: 1;
bool signaled_system_error: 1;
bool detected_parity_error: 1;
} packed status;
} att_packed status;
} pci_status_register_t;
void pci_print_info();