:: commit e0b9f99771e4447e3794acc2d3ad59981d58c0dc

mintsuki <mintsuki@protonmail.com> — 2022-09-18 09:30

parents: 0cb95d7e47

smp: Fix indentation

diff --git a/common/sys/smp.c b/common/sys/smp.c
index 39bf2470..79655fb7 100644
--- a/common/sys/smp.c
+++ b/common/sys/smp.c
@@ -73,12 +73,11 @@ static bool smp_start_ap(uint32_t lapic_id, struct gdtr *gdtr,
     passed_info->smp_tpl_booted_flag = 0;
     passed_info->smp_tpl_pagemap     = pagemap;
     passed_info->smp_tpl_target_mode = ((uint32_t)x2apic << 2)
-                        | ((uint32_t)lv5 << 1)
-                        | ((uint32_t)nx << 3)
-                        | ((uint32_t)wp << 4)
-                        | (uint32_t)longmode;
-    passed_info->smp_tpl_gdt         = *gdtr;
-    passed_info->smp_tpl_booted_flag = 0;
+                                     | ((uint32_t)lv5 << 1)
+                                     | ((uint32_t)nx << 3)
+                                     | ((uint32_t)wp << 4)
+                                     | ((uint32_t)longmode << 0);
+    passed_info->smp_tpl_gdt = *gdtr;
     passed_info->smp_tpl_hhdm = hhdm;
 
     asm volatile ("" ::: "memory");
tab: 248 wrap: offon