diff options
author | Ian Moffett <ian@osmora.org> | 2023-12-25 23:49:57 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2023-12-25 23:49:57 -0500 |
commit | 3566a584274966282a10b04ffb9f003e20e9e6c8 (patch) | |
tree | 999f3c9800bfb356fb90efcd6df58cf41f7dd4a0 /sys/arch/amd64 | |
parent | b99fe991c30280b99f68ea469d743f2d66d09c49 (diff) |
kernel/amd64: machdep: Refactor
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index 0c31985..a9cc916 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -86,9 +86,7 @@ processor_init(void) /* Indicates what doesn't need to be init anymore */ static uint8_t init_flags = 0; - struct cpu_info *cur_cpu = NULL; - - cur_cpu = this_cpu(); + struct cpu_info *cur_cpu = this_cpu(); interrupts_init(); gdt_load(&g_gdtr); |