uClibc patches for sh-2
Mark Shinwell
shinwell at codesourcery.com
Mon Oct 16 13:31:07 UTC 2006
I have developed the attached patch that permits uClibc to work
correctly with sh-2 processors. (Paul, this requires Sato-san's kernel
patches.)
I'd like to obtain some feedback as to whether a patch like this is going
to be acceptable. If it is, then I will test it on the uClibc trunk --
although it might be best to wait until the kernel patches mentioned above
are merged into the main tree. Currently, the patch has been thoroughly
tested with a previous version of uClibc, and does indeed work correctly
there.
Mark
--
2006-10-16 Mark Shinwell <shinwell at codesourcery.com>
* Rules.mak: Don't use -msoft-float for sh-2.
* libc/sysdeps/linux/sh/vfork.S: Use __SH_SYSCALL_TRAP_BASE.
Also use __CONFIG_SH2__ rather than __sh2__, for consistency.
* libc/sysdeps/linux/sh/syscall.c: Use __SH_SYSCALL_TRAP_BASE.
* libc/sysdeps/linux/sh/bits/uClibc_arch_features.h: Use
__CONFIG_SH2__ rather than __sh2__, for consistency.
* libc/sysdeps/linux/sh/bits/syscalls.h (__SH_SYSCALL_TRAP_BASE): New.
Use instead of hard-coded trap numbers in the various __NR_<name>
macros.
* libc/sysdeps/linux/sh/clone.S: Use __SH_SYSCALL_TRAP_BASE.
Also use __CONFIG_SH2__ rather than __sh2__, for consistency.
* libc/sysdeps/linux/sh/crti.S: Disable GOT-related code if
__HAVE_SHARED__ is not set.
* libc/sysdeps/linux/sh/crt1.S: Force dynamic loader finalization
function pointer to NULL if __ARCH_HAS_NO_MMU__ is not set.
* libc/sysdeps/linux/sh/pipe.c (pipe): Use __SH_SYSCALL_TRAP_BASE.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: uclibc.patch
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20061016/77c8ee91/attachment.diff
More information about the uClibc
mailing list