Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit ac6fbac

Browse files
committed
opal/asm: fix syntax of timer code for ia32
Thanks to Paul Hargrove for pointing this out. Signed-off-by: Nathan Hjelm <[email protected]> (cherry picked from commit open-mpi/ompi@9c70996) Signed-off-by: Nathan Hjelm <[email protected]>
1 parent db49535 commit ac6fbac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opal/include/opal/sys/ia32/timer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ opal_sys_timer_get_cycles(void)
3535
int tmp;
3636

3737
__asm__ __volatile__(
38-
"xchg{l} {%%}ebx, %1\n"
38+
"xchgl %%ebx, %1\n"
3939
"cpuid\n"
40-
"xchg{l} {%%}ebx, %1\n"
40+
"xchgl %%ebx, %1\n"
4141
"rdtsc\n"
4242
: "=A"(ret), "=r"(tmp)
4343
:: "ecx");

0 commit comments

Comments
 (0)