Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@geoffk.org>2000-09-05 22:25:02 +0400
committerGeoffrey Keating <geoffk@geoffk.org>2000-09-05 22:25:02 +0400
commitf589a77e000608d85184d873794690e9527868f8 (patch)
tree709ad349303ce2f05aa1bed5dd7b1bcd97e95df5 /libgloss/rs6000
parent46fbc77ff5b7bcd6c08773da6e8b145574f6c29d (diff)
* rs6000/simulator.S: Use conditional returns for documentation
purposes. (access): Add new syscall.
Diffstat (limited to 'libgloss/rs6000')
-rw-r--r--libgloss/rs6000/simulator.S27
1 files changed, 14 insertions, 13 deletions
diff --git a/libgloss/rs6000/simulator.S b/libgloss/rs6000/simulator.S
index 1e925e02c..8859b5b3a 100644
--- a/libgloss/rs6000/simulator.S
+++ b/libgloss/rs6000/simulator.S
@@ -1,7 +1,7 @@
/*
* 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,
* and license this software and its documentation for any purpose, provided
@@ -33,47 +33,48 @@ FUNC_END(_exit)
FUNC_START(read)
li r0,3
sc
- bns+ 0f
+ bnslr+
b FUNC_NAME(_cerror)
-0: blr
FUNC_END(read)
FUNC_START(write)
li r0,4
sc
- bns+ 0f
+ bnslr+
b FUNC_NAME(_cerror)
-0: blr
FUNC_END(write)
FUNC_START(open)
li r0,5
sc
- bns+ 0f
+ bnslr+
b FUNC_NAME(_cerror)
-0: blr
FUNC_END(open)
FUNC_START(close)
li r0,6
sc
- bns+ 0f
+ bnslr+
b FUNC_NAME(_cerror)
-0: blr
FUNC_END(close)
FUNC_START(brk)
li r0,17
sc
- bns+ 0f
+ bnslr+
b FUNC_NAME(_cerror)
-0: blr
FUNC_END(brk)
+FUNC_START(access)
+ li r0,33
+ sc
+ bnslr+
+ b FUNC_NAME(_cerror)
+FUNC_END(access)
+
FUNC_START(lseek)
li r0,199
sc
- bns+ 0f
+ bnslr+
b FUNC_NAME(_cerror)
-0: blr
FUNC_END(lseek)