Implemented GDT initialisation
This commit is contained in:
14
arch/x86_64/cpu.c
Normal file
14
arch/x86_64/cpu.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <socks/machine/cpu.h>
|
||||
#include <socks/machine/_gdt.h>
|
||||
|
||||
int ml_cpu_block_init(ml_cpu_block *p)
|
||||
{
|
||||
gdt_init(&p->c_gdt, &p->c_gdt_ptr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ml_cpu_block_use(ml_cpu_block *p)
|
||||
{
|
||||
gdt_load(&p->c_gdt_ptr);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user