Set r1 to -1 on exit as well as r0 otherwise syscalls returning 64 bit
results will not read -1.
This commit is contained in:
parent
825e13fec1
commit
29811afbb6
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cerror.S,v 1.2 1996/05/12 19:55:06 mark Exp $ */
|
||||
/* $NetBSD: cerror.S,v 1.3 1996/06/05 19:02:12 mark Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
|
@ -45,6 +45,7 @@ cerror:
|
|||
ldr r1, Lerrno
|
||||
str r0, [r1]
|
||||
mvn r0, #0x00000000
|
||||
mvn r1, #0x00000000
|
||||
mov r15, r14
|
||||
|
||||
Lerrno:
|
||||
|
|
Loading…
Reference in New Issue