aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/am33/bits
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2004-10-23 00:33:35 +0000
committerAlexandre Oliva <aoliva@redhat.com>2004-10-23 00:33:35 +0000
commitd115c0d8f666ec4d55ccb8e42ec2c2effd99f75b (patch)
tree2de4b7a69abb7a770c4f40fbd1b3c0956bc806a2 /sysdeps/am33/bits
parent145f3f8a3cc5dd41ead26ce0b709064e60a73fb9 (diff)
downloadglibc-d115c0d8f666ec4d55ccb8e42ec2c2effd99f75b.tar.xz
glibc-d115c0d8f666ec4d55ccb8e42ec2c2effd99f75b.zip
Added Matsushita AM33/2.0 port.
Diffstat (limited to 'sysdeps/am33/bits')
-rw-r--r--sysdeps/am33/bits/endian.h7
-rw-r--r--sysdeps/am33/bits/setjmp.h34
2 files changed, 41 insertions, 0 deletions
diff --git a/sysdeps/am33/bits/endian.h b/sysdeps/am33/bits/endian.h
new file mode 100644
index 0000000000..7423f09570
--- /dev/null
+++ b/sysdeps/am33/bits/endian.h
@@ -0,0 +1,7 @@
+/* AM33 is little-endian. */
+
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
+#define __BYTE_ORDER __LITTLE_ENDIAN
diff --git a/sysdeps/am33/bits/setjmp.h b/sysdeps/am33/bits/setjmp.h
new file mode 100644
index 0000000000..5864b92e64
--- /dev/null
+++ b/sysdeps/am33/bits/setjmp.h
@@ -0,0 +1,34 @@
+/* Copyright 2001 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+/* Define the machine-dependent type `jmp_buf'. AM33 version. */
+
+#ifndef _SETJMP_H
+# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
+#endif
+
+#ifndef _ASM
+typedef int __jmp_buf[26];
+#endif
+
+#define __JMP_BUF_SP 20
+
+/* Test if longjmp to JMPBUF would unwind the frame
+ containing a local variable at ADDRESS. */
+#define _JMPBUF_UNWINDS(jmpbuf, address) \
+ ((void *) (address) < (void *) (jmpbuf[__JMP_BUF_SP]))