diff options
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/common/create_module.c | 14 | ||||
-rw-r--r-- | libc/sysdeps/linux/m68k/README.m68k | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh/pipe.c | 21 |
3 files changed, 22 insertions, 17 deletions
diff --git a/libc/sysdeps/linux/common/create_module.c b/libc/sysdeps/linux/common/create_module.c index 9a5c2d267..f15bb18c5 100644 --- a/libc/sysdeps/linux/common/create_module.c +++ b/libc/sysdeps/linux/common/create_module.c @@ -1,8 +1,10 @@ /* vi: set sw=4 ts=4: */ -/* Syscalls for uClibc +/* + * create_module syscall for uClibc * - * Copyright (C) 2000 by Lineo, inc. and Erik Andersen * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ #include <errno.h> @@ -18,8 +20,8 @@ unsigned long create_module(const char *name, size_t size); #if defined(__UCLIBC_BROKEN_CREATE_MODULE__) # define __NR___create_module __NR_create_module static inline _syscall2(long, __create_module, const char *, name, size_t, size); -/* By checking the value of errno, we know if we have been fooled - * by the syscall2 macro making a very high address look like a +/* By checking the value of errno, we know if we have been fooled + * by the syscall2 macro making a very high address look like a * negative, so we we fix it up here. */ unsigned long create_module(const char *name, size_t size) { @@ -40,10 +42,10 @@ static inline _syscall4(unsigned long, __create_module, const char *, name, size_t, size, size_t, dummy, size_t, err); unsigned long create_module(const char *name, size_t size) { - return __create_module(name, size, 0, 0); + return __create_module(name, size, 0, 0); } #else -/* Sparc, MIPS, etc don't mistake return values for errors. */ +/* Sparc, MIPS, etc don't mistake return values for errors. */ _syscall2(unsigned long, create_module, const char *, name, size_t, size); #endif diff --git a/libc/sysdeps/linux/m68k/README.m68k b/libc/sysdeps/linux/m68k/README.m68k index f774e6f7a..a6bb17e4c 100644 --- a/libc/sysdeps/linux/m68k/README.m68k +++ b/libc/sysdeps/linux/m68k/README.m68k @@ -19,7 +19,7 @@ Configuration: CROSS = m68k-pic-coff- CC = $(CROSS)gcc STRIPTOOL = $(CROSS)strip - KERNEL_SOURCE=/opt/uClinux/linux + KERNEL_SOURCE=/opt/uClinux/linux HAS_MMU = false HAS_FLOATS = false MALLOC = malloc-simple @@ -32,7 +32,7 @@ Installation: Theoretically, you should be able to install right over the existing uC-libc 0.9.1 files in /opt/uClinux/m68k-pic-coff/include, but I recommend cleaning - out all the include files there. + out all the include files there. The only file in there that's not from the old uC-libc is assert.h, but I don't know why that would be the valid copy. diff --git a/libc/sysdeps/linux/sh/pipe.c b/libc/sysdeps/linux/sh/pipe.c index e4cc0080d..167db8903 100644 --- a/libc/sysdeps/linux/sh/pipe.c +++ b/libc/sysdeps/linux/sh/pipe.c @@ -1,4 +1,7 @@ +/* vi: set sw=4 ts=4: */ /* + * pipe syscall for uClibc sh + * * Copyright (C) 2001 Lineo, <davidm@lineo.com> * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * @@ -15,15 +18,15 @@ int pipe(int *fd) { long __res, __res2; __asm__ __volatile__ ( - "mov %2, r3;" - "mov %3, r4;" - "trapa #0x13;" - "mov r1, %1;" - : "=z" (__res), - "=r" ((long) __res2) - : "r" ((long) __NR_pipe), - "r" ((long) fd) - : "cc", "memory", "r1", "r3", "r4"); + "mov %2, r3;" + "mov %3, r4;" + "trapa #0x13;" + "mov r1, %1;" + : "=z" (__res), + "=r" ((long) __res2) + : "r" ((long) __NR_pipe), + "r" ((long) fd) + : "cc", "memory", "r1", "r3", "r4"); if ((unsigned long)(__res) >= (unsigned long)(-125)) { int __err = -(__res); errno = __err; |