]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/asm-sh64/registers.h
1 #ifndef __ASM_SH64_REGISTERS_H
2 #define __ASM_SH64_REGISTERS_H
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file "COPYING" in the main directory of this archive
9 * include/asm-sh64/registers.h
11 * Copyright (C) 2000, 2001 Paolo Alberelli
12 * Copyright (C) 2004 Richard Curnow
16 /* =====================================================================
18 ** Section 1: acts on assembly sources pre-processed by GPP ( <source.S>).
19 ** Assigns symbolic names to control & target registers.
23 * Define some useful aliases for control registers.
39 /* cr14-cr15 UNDEFINED */
43 /* cr19-cr31 UNDEFINED */
44 /* cr32-cr61 RESERVED */
49 * ABI dependent registers (general purpose set)
63 * Status register defines: used only by assembly sources (and
64 * syntax independednt)
66 #define SR_RESET_VAL 0x0000000050008000
67 #define SR_HARMLESS 0x00000000500080f0 /* Write ignores for most */
68 #define SR_ENABLE_FPU 0xffffffffffff7fff /* AND with this */
70 #if defined (CONFIG_SH64_SR_WATCH)
71 #define SR_ENABLE_MMU 0x0000000084000000 /* OR with this */
73 #define SR_ENABLE_MMU 0x0000000080000000 /* OR with this */
76 #define SR_UNBLOCK_EXC 0xffffffffefffffff /* AND with this */
77 #define SR_BLOCK_EXC 0x0000000010000000 /* OR with this */
79 #else /* Not __ASSEMBLY__ syntax */
82 ** Stringify reg. name
86 /* Stringify control register names for use in inline assembly */
87 #define __SR __str(SR)
88 #define __SSR __str(SSR)
89 #define __PSSR __str(PSSR)
90 #define __INTEVT __str(INTEVT)
91 #define __EXPEVT __str(EXPEVT)
92 #define __PEXPEVT __str(PEXPEVT)
93 #define __TRA __str(TRA)
94 #define __SPC __str(SPC)
95 #define __PSPC __str(PSPC)
96 #define __RESVEC __str(RESVEC)
97 #define __VBR __str(VBR)
98 #define __TEA __str(TEA)
99 #define __DCR __str(DCR)
100 #define __KCR0 __str(KCR0)
101 #define __KCR1 __str(KCR1)
102 #define __CTC __str(CTC)
103 #define __USR __str(USR)
105 #endif /* __ASSEMBLY__ */
106 #endif /* __ASM_SH64_REGISTERS_H */