summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/cris/syscall.S
blob: d52a6ba05295c8ed81eb6d7216498c7ab05961ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <sys/syscall.h>
	
        .globl __syscall_error
__syscall_error:
                        
        neg.d $r10,$r10

        push $r10
        push $srp
        jsr __errno_location
        pop $srp
        pop $r11
        move.d $r11,[$r10]

        moveq -1, $r10
        ret
        nop