4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-31 19:40:33 +08:00

* rs6000/simulator.S: Use conditional returns for documentation

purposes.
(access): Add new syscall.
This commit is contained in:
Geoffrey Keating 2000-09-05 18:25:02 +00:00
parent 46fbc77ff5
commit f589a77e00
2 changed files with 20 additions and 13 deletions

View File

@ -1,3 +1,9 @@
2000-09-05 Geoff Keating <geoffk@cygnus.com>
* rs6000/simulator.S: Use conditional returns for documentation
purposes.
(access): Add new syscall.
Wed May 24 16:47:12 2000 Alexandre Oliva <aoliva@cygnus.com> Wed May 24 16:47:12 2000 Alexandre Oliva <aoliva@cygnus.com>
* mn10300/time.c (time): Set *tloc, since the sim doesn't. * mn10300/time.c (time): Set *tloc, since the sim doesn't.

View File

@ -1,7 +1,7 @@
/* /*
* simulator.S -- PowerPC simulator system calls. * simulator.S -- PowerPC simulator system calls.
* *
* Copyright (c) 1995 Cygnus Support * Copyright (c) 1995, 2000 Cygnus Support
* *
* The authors hereby grant permission to use, copy, modify, distribute, * The authors hereby grant permission to use, copy, modify, distribute,
* and license this software and its documentation for any purpose, provided * and license this software and its documentation for any purpose, provided
@ -33,47 +33,48 @@ FUNC_END(_exit)
FUNC_START(read) FUNC_START(read)
li r0,3 li r0,3
sc sc
bns+ 0f bnslr+
b FUNC_NAME(_cerror) b FUNC_NAME(_cerror)
0: blr
FUNC_END(read) FUNC_END(read)
FUNC_START(write) FUNC_START(write)
li r0,4 li r0,4
sc sc
bns+ 0f bnslr+
b FUNC_NAME(_cerror) b FUNC_NAME(_cerror)
0: blr
FUNC_END(write) FUNC_END(write)
FUNC_START(open) FUNC_START(open)
li r0,5 li r0,5
sc sc
bns+ 0f bnslr+
b FUNC_NAME(_cerror) b FUNC_NAME(_cerror)
0: blr
FUNC_END(open) FUNC_END(open)
FUNC_START(close) FUNC_START(close)
li r0,6 li r0,6
sc sc
bns+ 0f bnslr+
b FUNC_NAME(_cerror) b FUNC_NAME(_cerror)
0: blr
FUNC_END(close) FUNC_END(close)
FUNC_START(brk) FUNC_START(brk)
li r0,17 li r0,17
sc sc
bns+ 0f bnslr+
b FUNC_NAME(_cerror) b FUNC_NAME(_cerror)
0: blr
FUNC_END(brk) FUNC_END(brk)
FUNC_START(access)
li r0,33
sc
bnslr+
b FUNC_NAME(_cerror)
FUNC_END(access)
FUNC_START(lseek) FUNC_START(lseek)
li r0,199 li r0,199
sc sc
bns+ 0f bnslr+
b FUNC_NAME(_cerror) b FUNC_NAME(_cerror)
0: blr
FUNC_END(lseek) FUNC_END(lseek)