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,13 +2,13 @@
// Created by rick on 28-01-21.
//
#include <string.h>
#include <attributes.h>
#include <stdbool.h>
#include <string.h>
#include <myke/util/stream.h>
#include <myke/attributes.h>
#include <myke/tasks/task.h>
#include <myke/libk/kprint.h>
#include <myke/tasks/task.h>
#include <myke/util/stream.h>
#define MAX_HANDLERS 8
#define STREAM_SIZE (32*1024)
@@ -49,7 +49,7 @@ void kprint_init() {
kprint_stream = stream_create(STREAM_SIZE);
}
void noreturn kprint_task(void *_) {
void att_noreturn kprint_task(void *_) {
uint32_t last_read = 0;
uint8_t data[PRINT_BUFFER_SIZE + 1] = {0};
while (true) {