- Timestamp:
- 2005-08-25T20:58:07Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fde6429
- Parents:
- cfd6efd2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/include/asm.h
rcfd6efd2 r361635c 35 35 #include <synch/spinlock.h> 36 36 #include <arch/boot/memmap.h> 37 #include <config.h> 37 38 38 39 extern __u32 interrupt_handler_size; … … 157 158 } 158 159 160 /** Return base address of current stack 161 * 162 * Return the base address of the current stack. 163 * The stack is assumed to be STACK_SIZE bytes long. 164 */ 165 static inline __address get_stack_base(void) 166 { 167 __address v; 168 169 __asm__ volatile ("andl %%esp, %0\n" : "=r" (v) : "0" (~(STACK_SIZE-1))); 170 171 return v; 172 } 173 159 174 #endif
Note:
See TracChangeset
for help on using the changeset viewer.