Rev 1888 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1888 | Rev 2018 | ||
---|---|---|---|
Line 226... | Line 226... | ||
226 | __asm__ volatile ("andl %%esp, %0\n" : "=r" (v) : "0" (~(STACK_SIZE-1))); |
226 | __asm__ volatile ("andl %%esp, %0\n" : "=r" (v) : "0" (~(STACK_SIZE-1))); |
227 | 227 | ||
228 | return v; |
228 | return v; |
229 | } |
229 | } |
230 | 230 | ||
231 | static inline uint64_t rdtsc(void) |
- | |
232 | { |
- | |
233 | uint64_t v; |
- | |
234 | - | ||
235 | __asm__ volatile("rdtsc\n" : "=A" (v)); |
- | |
236 | - | ||
237 | return v; |
- | |
238 | } |
- | |
239 | - | ||
240 | /** Return current IP address */ |
231 | /** Return current IP address */ |
241 | static inline uintptr_t * get_ip() |
232 | static inline uintptr_t * get_ip() |
242 | { |
233 | { |
243 | uintptr_t *ip; |
234 | uintptr_t *ip; |
244 | 235 |