Changeset 128359eb in mainline for kernel/arch/amd64/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/amd64/include/arch/asm.h
r94e75cf r128359eb 42 42 43 43 #define IO_SPACE_BOUNDARY ((void *) (64 * 1024)) 44 45 /** Return base address of current stack.46 *47 * Return the base address of the current stack.48 * The stack is assumed to be STACK_SIZE bytes long.49 * The stack must start on page boundary.50 *51 */52 _NO_TRACE static inline uintptr_t get_stack_base(void)53 {54 uintptr_t v;55 56 asm volatile (57 "andq %%rsp, %[v]\n"58 : [v] "=r" (v)59 : "0" (~((uint64_t) STACK_SIZE - 1))60 );61 62 return v;63 }64 44 65 45 _NO_TRACE static inline void cpu_sleep(void)
Note:
See TracChangeset
for help on using the changeset viewer.