blob: 1eec002ab9d8b6cbca988c143a289f61677ee7d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
diff -ur tpctl-4.4/tpctlir/tpctlir.c tpctl-4.4/tpctlir/tpctlir.c
--- tpctl-4.4/tpctlir/tpctlir.c 2002-03-01 14:46:14.000000000 +0100
+++ tpctl-4.4/tpctlir/tpctlir.c 2003-10-04 18:00:40.000000000 +0200
@@ -1,6 +1,7 @@
#include <asm/system.h>
#include <sys/io.h>
#include <stdio.h>
+#include <string.h>
/*
* enable/disable IR on IBM ThinkPads with
@@ -29,7 +30,7 @@
return 2;
}
- cli();
+ asm("cli");
val94 = inb(0x94); /* POS mask register */
outb(0xfE, 0x94); /* mask bit (0) for IR; changes enabled */
@@ -44,7 +45,7 @@
outb(val94, 0x94); /* restore POS mask to prevent changing */
outb(val94, 0x47); /* pause */
- sti();
+ asm("sti");
return 0;
}
|