Kernel/ARMv7 - Hacky (non-atomic) sync_and_fetch_4
[tpg/acess2.git] / KernelLand / Kernel / arch / armv7 / proc.S
index 1979058..d794f55 100644 (file)
@@ -62,10 +62,12 @@ SwitchTask:
 Proc_CloneInt:
        @ R0: SP Destination
        @ R1: Mem Destination
+       @ R2: Clear user space
        push {r4-r12,lr}
        mov r4, r1      @ Save mem destination
        str sp, [r0]    @ Save SP to SP dest
 
+       mov r0, r2
        bl MM_Clone
        str r0, [r4]    @ Save clone return to Mem Dest
 
@@ -95,6 +97,15 @@ Proc_int_DropToUser:
        cps #16
        mov sp, r1
        mov pc, r0
+.globl User_Signal_Kill
+@ R0: Signal
+User_Signal_Kill:
+       mov r1, r0
+       and r1, #0x00FF
+       orr r1, #0x0200
+       mov r0, #0
+       swi 0
+       b .
 
 .section .rodata
 csProc_CloneInt_NewTaskMessage:

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