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

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup arm_gba
5 *
6 * @brief ARM status register mode bits.
7 */
8
9/*
10 *  RTEMS GBA BSP
11 *
12 *  Copyright (c) 2004  Markku Puro <markku.puro@kopteri.net>
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.rtems.org/license/LICENSE.
17 */
18
19#ifndef __ARMMODEBITS_H
20#define __ARMMODEBITS_H
21
22/*-----------------------------------------------------------------------------
23 * Definitions
24 ----------------------------------------------------------------------------*/
25#define Mode_USR             0x10
26#define Mode_FIQ             0x11
27#define Mode_IRQ             0x12
28#define Mode_SVC             0x13
29#define Mode_ABT             0x17
30#define Mode_ABORT           0x17
31#define Mode_UNDEF           0x1B
32#define Mode_SYS             0x1F      /**< only available on ARM Arch v4 */
33#define Mode_Bits            0x1F      /**< mask for mode bits */
34#define ModePriv             Mode_SVC  /**< used supervisor mode */
35
36#define I_Bit                0x80
37#define F_Bit                0x40
38#define Int_Bits             0xC0
39
40#define Mode_SVC_MIRQ        (Mode_SVC | I_Bit | F_Bit)
41#define Mode_SVC_UIRQ        (Mode_SVC)
42#define Mode_IRQ_MIRQ        (Mode_SVC | I_Bit | F_Bit)
43#define Mode_IRQ_UIRQ        (Mode_SVC)
44
45#endif /* __ARMMODEBITS_H */
46
Note: See TracBrowser for help on using the repository browser.