git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
include
/
asm-i386
/
mach-default
/
mach_reboot.h
diff --git
a/include/asm-i386/mach-default/mach_reboot.h
b/include/asm-i386/mach-default/mach_reboot.h
index
521e227
..
a955e57
100644
(file)
--- a/
include/asm-i386/mach-default/mach_reboot.h
+++ b/
include/asm-i386/mach-default/mach_reboot.h
@@
-19,10
+19,18
@@
static inline void kb_wait(void)
static inline void mach_reboot(void)
{
int i;
static inline void mach_reboot(void)
{
int i;
- for (i = 0; i < 10
0
; i++) {
+ for (i = 0; i < 10; i++) {
kb_wait();
udelay(50);
kb_wait();
udelay(50);
- outb(0xfe, 0x64); /* pulse reset low */
+ outb(0x60, 0x64); /* write Controller Command Byte */
+ udelay(50);
+ kb_wait();
+ udelay(50);
+ outb(0x14, 0x60); /* set "System flag" */
+ udelay(50);
+ kb_wait();
+ udelay(50);
+ outb(0xfe, 0x64); /* pulse reset low */
udelay(50);
}
}
udelay(50);
}
}