BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 6217f0db2c8f2513994f4cc773aaa4171a049963 / task / switch.S

// Related

Nucleus

Barry Kernel threads + threads share address space 6217f0d (3 years, 1 month ago)
diff --git a/task/switch.S b/task/switch.S
index 07f1e56..7c6c09d 100644
--- a/task/switch.S
+++ b/task/switch.S
@@ -13,15 +13,10 @@ context_switch:
 .code32
 	cli
 	mov 4(%esp), %ecx
-	mov 8(%esp), %eax
-	mov 12(%esp), %ebx
-	mov 16(%esp), %esi
-	mov 20(%esp), %edi
-	mov 24(%esp), %ebp
-	mov 28(%esp), %esp
-	test %eax, %eax
-	je 1f
-	mov %eax, %cr3
-1:
+	mov 8(%esp), %ebx
+	mov 12(%esp), %esi
+	mov 16(%esp), %edi
+	mov 20(%esp), %ebp
+	mov 24(%esp), %esp
 	sti
 	jmp *%ecx