blob: cca0db22b14d946e7b3e05f9c077476af712eb22 [file] [log] [blame]
#include <machine/asm.h>
#include <asm/unistd.h>
.set noreorder
LEAF(__syscall_common)
syscall
beqz a3, 1f
# sw is actually two instructions; the first one goes
# in the branch delay slot
# XXX: Break this up manually; as it is now it generates warnings.
sw v0, errno
li v0, -1
1: jr ra
END(__syscall_common)