svn commit: trunk/uClibc/libc/sysdeps/linux/powerpc

jocke at uclibc.org jocke at uclibc.org
Fri May 25 18:06:04 UTC 2007


Author: jocke
Date: 2007-05-25 11:06:02 -0700 (Fri, 25 May 2007)
New Revision: 18692

Log:
Remove the arch specific mmap impl. for Powerpc. The common one will do.


Removed:
   trunk/uClibc/libc/sysdeps/linux/powerpc/mmap.c

Modified:
   trunk/uClibc/libc/sysdeps/linux/powerpc/Makefile.arch


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/powerpc/Makefile.arch
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/powerpc/Makefile.arch	2007-05-25 14:34:30 UTC (rev 18691)
+++ trunk/uClibc/libc/sysdeps/linux/powerpc/Makefile.arch	2007-05-25 18:06:02 UTC (rev 18692)
@@ -5,7 +5,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
 
-CSRC := mmap.c __syscall_error.c pread_write.c ioctl.c
+CSRC := __syscall_error.c pread_write.c ioctl.c
 
 SSRC := \
 	__longjmp.S setjmp.S bsd-setjmp.S bsd-_setjmp.S brk.S \

Deleted: trunk/uClibc/libc/sysdeps/linux/powerpc/mmap.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/powerpc/mmap.c	2007-05-25 14:34:30 UTC (rev 18691)
+++ trunk/uClibc/libc/sysdeps/linux/powerpc/mmap.c	2007-05-25 18:06:02 UTC (rev 18692)
@@ -1,55 +0,0 @@
-/*
- * Copyright (C) 2000-2006 Erik Andersen <andersen at uclibc.org>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#include <unistd.h>
-#include <sys/mman.h>
-#include <errno.h>
-#include <sys/syscall.h>
-
-libc_hidden_proto(mmap)
-
-#define __syscall_clobbers \
-	"r9", "r10", "r11", "r12"
-#define __syscall_return(type) \
-	return (__sc_err & 0x10000000 ? errno = __sc_ret, __sc_ret = -1 : 0), \
-	       (type) __sc_ret
-
-void * mmap(void *start, size_t length, int prot, int flags, int fd,
-	off_t offset)
-{
-	unsigned long __sc_ret, __sc_err;
-	register unsigned long __sc_0 __asm__ ("r0");
-	register unsigned long __sc_3 __asm__ ("r3");
-	register unsigned long __sc_4 __asm__ ("r4");
-	register unsigned long __sc_5 __asm__ ("r5");
-	register unsigned long __sc_6 __asm__ ("r6");
-	register unsigned long __sc_7 __asm__ ("r7");
-	register unsigned long __sc_8 __asm__ ("r8");
-
-	__sc_3 = (unsigned long) start;
-	__sc_4 = (unsigned long) length;
-	__sc_5 = (unsigned long) prot;
-	__sc_6 = (unsigned long) flags;
-	__sc_7 = (unsigned long) fd;
-	__sc_8 = (unsigned long) offset;
-	__sc_0 = __NR_mmap;
-	__asm__ __volatile__
-		("sc		\n\t"
-		 "mfcr %1	"
-		: "=&r" (__sc_3), "=&r" (__sc_0)
-		: "0"   (__sc_3), "1"   (__sc_0),
-		  "r"   (__sc_4),
-		  "r"   (__sc_5),
-		  "r"   (__sc_6),
-		  "r"   (__sc_7),
-		  "r"   (__sc_8)
-		: __syscall_clobbers);
-	__sc_ret = __sc_3;
-	__sc_err = __sc_0;
-
-	__syscall_return (void *);
-}
-libc_hidden_def(mmap)




More information about the uClibc-cvs mailing list