Rev 2233 | Rev 2444 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2233 | Rev 2441 | ||
---|---|---|---|
Line 255... | Line 255... | ||
255 | */ |
255 | */ |
256 | static inline uintptr_t get_stack_base(void) |
256 | static inline uintptr_t get_stack_base(void) |
257 | { |
257 | { |
258 | uintptr_t v; |
258 | uintptr_t v; |
259 | 259 | ||
- | 260 | asm volatile ( |
|
- | 261 | "andl %%esp, %0\n" |
|
- | 262 | : "=r" (v) |
|
260 | asm volatile ("andl %%esp, %0\n" : "=r" (v) : "0" (~(STACK_SIZE-1))); |
263 | : "0" (~(STACK_SIZE - 1)) |
- | 264 | ); |
|
261 | 265 | ||
262 | return v; |
266 | return v; |
263 | } |
267 | } |
264 | 268 | ||
265 | /** Return current IP address */ |
269 | /** Return current IP address */ |