Go to the documentation of this file. 1 #ifndef __ASM_CRIS_ARCH_SYSTEM_H
2 #define __ASM_CRIS_ARCH_SYSTEM_H
7 static inline unsigned long rdvr(
void) {
9 __asm__ volatile (
"move $vr,%0" :
"=rm" (vr));
13 #define cris_machine_name "cris"
17 static inline unsigned long rdusp(
void) {
19 __asm__ __volatile__(
"move $usp,%0" :
"=rm" (usp));
24 __asm__ __volatile__("move %0,$usp" : : "rm" (usp))
28 static inline unsigned long rdsp(
void) {
30 __asm__ __volatile__(
"move.d $sp,%0" :
"=rm" (sp));
34 static inline unsigned long _get_base(
char *
addr)
39 #define nop() __asm__ __volatile__ ("nop");
41 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
42 #define tas(ptr) (xchg((ptr),1))
45 #define __xg(x) ((struct __xchg_dummy *)(x))