Lines Matching +full:rom +full:- +full:val
1 /* SPDX-License-Identifier: GPL-2.0 */
14 #define CR_P (1 << 4) /* 32-bit exception handler */
15 #define CR_D (1 << 5) /* 32-bit data address range */
19 #define CR_R (1 << 9) /* ROM MMU protection */
55 extern unsigned long cr_alignment; /* defined in entry-armv.S */
59 unsigned long val; in get_cr() local
60 asm("mrc p15, 0, %0, c1, c0, 0 @ get CR" : "=r" (val) : : "cc"); in get_cr()
61 return val; in get_cr()
64 static inline void set_cr(unsigned long val) in set_cr() argument
67 : : "r" (val) : "cc"); in set_cr()
73 unsigned int val; in get_auxcr() local
74 asm("mrc p15, 0, %0, c1, c0, 1 @ get AUXCR" : "=r" (val)); in get_auxcr()
75 return val; in get_auxcr()
78 static inline void set_auxcr(unsigned int val) in set_auxcr() argument
81 : : "r" (val)); in set_auxcr()
91 unsigned int val; in get_copro_access() local
93 : "=r" (val) : : "cc"); in get_copro_access()
94 return val; in get_copro_access()
97 static inline void set_copro_access(unsigned int val) in set_copro_access() argument
100 : : "r" (val) : "cc"); in set_copro_access()
109 * read-only) is fine for most cases and saves quite some #ifdeffery.