[PATCH] x86 reboot: Add reboot fixup for gx1/cs5530a
This patch by Jaya Kumar introduces a generic infrastructure to deal with x86 chipsets with nonstandard reset sequences, and adds support for the Geode gx1/cs5530a chipset. Signed-off-by: Jaya Kumar <jayalk@intworks.biz> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
67701ae976
commit
a2f7c35415
@ -13,6 +13,7 @@
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/apic.h>
|
||||
#include "mach_reboot.h"
|
||||
#include <linux/reboot_fixups.h>
|
||||
|
||||
/*
|
||||
* Power off function, if any
|
||||
@ -348,6 +349,7 @@ void machine_restart(char * __unused)
|
||||
/* rebooting needs to touch the page at absolute addr 0 */
|
||||
*((unsigned short *)__va(0x472)) = reboot_mode;
|
||||
for (;;) {
|
||||
mach_reboot_fixups(); /* for board specific fixups */
|
||||
mach_reboot();
|
||||
/* That didn't work - force a triple fault.. */
|
||||
__asm__ __volatile__("lidt %0": :"m" (no_idt));
|
||||
|
Reference in New Issue
Block a user