blob: 0fb00020c336d77db8c05ae79f501b9f35f88650 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ab,v 1.1 2006/03/19 15:05:39 joerg Exp $
--- ode/src/timer.cpp.orig 2006-03-19 14:41:45.000000000 +0000
+++ ode/src/timer.cpp
@@ -118,8 +118,10 @@ static inline void serialize()
{
asm volatile (
"mov $0,%%eax\n"
+ "pushl %%ebx\n"
"cpuid\n"
- : : : "%eax","%ebx","%ecx","%edx","cc","memory");
+ "popl %%ebx\n"
+ : : : "%eax","%ecx","%edx","cc","memory");
}
|