]>
git.proxmox.com Git - mirror_ubuntu-kernels.git/blob - arch/cris/include/arch-v32/arch/system.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_CRIS_ARCH_SYSTEM_H
3 #define _ASM_CRIS_ARCH_SYSTEM_H
6 /* Read the CPU version register. */
7 static inline unsigned long rdvr(void)
11 __asm__
__volatile__ ("move $vr, %0" : "=rm" (vr
));
15 #define cris_machine_name "crisv32"
17 /* Read the user-mode stack pointer. */
18 static inline unsigned long rdusp(void)
22 __asm__
__volatile__ ("move $usp, %0" : "=rm" (usp
));
26 /* Read the current stack pointer. */
27 static inline unsigned long rdsp(void)
31 __asm__
__volatile__ ("move.d $sp, %0" : "=rm" (sp
));
35 /* Write the user-mode stack pointer. */
36 #define wrusp(usp) __asm__ __volatile__ ("move %0, $usp" : : "rm" (usp))
38 #endif /* _ASM_CRIS_ARCH_SYSTEM_H */