opal/asm: fix syntax of timer code for ia32
Thanks to Paul Hargrove for pointing this out. Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
Этот коммит содержится в:
родитель
c2a02ab06c
Коммит
9c709966f7
@ -35,9 +35,9 @@ opal_sys_timer_get_cycles(void)
|
|||||||
int tmp;
|
int tmp;
|
||||||
|
|
||||||
__asm__ __volatile__(
|
__asm__ __volatile__(
|
||||||
"xchg{l} {%%}ebx, %1\n"
|
"xchgl %%ebx, %1\n"
|
||||||
"cpuid\n"
|
"cpuid\n"
|
||||||
"xchg{l} {%%}ebx, %1\n"
|
"xchgl %%ebx, %1\n"
|
||||||
"rdtsc\n"
|
"rdtsc\n"
|
||||||
: "=A"(ret), "=r"(tmp)
|
: "=A"(ret), "=r"(tmp)
|
||||||
:: "ecx");
|
:: "ecx");
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user