Implemented GDT initialisation

This commit is contained in:
2022-12-24 10:28:41 +00:00
parent 0c0830cca7
commit 26853c32c8
10 changed files with 129 additions and 3 deletions

View File

@@ -1,10 +1,15 @@
#ifndef SOCKS_X86_64_CPU_H_
#define SOCKS_X86_64_CPU_H_
typedef struct ml_cpu_block {
#include <socks/machine/_gdt.h>
typedef struct ml_cpu_block {
struct gdt c_gdt;
struct gdt_ptr c_gdt_ptr;
} ml_cpu_block;
extern int ml_init_bootcpu(void);
extern int ml_cpu_block_init(ml_cpu_block *p);
extern int ml_cpu_block_use(ml_cpu_block *p);