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

Commit cabc66e

Browse files
authored
Merge pull request #1230 from hjelmn/v2.x_ia32_fix
opal/asm: fix syntax of timer code for ia32
2 parents f352bf8 + ac6fbac commit cabc66e

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)