From 533d76fbc420a8cdca389dbea0d86eb64e0e8096 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 13 Aug 2003 20:08:30 +0000 Subject: Patch from Paul Mundt adding uClibc sh64 support: Here's a patch that implements the beginnings of a rudimentary sh64 port. So far, this only works static, as I haven't done any of the ldso work yet. I've also not touched the libpthread stuff yet either, so that's also disabled for now. This port was based off of some work that Sean McGoogan at SuperH did for his initial port, but the this patch doesn't carry over too much from there (basically the libc/sysdeps/linux/sh64/Makefile (or rather, parts of it), the setjmp/longjmp stuff (which I had to rewrite portions of it to work with the new toolchains), etc.). However, for static, everything appears to work correcly, at least in a hello world type application. --- libc/sysdeps/linux/sh64/bits/endian.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 libc/sysdeps/linux/sh64/bits/endian.h (limited to 'libc/sysdeps/linux/sh64/bits/endian.h') diff --git a/libc/sysdeps/linux/sh64/bits/endian.h b/libc/sysdeps/linux/sh64/bits/endian.h new file mode 100644 index 000000000..ae7e3bb2d --- /dev/null +++ b/libc/sysdeps/linux/sh64/bits/endian.h @@ -0,0 +1,20 @@ +/* + * libc/sysdeps/linux/sh64/bits/endian.h + * + * Copyright (C) 2003 Paul Mundt + * + * This file is subject to the terms and conditions of the GNU Lesser + * General Public License. See the file COPYING.LIB in the main + * directory of this archive for more details. + */ + +#ifndef _ENDIAN_H +# error "Never use directly; include instead." +#endif + +#ifdef __LITTLE_ENDIAN__ +# define __BYTE_ORDER __LITTLE_ENDIAN +#else +# define __BYTE_ORDER __BIG_ENDIAN +#endif + -- cgit v1.2.3