Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/riscv64/include/arch/asm.h

    r128359eb r8df5f20  
    9191}
    9292
     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
    93106_NO_TRACE static inline void cpu_sleep(void)
    94107{
Note: See TracChangeset for help on using the changeset viewer.