[SMP] Cpu initialization cleanup

This commit is contained in:
2016-11-20 00:23:47 +01:00
parent 664379b35c
commit f356cc8f95
11 changed files with 126 additions and 43 deletions

6
kernel/cpu/get_cpu.S Normal file
View File

@@ -0,0 +1,6 @@
#include <cpu.h>
.intel_syntax noprefix
.global get_cpu
get_cpu:
mov rax, gs:GS_OFFSET_CPU
ret