10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-21 11:53:32 +01:00

Bug in rtdsc

This commit is contained in:
Anthony Scemama 2011-09-30 21:46:08 +02:00
parent f9e87c0df0
commit 1bda8f00e0

View File

@ -2,13 +2,13 @@
rdtsc = """
#define uint64_t unsigned long
//#ifdef __i386
#ifdef __i386
uint64_t irp_rdtsc_() {
uint64_t x;
__asm__ volatile ("rdtsc" : "=A" (x));
return x;
}
#if __amd64
#elif __amd64
uint64_t irp_rdtsc_() {
uint64_t a, d;
__asm__ volatile ("rdtsc" : "=a" (a), "=d" (d));