Subversion Repositories HelenOS-historic

Rev

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

Rev 534 Rev 581
Line 221... Line 221...
221
    __asm__ volatile("rdtsc\n" : "=A" (v));
221
    __asm__ volatile("rdtsc\n" : "=A" (v));
222
   
222
   
223
    return v;
223
    return v;
224
}
224
}
225
 
225
 
-
 
226
/** Return current IP address */
-
 
227
static inline __address * get_ip()
-
 
228
{
-
 
229
    __address *ip;
-
 
230
 
-
 
231
    __asm__ volatile (
-
 
232
        "mov %%eip, %0"
-
 
233
        : "=r" (ip)
-
 
234
        );
-
 
235
    return ip;
-
 
236
}
-
 
237
 
226
#endif
238
#endif