diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-03-29 14:22:13 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-03-29 14:22:13 +0000 |
commit | 82e1e997cac695532f8382cee94d770cc7fb59ec (patch) | |
tree | 416ab51694049ef2811ad132354f4e7db139f83c /c/src/lib/libcpu/sparc/tbr/tbr.h | |
parent | 2002-03-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-82e1e997cac695532f8382cee94d770cc7fb59ec.tar.bz2 |
2002-03-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* tbr/Makefile.am: New file.
* tbr/.cvsignore: New file.
* tbr/tbr.c: New file.
* tbr/tbr.h: New file.
* configure.ac: Add tbr subdir.
* Makefile.am: Add tbr subdir.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/sparc/tbr/tbr.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/sparc/tbr/tbr.h b/c/src/lib/libcpu/sparc/tbr/tbr.h new file mode 100644 index 0000000000..45ffed28bd --- /dev/null +++ b/c/src/lib/libcpu/sparc/tbr/tbr.h @@ -0,0 +1,40 @@ +/* + * SPARC Dependent Source + * + * COPYRIGHT (c) 1989-1999. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + */ + +/* + * This is the executive's trap table which is installed into the TBR + * register. + * + * NOTE: Unfortunately, this must be aligned on a 4096 byte boundary. + * The GNU tools as of binutils 2.5.2 and gcc 2.7.0 would not + * align an entity to anything greater than a 512 byte boundary. + * + * Because of this, we pull a little bit of a trick. We allocate + * enough memory so we can grab an address on a 4096 byte boundary + * from this area. + */ + +#ifndef _libcpu_tbr_h +#define _libcpu_tbr_h + +#include <bsp.h> + +#ifndef NO_TABLE_MOVE + +#define SPARC_TRAP_TABLE_ALIGNMENT 4096 + +SCORE_EXTERN unsigned8 _CPU_Trap_Table_area[8192] + __attribute__ ((aligned (SPARC_TRAP_TABLE_ALIGNMENT))); +#endif + +#endif |