Subversion Repositories HelenOS

Rev

Rev 1952 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1952 Rev 2018
Line 216... Line 216...
216
    __asm__ volatile ("andl %%esp, %0\n" : "=r" (v) : "0" (~(STACK_SIZE-1)));
216
    __asm__ volatile ("andl %%esp, %0\n" : "=r" (v) : "0" (~(STACK_SIZE-1)));
217
   
217
   
218
    return v;
218
    return v;
219
}
219
}
220
 
220
 
221
static inline uint64_t rdtsc(void)
-
 
222
{
-
 
223
    uint64_t v;
-
 
224
   
-
 
225
    __asm__ volatile("rdtsc\n" : "=A" (v));
-
 
226
   
-
 
227
    return v;
-
 
228
}
-
 
229
 
-
 
230
/** Return current IP address */
221
/** Return current IP address */
231
static inline uintptr_t * get_ip()
222
static inline uintptr_t * get_ip()
232
{
223
{
233
    uintptr_t *ip;
224
    uintptr_t *ip;
234
 
225