:: commit 26f6ac3bb27e7a4b5e8a07259159140c7dae3bde

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

parents: dc5ed66e67

smp: Fix indentation

diff --git a/common/sys/smp.c b/common/sys/smp.c
index b4ad5a3e..5d709a03 100644
--- a/common/sys/smp.c
+++ b/common/sys/smp.c
@@ -97,11 +97,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;
+                                     | ((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