Changeset 128359eb in mainline for kernel/arch/ia32/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/ia32/include/arch/asm.h
r94e75cf r128359eb 348 348 349 349 #endif /* PROCESSOR_i486 */ 350 351 /** Return base address of current stack352 *353 * Return the base address of the current stack.354 * The stack is assumed to be STACK_SIZE bytes long.355 * The stack must start on page boundary.356 *357 */358 _NO_TRACE static inline uintptr_t get_stack_base(void)359 {360 uintptr_t v;361 362 asm volatile (363 "andl %%esp, %[v]\n"364 : [v] "=r" (v)365 : "0" (~(STACK_SIZE - 1))366 );367 368 return v;369 }370 350 371 351 /** Invalidate TLB Entry.
Note:
See TracChangeset
for help on using the changeset viewer.