diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-04-21 01:25:29 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-06-30 03:24:42 +0200 |
commit | ee92c0fe5c1b9d59508273916e2c9a75b68dbc13 (patch) | |
tree | 65a22258b12f84325910fc2ad47e2b02696ef593 /libc/sysdeps/linux/nds32/sys/regdef.h | |
parent | dd46699e46decb7273f44dc2cbf307f096dc39e8 (diff) |
nds32: add support for new architecture
Add support for Andes Technology NDS32 architecture.
See here http://www.andestech.com/en/index/index.htm for more
informaton. Verification of the port from an older uClibc
port was done on a sponsored AG101p board.
The testsuite only has 5 errors, three are related to
an existing bug in dlclose() with LT.old, also happening
on cris32 and m68k.
Failures to fallocate/posix_fallocate are unresolved.
Thanks to Andes Technology sponsoring the hardware and
being very helpful while doing the uClibc-ng porting.
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Diffstat (limited to 'libc/sysdeps/linux/nds32/sys/regdef.h')
-rw-r--r-- | libc/sysdeps/linux/nds32/sys/regdef.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/nds32/sys/regdef.h b/libc/sysdeps/linux/nds32/sys/regdef.h new file mode 100644 index 000000000..e37dcdd62 --- /dev/null +++ b/libc/sysdeps/linux/nds32/sys/regdef.h @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2016 Andes Technology, Inc. + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +/* Copyright (C) 1997, 1998, 2002, 2003, 2004 Free Software Foundation, Inc. + Contributed by Ralf Baechle <ralf@gnu.org>. + + 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. */ + +#ifndef _SYS_REGDEF_H +#define _SYS_REGDEF_H + +/* + * Symbolic register names for 32 bit ABI + */ +#define o0 r0 /* arguments r0 ~ r5 */ +#define o1 r1 +#define o2 r2 +#define o3 r3 +#define o4 r4 +#define o5 r5 +#define o6 r6 +#define o7 r7 + +#define h0 r0 /* arguments r0 ~ r5 */ +#define h1 r1 +#define h2 r2 +#define h3 r3 +#define h4 r4 +#define h5 r5 +#define h6 r6 +#define h7 r7 +#define h8 r8 +#define h9 r9 +#define h10 r10 +#define h11 r11 +#define h12 r16 +#define h13 r17 +#define h14 r18 +#define h15 r19 + +#define a0 r0 /* arguments r0 ~ r5 */ +#define a1 r1 +#define a2 r2 +#define a3 r3 +#define a4 r4 +#define a5 r5 +#define s0 r6 +#define s1 r7 +#define s2 r8 +#define s3 r9 +#define s4 r10 +#define s5 r11 +#define s6 r12 +#define s7 r13 +#define s8 r14 +#define ta r15 +#define t0 r16 +#define t1 r17 +#define t2 r18 +#define t3 r19 +#define t4 r20 +#define t5 r21 +#define t6 r22 +#define t7 r23 +#define t8 r24 +#define t9 r25 +#define p0 r26 +#define p1 r27 +#define r28 fp +#define s9 r28 +#define r29 gp +#define r30 ra +#define r31 sp + +#endif /* _SYS_REGDEF_H */ |