Changes in kernel/arch/riscv64/include/arch/asm.h [128359eb:8df5f20] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/riscv64/include/arch/asm.h
r128359eb r8df5f20 91 91 } 92 92 93 _NO_TRACE static inline uintptr_t get_stack_base(void) 94 { 95 uintptr_t base; 96 97 asm volatile ( 98 "and %[base], sp, %[mask]\n" 99 : [base] "=r" (base) 100 : [mask] "r" (~(STACK_SIZE - 1)) 101 ); 102 103 return base; 104 } 105 93 106 _NO_TRACE static inline void cpu_sleep(void) 94 107 {
Note:
See TracChangeset
for help on using the changeset viewer.