Changeset 7d953c2 in rtems
- Timestamp:
- 10/12/01 17:46:47 (22 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 59e73f37
- Parents:
- bc5fc7a6
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/score/cpu/sh/ChangeLog
rbc5fc7a6 r7d953c2 1 2001-10-12 Joel Sherrill <joel@OARcorp.com> 2 3 * asm.h, cpu.c, rtems.c, rtems/score/cpu.h, rtems/score/sh.h, 4 rtems/score/sh_io.h, rtems/score/shtypes.h: Consistency changes 5 and made sure there were no includes from the libcpu tree. 6 1 7 2001-10-12 Alexandra Kossovsky <sasha@oktet.ru> 2 8 -
c/src/exec/score/cpu/sh/asm.h
rbc5fc7a6 r7d953c2 28 28 * 29 29 * 30 * COPYRIGHT (c) 1998 .30 * COPYRIGHT (c) 1998-2001. 31 31 * On-Line Applications Research Corporation (OAR). 32 * Copyright assigned to U.S. Government, 1994.33 32 * 34 33 * The license and distribution terms for this file may be -
c/src/exec/score/cpu/sh/cpu.c
rbc5fc7a6 r7d953c2 13 13 * 14 14 * 15 * COPYRIGHT (c) 1998 .15 * COPYRIGHT (c) 1998-2001. 16 16 * On-Line Applications Research Corporation (OAR). 17 * Copyright assigned to U.S. Government, 1994.18 17 * 19 18 * The license and distribution terms for this file may be … … 29 28 #include <rtems/score/cpu.h> 30 29 #include <rtems/score/sh.h> 31 32 /* FIXME: This should not be here */33 #if defined(__SH4__)34 #include <rtems/score/sh4_regs.h>35 #endif36 30 37 31 /* referenced in start.S */ -
c/src/exec/score/cpu/sh/rtems.c
rbc5fc7a6 r7d953c2 16 16 * 17 17 * 18 * COPYRIGHT (c) 1998 .18 * COPYRIGHT (c) 1998-2001. 19 19 * On-Line Applications Research Corporation (OAR). 20 * Copyright assigned to U.S. Government, 1994.21 20 * 22 21 * The license and distribution terms for this file may be -
c/src/exec/score/cpu/sh/rtems/score/cpu.h
rbc5fc7a6 r7d953c2 13 13 * 14 14 * 15 * COPYRIGHT (c) 1998 .15 * COPYRIGHT (c) 1998-2001. 16 16 * On-Line Applications Research Corporation (OAR). 17 * Copyright assigned to U.S. Government, 1994.18 17 * 19 18 * The license and distribution terms for this file may be … … 136 135 137 136 #if SH_HAS_FPU 138 /* FIXME: What about CPU_SOFTWARE_FP ? */139 137 #define CPU_HARDWARE_FP TRUE 138 #define CPU_SOFTWARE_FP FALSE 140 139 #else 141 140 #define CPU_SOFTWARE_FP FALSE … … 212 211 #define CPU_USE_DEFERRED_FP_SWITCH FALSE 213 212 #else 214 /* FIXME: Is this needed?215 * Only here for backward compatibility with previous versions216 */217 213 #define CPU_USE_DEFERRED_FP_SWITCH TRUE 218 214 #endif -
c/src/exec/score/cpu/sh/rtems/score/sh.h
rbc5fc7a6 r7d953c2 14 14 * 15 15 * 16 * COPYRIGHT (c) 1998 .16 * COPYRIGHT (c) 1998-2001. 17 17 * On-Line Applications Research Corporation (OAR). 18 * Copyright assigned to U.S. Government, 1994.19 18 * 20 19 * The license and distribution terms for this file may be … … 220 219 #endif /* !ASM */ 221 220 221 /* 222 * Bits on SH-4 registers. 223 * See SH-4 Programming manual for more details. 224 * 225 * Added by Alexandra Kossovsky <sasha@oktet.ru> 226 */ 227 228 #if defined(__SH4__) 229 #define SH4_SR_MD 0x40000000 /* Priveleged mode */ 230 #define SH4_SR_RB 0x20000000 /* General register bank specifier */ 231 #define SH4_SR_BL 0x10000000 /* Exeption/interrupt masking bit */ 232 #define SH4_SR_FD 0x00008000 /* FPU disable bit */ 233 #define SH4_SR_M 0x00000200 /* For signed division: 234 divisor (module) is negative */ 235 #define SH4_SR_Q 0x00000100 /* For signed division: 236 dividend (and quotient) is negative */ 237 #define SH4_SR_IMASK 0x000000f0 /* Interrupt mask level */ 238 #define SH4_SR_IMASK_S 4 239 #define SH4_SR_S 0x00000002 /* Saturation for MAC instruction: 240 if set, data in MACH/L register 241 is restricted to 48/32 bits 242 for MAC.W/L instructions */ 243 #define SH4_SR_T 0x00000001 /* 1 if last condiyion was true */ 244 #define SH4_SR_RESERV 0x8fff7d0d /* Reserved bits, read/write as 0 */ 245 246 /* FPSCR -- FPU Starus/Control Register */ 247 #define SH4_FPSCR_FR 0x00200000 /* FPU register bank specifier */ 248 #define SH4_FPSCR_SZ 0x00100000 /* FMOV 64-bit transfer mode */ 249 #define SH4_FPSCR_PR 0x00080000 /* Double-percision floating-point 250 operations flag */ 251 /* SH4_FPSCR_SZ & SH4_FPSCR_PR != 1 */ 252 #define SH4_FPSCR_DN 0x00040000 /* Treat denormalized number as zero */ 253 #define SH4_FPSCR_CAUSE 0x0003f000 /* FPU exeption cause field */ 254 #define SH4_FPSCR_CAUSE_S 12 255 #define SH4_FPSCR_ENABLE 0x00000f80 /* FPU exeption enable field */ 256 #define SH4_FPSCR_ENABLE_s 7 257 #define SH4_FPSCR_FLAG 0x0000007d /* FPU exeption flag field */ 258 #define SH4_FPSCR_FLAG_S 2 259 #define SH4_FPSCR_RM 0x00000001 /* Rounding mode: 260 1/0 -- round to zero/nearest */ 261 #define SH4_FPSCR_RESERV 0xffd00000 /* Reserved bits, read/write as 0 */ 262 263 #endif 264 222 265 #ifdef __cplusplus 223 266 } -
c/src/exec/score/cpu/sh/rtems/score/sh_io.h
rbc5fc7a6 r7d953c2 15 15 * 16 16 * 17 * COPYRIGHT (c) 1998 .17 * COPYRIGHT (c) 1998-2001. 18 18 * On-Line Applications Research Corporation (OAR). 19 * Copyright assigned to U.S. Government, 1994.20 19 * 21 20 * The license and distribution terms for this file may be -
c/src/exec/score/cpu/sh/rtems/score/shtypes.h
rbc5fc7a6 r7d953c2 13 13 * 14 14 * 15 * COPYRIGHT (c) 1998 .15 * COPYRIGHT (c) 1998-2001. 16 16 * On-Line Applications Research Corporation (OAR). 17 * Copyright assigned to U.S. Government, 1994.18 17 * 19 18 * The license and distribution terms for this file may be -
c/src/exec/score/cpu/sh/rtems/score/types.h
rbc5fc7a6 r7d953c2 13 13 * 14 14 * 15 * COPYRIGHT (c) 1998 .15 * COPYRIGHT (c) 1998-2001. 16 16 * On-Line Applications Research Corporation (OAR). 17 * Copyright assigned to U.S. Government, 1994.18 17 * 19 18 * The license and distribution terms for this file may be -
cpukit/score/cpu/sh/ChangeLog
rbc5fc7a6 r7d953c2 1 2001-10-12 Joel Sherrill <joel@OARcorp.com> 2 3 * asm.h, cpu.c, rtems.c, rtems/score/cpu.h, rtems/score/sh.h, 4 rtems/score/sh_io.h, rtems/score/shtypes.h: Consistency changes 5 and made sure there were no includes from the libcpu tree. 6 1 7 2001-10-12 Alexandra Kossovsky <sasha@oktet.ru> 2 8 -
cpukit/score/cpu/sh/asm.h
rbc5fc7a6 r7d953c2 28 28 * 29 29 * 30 * COPYRIGHT (c) 1998 .30 * COPYRIGHT (c) 1998-2001. 31 31 * On-Line Applications Research Corporation (OAR). 32 * Copyright assigned to U.S. Government, 1994.33 32 * 34 33 * The license and distribution terms for this file may be -
cpukit/score/cpu/sh/cpu.c
rbc5fc7a6 r7d953c2 13 13 * 14 14 * 15 * COPYRIGHT (c) 1998 .15 * COPYRIGHT (c) 1998-2001. 16 16 * On-Line Applications Research Corporation (OAR). 17 * Copyright assigned to U.S. Government, 1994.18 17 * 19 18 * The license and distribution terms for this file may be … … 29 28 #include <rtems/score/cpu.h> 30 29 #include <rtems/score/sh.h> 31 32 /* FIXME: This should not be here */33 #if defined(__SH4__)34 #include <rtems/score/sh4_regs.h>35 #endif36 30 37 31 /* referenced in start.S */ -
cpukit/score/cpu/sh/rtems/asm.h
rbc5fc7a6 r7d953c2 28 28 * 29 29 * 30 * COPYRIGHT (c) 1998 .30 * COPYRIGHT (c) 1998-2001. 31 31 * On-Line Applications Research Corporation (OAR). 32 * Copyright assigned to U.S. Government, 1994.33 32 * 34 33 * The license and distribution terms for this file may be -
cpukit/score/cpu/sh/rtems/score/cpu.h
rbc5fc7a6 r7d953c2 13 13 * 14 14 * 15 * COPYRIGHT (c) 1998 .15 * COPYRIGHT (c) 1998-2001. 16 16 * On-Line Applications Research Corporation (OAR). 17 * Copyright assigned to U.S. Government, 1994.18 17 * 19 18 * The license and distribution terms for this file may be … … 136 135 137 136 #if SH_HAS_FPU 138 /* FIXME: What about CPU_SOFTWARE_FP ? */139 137 #define CPU_HARDWARE_FP TRUE 138 #define CPU_SOFTWARE_FP FALSE 140 139 #else 141 140 #define CPU_SOFTWARE_FP FALSE … … 212 211 #define CPU_USE_DEFERRED_FP_SWITCH FALSE 213 212 #else 214 /* FIXME: Is this needed?215 * Only here for backward compatibility with previous versions216 */217 213 #define CPU_USE_DEFERRED_FP_SWITCH TRUE 218 214 #endif -
cpukit/score/cpu/sh/rtems/score/sh.h
rbc5fc7a6 r7d953c2 14 14 * 15 15 * 16 * COPYRIGHT (c) 1998 .16 * COPYRIGHT (c) 1998-2001. 17 17 * On-Line Applications Research Corporation (OAR). 18 * Copyright assigned to U.S. Government, 1994.19 18 * 20 19 * The license and distribution terms for this file may be … … 220 219 #endif /* !ASM */ 221 220 221 /* 222 * Bits on SH-4 registers. 223 * See SH-4 Programming manual for more details. 224 * 225 * Added by Alexandra Kossovsky <sasha@oktet.ru> 226 */ 227 228 #if defined(__SH4__) 229 #define SH4_SR_MD 0x40000000 /* Priveleged mode */ 230 #define SH4_SR_RB 0x20000000 /* General register bank specifier */ 231 #define SH4_SR_BL 0x10000000 /* Exeption/interrupt masking bit */ 232 #define SH4_SR_FD 0x00008000 /* FPU disable bit */ 233 #define SH4_SR_M 0x00000200 /* For signed division: 234 divisor (module) is negative */ 235 #define SH4_SR_Q 0x00000100 /* For signed division: 236 dividend (and quotient) is negative */ 237 #define SH4_SR_IMASK 0x000000f0 /* Interrupt mask level */ 238 #define SH4_SR_IMASK_S 4 239 #define SH4_SR_S 0x00000002 /* Saturation for MAC instruction: 240 if set, data in MACH/L register 241 is restricted to 48/32 bits 242 for MAC.W/L instructions */ 243 #define SH4_SR_T 0x00000001 /* 1 if last condiyion was true */ 244 #define SH4_SR_RESERV 0x8fff7d0d /* Reserved bits, read/write as 0 */ 245 246 /* FPSCR -- FPU Starus/Control Register */ 247 #define SH4_FPSCR_FR 0x00200000 /* FPU register bank specifier */ 248 #define SH4_FPSCR_SZ 0x00100000 /* FMOV 64-bit transfer mode */ 249 #define SH4_FPSCR_PR 0x00080000 /* Double-percision floating-point 250 operations flag */ 251 /* SH4_FPSCR_SZ & SH4_FPSCR_PR != 1 */ 252 #define SH4_FPSCR_DN 0x00040000 /* Treat denormalized number as zero */ 253 #define SH4_FPSCR_CAUSE 0x0003f000 /* FPU exeption cause field */ 254 #define SH4_FPSCR_CAUSE_S 12 255 #define SH4_FPSCR_ENABLE 0x00000f80 /* FPU exeption enable field */ 256 #define SH4_FPSCR_ENABLE_s 7 257 #define SH4_FPSCR_FLAG 0x0000007d /* FPU exeption flag field */ 258 #define SH4_FPSCR_FLAG_S 2 259 #define SH4_FPSCR_RM 0x00000001 /* Rounding mode: 260 1/0 -- round to zero/nearest */ 261 #define SH4_FPSCR_RESERV 0xffd00000 /* Reserved bits, read/write as 0 */ 262 263 #endif 264 222 265 #ifdef __cplusplus 223 266 } -
cpukit/score/cpu/sh/rtems/score/sh_io.h
rbc5fc7a6 r7d953c2 15 15 * 16 16 * 17 * COPYRIGHT (c) 1998 .17 * COPYRIGHT (c) 1998-2001. 18 18 * On-Line Applications Research Corporation (OAR). 19 * Copyright assigned to U.S. Government, 1994.20 19 * 21 20 * The license and distribution terms for this file may be -
cpukit/score/cpu/sh/rtems/score/types.h
rbc5fc7a6 r7d953c2 13 13 * 14 14 * 15 * COPYRIGHT (c) 1998 .15 * COPYRIGHT (c) 1998-2001. 16 16 * On-Line Applications Research Corporation (OAR). 17 * Copyright assigned to U.S. Government, 1994.18 17 * 19 18 * The license and distribution terms for this file may be
Note: See TracChangeset
for help on using the changeset viewer.