logging: make term and printf smp safe

This commit is contained in:
Matheus
2023-10-01 19:09:28 -03:00
parent 1bb152b446
commit ba16aa366f
7 changed files with 39 additions and 2 deletions
+1
View File
@@ -34,6 +34,7 @@ typedef struct cpu_t {
} cpu_t;
#define CPU_HALT() asm volatile("hlt")
#define CPU_PAUSE() asm volatile("pause")
static inline cpu_t *_cpu() {
return (cpu_t *)rdmsr(MSR_GSBASE);