Changeset e762b43 in mainline for kernel/arch/arm32/include/asm.h
- Timestamp:
- 2009-03-03T16:12:43Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 02fd705
- Parents:
- f24d300
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/asm.h
rf24d300 re762b43 27 27 */ 28 28 29 /** @addtogroup arm32 29 /** @addtogroup arm32 30 30 * @{ 31 31 */ 32 /** @file 32 /** @file 33 33 * @brief Declarations of functions implemented in assembly. 34 34 */ … … 78 78 79 79 /** Return base address of current stack. 80 * 80 * 81 81 * Return the base address of the current stack. 82 82 * The stack is assumed to be STACK_SIZE bytes long. 83 83 * The stack must start on page boundary. 84 * 84 85 */ 85 86 static inline uintptr_t get_stack_base(void) … … 87 88 uintptr_t v; 88 89 asm volatile ( 89 "and % 0, sp, %1\n"90 : "=r" (v)91 : "r" (~(STACK_SIZE - 1))90 "and %[v], sp, %[size]\n" 91 : [v] "=r" (v) 92 : [size] "r" (~(STACK_SIZE - 1)) 92 93 ); 93 94 return v;
Note:
See TracChangeset
for help on using the changeset viewer.