:: commit 96029d8f5e6cb4dbe2853797e2c1dc11173bde88

Mintsuki <mintsuki@protonmail.com> — 2026-03-18 10:20

parents: 3cfb0f37f9

sys/smp: Fix loongarch64 AP poll loop to use stall() instead of removed delay()

diff --git a/common/sys/smp.c b/common/sys/smp.c
index 8c42b1a4..1ae3ce1d 100644
--- a/common/sys/smp.c
+++ b/common/sys/smp.c
@@ -978,7 +978,7 @@ static bool smp_start_ap(uint32_t phys_id, struct limine_mp_info *info_struct,
     for (int i = 0; i < 1000000; i++) {
         if (locked_read(&loongarch_smp_passed_info.smp_tpl_booted_flag) == 1)
             return true;
-        delay(100000);
+        stall(100);
     }
 
     return false;
tab: 248 wrap: offon