/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CRIS_ARCH_SYSTEM_H #define __ASM_CRIS_ARCH_SYSTEM_H /* read the CPU version register */ static inline unsigned long rdvr(void) { unsigned char vr; __asm__ volatile ("move $vr,%0" : "=rm" (vr)); return vr; } #define cris_machine_name "cris" /* read/write the user-mode stackpointer */ static inline unsigned long rdusp(void) { unsigned long usp; __asm__ __volatile__("move $usp,%0" : "=rm" (usp)); return usp; } #define wrusp(usp) \ __asm__ __volatile__("move %0,$usp" : /* no outputs */ : "rm" (usp)) /* read the current stackpointer */ static inline unsigned long rdsp(void) { unsigned long sp; __asm__ __volatile__("move.d $sp,%0" : "=rm" (sp)); return sp; } static inline unsigned long _get_base(char * addr) { return 0; } #endif
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
bitops.h | File | 1.81 KB | 0644 |
|
bug.h | File | 2.07 KB | 0644 |
|
cache.h | File | 219 B | 0644 |
|
checksum.h | File | 726 B | 0644 |
|
delay.h | File | 394 B | 0644 |
|
dma.h | File | 1.74 KB | 0644 |
|
io.h | File | 6.46 KB | 0644 |
|
io_interface_mux.h | File | 2.02 KB | 0644 |
|
irq.h | File | 5.95 KB | 0644 |
|
irqflags.h | File | 994 B | 0644 |
|
memmap.h | File | 680 B | 0644 |
|
mmu.h | File | 3.4 KB | 0644 |
|
offset.h | File | 1.19 KB | 0644 |
|
page.h | File | 920 B | 0644 |
|
pgtable.h | File | 324 B | 0644 |
|
processor.h | File | 2 KB | 0644 |
|
swab.h | File | 672 B | 0644 |
|
system.h | File | 809 B | 0644 |
|
thread_info.h | File | 335 B | 0644 |
|
timex.h | File | 982 B | 0644 |
|
tlb.h | File | 394 B | 0644 |
|
uaccess.h | File | 17.7 KB | 0644 |
|
unistd.h | File | 4.38 KB | 0644 |
|