Changeset 128359eb in mainline for kernel/arch/ia64/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/ia64/include/arch/asm.h
r94e75cf r128359eb 160 160 } 161 161 162 /** Return base address of current memory stack.163 *164 * The memory stack is assumed to be STACK_SIZE / 2 long. Note that there is165 * also the RSE stack, which takes up the upper half of STACK_SIZE.166 * The memory stack must start on page boundary.167 */168 _NO_TRACE static inline uintptr_t get_stack_base(void)169 {170 uint64_t value;171 172 asm volatile (173 "mov %[value] = r12"174 : [value] "=r" (value)175 );176 177 return (value & (~(STACK_SIZE / 2 - 1)));178 }179 180 162 /** Return Processor State Register. 181 163 *
Note:
See TracChangeset
for help on using the changeset viewer.