Changeset 128359eb in mainline for kernel/arch/ppc32/include/arch/asm.h
- Timestamp:
- 2020-06-12T16:46:32Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ffccdff0
- Parents:
- 94e75cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/arch/asm.h
r94e75cf r128359eb 163 163 } 164 164 165 /** Return base address of current stack.166 *167 * Return the base address of the current stack.168 * The stack is assumed to be STACK_SIZE bytes long.169 * The stack must start on page boundary.170 *171 */172 _NO_TRACE static inline uintptr_t get_stack_base(void)173 {174 uintptr_t base;175 176 asm volatile (177 "and %[base], %%sp, %[mask]\n"178 : [base] "=r" (base)179 : [mask] "r" (~(STACK_SIZE - 1))180 );181 182 return base;183 }184 185 165 _NO_TRACE static inline void cpu_sleep(void) 186 166 {
Note:
See TracChangeset
for help on using the changeset viewer.