- 论坛徽章:
- 0
|
回复 #1 youbest 的帖子
这里有个错误,造成不能关机, 在2.6.18用的CONFIG_LOONGSON2F_NAS, 在2.6.26好像是用了CONFIG_LEMOTE_FULONG2F
diff -Nur linux-2.6.26.orig/arch/mips/lemote/lm2f/reset.c linux-2.6.26.2f/arch/mips/lemote/lm2f/reset.c
--- linux-2.6.26.orig/arch/mips/lemote/lm2f/reset.c 1970-01-01 08:00:00.000000000 +0800
+++ linux-2.6.26.2f/arch/mips/lemote/lm2f/reset.c 2008-08-28 14:41:19.650053387 +0800
@@ -0,0 +1,108 @@
.....
+static void loongson2e_restart(char *command)
+{
+#ifdef CONFIG_LOONGSON2F_NAS
+ u32 hi, lo;
+ _rdmsr(0xe0000014, &hi, &lo);
+ lo |= 0x00000001;
+ _wrmsr(0xe0000014, hi, lo); |
|