aboutsummaryrefslogtreecommitdiff
path: root/sys/arch/amd64/amd64
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2023-12-25 23:49:57 -0500
committerIan Moffett <ian@osmora.org>2023-12-25 23:49:57 -0500
commit3566a584274966282a10b04ffb9f003e20e9e6c8 (patch)
tree999f3c9800bfb356fb90efcd6df58cf41f7dd4a0 /sys/arch/amd64/amd64
parentb99fe991c30280b99f68ea469d743f2d66d09c49 (diff)
kernel/amd64: machdep: Refactor
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/amd64')
-rw-r--r--sys/arch/amd64/amd64/machdep.c4
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);