source: rtems/c/src/lib/libbsp/arm/gba/include/arm_mode_bits.h @ 3c7ed6b

4.104.114.84.9
Last change on this file since 3c7ed6b was 3c7ed6b, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 6, 2005 at 6:46:04 PM

2005-07-06 Markku Puro <markku.puro@…>

  • .cvsignore, ChangeLog?, Makefile.am, README, bsp_specs, configure.ac, clock/clockdrv.c, console/conio.c, console/console.c, console/defaultfont.c, include/arm_mode_bits.h, include/asm_macros.h, include/bsp.h, include/bspopts.h.in, include/conio.h, include/gba.h, include/gba_registers.h, include/tm27.h, irq/bsp_irq_asm.S, irq/bsp_irq_init.c, irq/irq.c, irq/irq.h, irq/irq_asm.S, irq/irq_init.c, start/logo.S, start/start.S, startup/bspstart.c, startup/cpu.c, startup/cpu_asm.S, startup/exit.c, startup/linkcmds, timer/timer.c: New files.
  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[3c7ed6b]1/**
2 * @file arm_mode_bits.h
3 *
4 *  ARM statusregister mode bits.
5 *
6 *  This include file contains definitions related to the ARM BSP.
7 */
8/*
9 *  RTEMS GBA BSP
10 *
11 *  Copyright (c) 2004  Markku Puro <markku.puro@kopteri.net>
12 *
13 *  The license and distribution terms for this file may be
14 *  found in found in the file LICENSE in this distribution or at
15 *  http://www.rtems.com/license/LICENSE.
16 *
17 *  $Id$
18 */
19
20#ifndef __ARMMODEBITS_H
21#define __ARMMODEBITS_H
22
23/*-----------------------------------------------------------------------------
24 * Definitions
25 ----------------------------------------------------------------------------*/
26#define Mode_USR             0x10
27#define Mode_FIQ             0x11
28#define Mode_IRQ             0x12
29#define Mode_SVC             0x13
30#define Mode_ABT             0x17
31#define Mode_ABORT           0x17
32#define Mode_UNDEF           0x1B
33#define Mode_SYS             0x1F      /**< only available on ARM Arch v4 */
34#define Mode_Bits            0x1F      /**< mask for mode bits */
35#define ModePriv             Mode_SVC  /**< used supervisor mode */
36
37#define I_Bit                0x80
38#define F_Bit                0x40
39#define Int_Bits             0xC0
40
41#define Mode_SVC_MIRQ        (Mode_SVC | I_Bit | F_Bit)
42#define Mode_SVC_UIRQ        (Mode_SVC)
43#define Mode_IRQ_MIRQ        (Mode_SVC | I_Bit | F_Bit)
44#define Mode_IRQ_UIRQ        (Mode_SVC)
45
46#endif // __ARMMODEBITS_H
47
Note: See TracBrowser for help on using the repository browser.