Merge branch 'master' into sata-ahci-dev
[lunaix-os.git] / lunaix-os / kernel / sched.c
index 5081ccf83ed6c6d03b6ad194ff2e7b2b6c3132a4..8e089d64b976be61ddf22fb77259caf9dea54f5b 100644 (file)
@@ -59,7 +59,8 @@ run(struct proc_info* proc)
     apic_done_servicing();
 
     asm volatile("pushl %0\n"
-                 "jmp switch_to\n" ::"r"(proc)); // kernel/asm/x86/interrupt.S
+                 "jmp switch_to\n" ::"r"(proc)
+                 : "memory"); // kernel/asm/x86/interrupt.S
 }
 
 int