BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / ca4f3abc7b46ecf67b6a72e75989dc6eccead09a / task / clone.c

// Related

Nucleus

Barry Multi-core scheduling ca4f3ab (3 years, 3 months ago)
diff --git a/task/clone.c b/task/clone.c
index 22d737b..c9a6dc0 100644
--- a/task/clone.c
+++ b/task/clone.c
@@ -46,7 +46,8 @@ clone(int flags)
 end:
 	if (!tid) {
 		outb(0x20, 0x20);
-		LAPIC(0xB0) = 0;
+		if (apic)
+			LAPIC(0xB0) = 0;
 	}
 
 	return tid;