diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-07-17 17:14:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-07-17 17:14:31 +0000 |
commit | 4f0b287a4aa0d948d61f5c2ef1915c4db24f30e9 (patch) | |
tree | d66a2f77c384be5cff2c7c5f89619a06286ecd77 /c/src/exec/score/cpu/arm/rtems/score/cpu_asm.h | |
parent | 2002-07-17 Jay Monkman <jtm@smoothsmoothie.com> (diff) | |
download | rtems-4f0b287a4aa0d948d61f5c2ef1915c4db24f30e9.tar.bz2 |
2002-07-17 Jay Monkman <jtm@smoothsmoothie.com>
* rtems/score/cpu_asm.h: Enhanced to include register offsets.
* Makefile.am: Install rtems/score/cpu_asm.h.
* cpu.c: Significantly enhanced including the implementation of
_CPU_ISR_Get_level.
* cpu_asm.S: Improved behavior of context switch and interrupt
dispatching.
* rtems/score/arm.h: Improved the CPU model name determination.
* rtems/score/cpu.h: Improved interrupt disable/enable functions.
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/score/cpu/arm/rtems/score/cpu_asm.h | 76 |
1 files changed, 24 insertions, 52 deletions
diff --git a/c/src/exec/score/cpu/arm/rtems/score/cpu_asm.h b/c/src/exec/score/cpu/arm/rtems/score/cpu_asm.h index d3342afcd0..2c13347578 100644 --- a/c/src/exec/score/cpu/arm/rtems/score/cpu_asm.h +++ b/c/src/exec/score/cpu/arm/rtems/score/cpu_asm.h @@ -1,69 +1,41 @@ /* - * cpu_asm.h + * $Id$ * - * Very loose template for an include file for the cpu_asm.? file - * if it is implemented as a ".S" file (preprocessed by cpp) instead - * of a ".s" file (preprocessed by gm4 or gasp). - * - * COPYRIGHT (c) 2000 Canon Research Centre France SA. - * Emmanuel Raguet, mailto:raguet@crf.canon.fr + * Copyright (c) 2002 by Advent Networks, Inc. + * Jay Monkman <jmonkman@adventnetworks.com> * * 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. * + * This file is the include file for cpu_asm.S + * * */ #ifndef __CPU_ASM_h #define __CPU_ASM_h -/* pull in the generated offsets */ - -#include <rtems/score/offsets.h> - -/* - * Hardware General Registers - */ - -/* put something here */ - -/* - * Hardware Floating Point Registers - */ - -/* put something here */ - -/* - * Hardware Control Registers - */ - -/* put something here */ -/* - * Calling Convention - */ - -/* put something here */ - -/* - * Temporary registers - */ +/* Registers saved in context switch: */ +.set REG_R0, 0 +.set REG_R1, 4 +.set REG_R2, 8 +.set REG_R3, 12 +.set REG_R4, 16 +.set REG_R5, 20 +.set REG_R6, 24 +.set REG_R7, 28 +.set REG_R8, 32 +.set REG_R9, 36 +.set REG_R10, 40 +.set REG_R11, 44 +.set REG_R12, 48 +.set REG_SP, 52 +.set REG_LR, 56 +.set REG_PC, 60 +.set REG_CPSR, 64 +.set SIZE_REGS, REG_CPSR + 4 -/* put something here */ - -/* - * Floating Point Registers - SW Conventions - */ - -/* put something here */ - -/* - * Temporary floating point registers - */ - -/* put something here */ #endif - -/* end of file */ |