This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ppc-sim libgloss patch for access()



This lets the g77 testsuite mostly run under the powerpc simulator.

There's also some tidying-up, to make the syscalls look like those
in glibc.

OK to commit?

-- 
- Geoffrey Keating <geoffk@cygnus.com>

===File ~/patches/cygnus/rs6000-g77sim-libgloss.patch=======
2000-09-01  Geoff Keating  <geoffk@cygnus.com>

	* rs6000/simulator.S: Use conditional returns for documentation
	purposes.
	(access): Add new syscall.

Index: libgloss/rs6000/simulator.S
===================================================================
RCS file: /cvs/src/src/libgloss/rs6000/simulator.S,v
retrieving revision 1.1
diff -p -u -u -p -r1.1 simulator.S
--- simulator.S	2000/03/17 22:48:52	1.1
+++ simulator.S	2000/09/01 23:36:19
@@ -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)
============================================================

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]