Merge branch 'master' of git://cadel.mutabah.net/acess2
[tpg/acess2.git] / KernelLand / Kernel / arch / armv7 / proc.S
index 531de29..1979058 100644 (file)
@@ -46,12 +46,11 @@ SwitchTask:
        ldr r1, [sp,#4*10]
        tst r1, r1
        mcrne p15, 0, r1, c2, c0, 0     @ Set TTBR0 to r0
-       mov r1, #0
-       mcrne p15, 0, r1, c8, c7, 0     @ TLBIALL - Invalidate all
+#      mov r1, #1
+       mcrne p15, 0, r1, c8, c7, 0     @ TLBIALL - Invalid user space
 
-       @ Restore SP
+       @ Restore state
        mov sp, r0
-
        bx r2
 
 .return:
@@ -102,3 +101,5 @@ csProc_CloneInt_NewTaskMessage:
        .asciz "New task PC=%p, R4=%p, sp=%p"
 csProc_CloneInt_OldTaskMessage:
        .asciz "Parent task PC=%p, R4=%p, SP=%p"
+
+@ vim: ft=armv7

UCC git Repository :: git.ucc.asn.au