bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 08/12 gnumach] smp: Deassert IPI 251 as part of sequence


From: Damien Zammit
Subject: [PATCH 08/12 gnumach] smp: Deassert IPI 251 as part of sequence
Date: Tue, 31 Jan 2023 09:38:18 +0000

---
 i386/i386/smp.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/i386/i386/smp.c b/i386/i386/smp.c
index c351efaa..acf69d21 100644
--- a/i386/i386/smp.c
+++ b/i386/i386/smp.c
@@ -60,7 +60,11 @@ void smp_pmap_update(unsigned apic_id)
         pause_memory;
     } while(lapic->icr_low.delivery_status == SEND_PENDING);

-    printf("done\n");
+    apic_send_ipi(NO_SHORTHAND, FIXED, PHYSICAL, DE_ASSERT, EDGE, 
CALL_SINGLE_FUNCTION_BASE, apic_id);
+
+    do {
+        pause_memory;
+    } while(lapic->icr_low.delivery_status == SEND_PENDING);

     cpu_intr_restore(flags);
 }
--
2.34.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]