diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-10-15 18:01:12 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-10-15 18:01:12 +0000 |
commit | 12ae6d9e06e204ffec3669b22b91d4932b3c90e5 (patch) | |
tree | 45eb65a3d07bc230fe66e4565182a2ef231e47d1 /c/src/lib/libcpu/sh/sh7750/include/rtems/score | |
parent | 2001-10-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-12ae6d9e06e204ffec3669b22b91d4932b3c90e5.tar.bz2 |
2001-10-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/sh4uart.h: move to include/sh/sh4uart.h.
* include/ispsh7750.h: move to include/rtems/score/ispsh7750.h.
* include/iosh7750.h: move include/rtems/score/iosh7750.h.
* include/sh7750_regs.h: move to include/rtems/score/sh7750_regs.h.
* include/rtems/score/ipl.h: move to include/rtems/score/ipl.h.
* include/rtems/score/sh4_regs.h: Reintroduce from Alexandra
Kossovsky's original sources.
* include/Makefile.am: reflect changes above, remove EXTRA_DIST,
require automake 1.5.
* sci/Makefile.am: Disable compilation of console.c.
* sci/sh4uart.c: include <sh/sh4uart.h>, add SH7750_SCSMR_CHK_S,
remove SH4_CPU_HZ_Frequency;
* score/isph7750.c: Remove #if !defined(sh7750), include sh4_regs.h.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/sh/sh7750/include/rtems/score/iosh7750.h (renamed from c/src/lib/libcpu/sh/sh7750/include/iosh7750.h) | 2 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7750/include/rtems/score/ipl.h (renamed from c/src/lib/libcpu/sh/sh7750/include/ipl.h) | 0 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7750/include/rtems/score/ispsh7750.h (renamed from c/src/lib/libcpu/sh/sh7750/include/ispsh7750.h) | 0 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7750/include/rtems/score/sh4_regs.h | 53 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7750/include/rtems/score/sh7750_regs.h (renamed from c/src/lib/libcpu/sh/sh7750/include/sh7750_regs.h) | 0 |
5 files changed, 54 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/sh/sh7750/include/iosh7750.h b/c/src/lib/libcpu/sh/sh7750/include/rtems/score/iosh7750.h index 00781dc689..8db6344515 100644 --- a/c/src/lib/libcpu/sh/sh7750/include/iosh7750.h +++ b/c/src/lib/libcpu/sh/sh7750/include/rtems/score/iosh7750.h @@ -44,6 +44,6 @@ #ifndef __IOSH7750_H #define __IOSH7750_H -#include "sh7750_regs.h" +#include <rtems/score/sh7750_regs.h> #endif diff --git a/c/src/lib/libcpu/sh/sh7750/include/ipl.h b/c/src/lib/libcpu/sh/sh7750/include/rtems/score/ipl.h index d9d4e43e53..d9d4e43e53 100644 --- a/c/src/lib/libcpu/sh/sh7750/include/ipl.h +++ b/c/src/lib/libcpu/sh/sh7750/include/rtems/score/ipl.h diff --git a/c/src/lib/libcpu/sh/sh7750/include/ispsh7750.h b/c/src/lib/libcpu/sh/sh7750/include/rtems/score/ispsh7750.h index c4b1c04203..c4b1c04203 100644 --- a/c/src/lib/libcpu/sh/sh7750/include/ispsh7750.h +++ b/c/src/lib/libcpu/sh/sh7750/include/rtems/score/ispsh7750.h diff --git a/c/src/lib/libcpu/sh/sh7750/include/rtems/score/sh4_regs.h b/c/src/lib/libcpu/sh/sh7750/include/rtems/score/sh4_regs.h new file mode 100644 index 0000000000..71c61236ee --- /dev/null +++ b/c/src/lib/libcpu/sh/sh7750/include/rtems/score/sh4_regs.h @@ -0,0 +1,53 @@ +/* + * Bits on SH-4 registers. + * See SH-4 Programming manual for more details. + * + * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia + * Author: Alexandra Kossovsky <sasha@oktet.ru> + * + * 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$ + */ + +#ifndef __SH4_REGS_H__ +#define __SH4_REGS_H__ + +/* SR -- Status Register */ +#define SH4_SR_MD 0x40000000 /* Priveleged mode */ +#define SH4_SR_RB 0x20000000 /* General register bank specifier */ +#define SH4_SR_BL 0x10000000 /* Exeption/interrupt masking bit */ +#define SH4_SR_FD 0x00008000 /* FPU disable bit */ +#define SH4_SR_M 0x00000200 /* For signed division: + divisor (module) is negative */ +#define SH4_SR_Q 0x00000100 /* For signed division: + dividend (and quotient) is negative */ +#define SH4_SR_IMASK 0x000000f0 /* Interrupt mask level */ +#define SH4_SR_IMASK_S 4 +#define SH4_SR_S 0x00000002 /* Saturation for MAC instruction: + if set, data in MACH/L register + is restricted to 48/32 bits + for MAC.W/L instructions */ +#define SH4_SR_T 0x00000001 /* 1 if last condiyion was true */ +#define SH4_SR_RESERV 0x8fff7d0d /* Reserved bits, read/write as 0 */ + +/* FPSCR -- FPU Starus/Control Register */ +#define SH4_FPSCR_FR 0x00200000 /* FPU register bank specifier */ +#define SH4_FPSCR_SZ 0x00100000 /* FMOV 64-bit transfer mode */ +#define SH4_FPSCR_PR 0x00080000 /* Double-percision floating-point + operations flag */ + /* SH4_FPSCR_SZ & SH4_FPSCR_PR != 1 */ +#define SH4_FPSCR_DN 0x00040000 /* Treat denormalized number as zero */ +#define SH4_FPSCR_CAUSE 0x0003f000 /* FPU exeption cause field */ +#define SH4_FPSCR_CAUSE_S 12 +#define SH4_FPSCR_ENABLE 0x00000f80 /* FPU exeption enable field */ +#define SH4_FPSCR_ENABLE_s 7 +#define SH4_FPSCR_FLAG 0x0000007d /* FPU exeption flag field */ +#define SH4_FPSCR_FLAG_S 2 +#define SH4_FPSCR_RM 0x00000001 /* Rounding mode: + 1/0 -- round to zero/nearest */ +#define SH4_FPSCR_RESERV 0xffd00000 /* Reserved bits, read/write as 0 */ + +#endif diff --git a/c/src/lib/libcpu/sh/sh7750/include/sh7750_regs.h b/c/src/lib/libcpu/sh/sh7750/include/rtems/score/sh7750_regs.h index 46c4ba8cde..46c4ba8cde 100644 --- a/c/src/lib/libcpu/sh/sh7750/include/sh7750_regs.h +++ b/c/src/lib/libcpu/sh/sh7750/include/rtems/score/sh7750_regs.h |