mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 13:48:21 +00:00
logging: make term and printf smp safe
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user