arch: remove tile port
[sfrench/cifs-2.6.git] / arch / cris / include / arch-v10 / arch / system.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_CRIS_ARCH_SYSTEM_H
3 #define __ASM_CRIS_ARCH_SYSTEM_H
4
5
6 /* read the CPU version register */
7
8 static inline unsigned long rdvr(void) {
9         unsigned char vr;
10         __asm__ volatile ("move $vr,%0" : "=rm" (vr));
11         return vr;
12 }
13
14 #define cris_machine_name "cris"
15
16 /* read/write the user-mode stackpointer */
17
18 static inline unsigned long rdusp(void) {
19         unsigned long usp;
20         __asm__ __volatile__("move $usp,%0" : "=rm" (usp));
21         return usp;
22 }
23
24 #define wrusp(usp) \
25         __asm__ __volatile__("move %0,$usp" : /* no outputs */ : "rm" (usp))
26
27 /* read the current stackpointer */
28
29 static inline unsigned long rdsp(void) {
30         unsigned long sp;
31         __asm__ __volatile__("move.d $sp,%0" : "=rm" (sp));
32         return sp;
33 }
34
35 static inline unsigned long _get_base(char * addr)
36 {
37   return 0;
38 }
39
40 #endif