Changeset 128359eb in mainline for kernel/arch/arm32
- Timestamp:
- 2020-06-12T16:46:32Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ffccdff0
- Parents:
- 94e75cf
- Location:
- kernel/arch/arm32/include/arch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/arch/asm.h
r94e75cf r128359eb 95 95 } 96 96 97 /** Return base address of current stack.98 *99 * Return the base address of the current stack.100 * The stack is assumed to be STACK_SIZE bytes long.101 * The stack must start on page boundary.102 *103 */104 _NO_TRACE static inline uintptr_t get_stack_base(void)105 {106 uintptr_t v;107 108 asm volatile (109 "and %[v], sp, %[size]\n"110 : [v] "=r" (v)111 : [size] "r" (~(STACK_SIZE - 1))112 );113 114 return v;115 }116 117 97 extern void cpu_halt(void) __attribute__((noreturn)); 118 98 extern void asm_delay_loop(uint32_t t); -
kernel/arch/arm32/include/arch/context.h
r94e75cf r128359eb 42 42 #include <arch/regutils.h> 43 43 44 /* Put one item onto the stack to support get_stack_base()and align it up. */44 /* Put one item onto the stack to support CURRENT and align it up. */ 45 45 #define SP_DELTA (0 + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)) 46 46
Note:
See TracChangeset
for help on using the changeset viewer.