Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66142
b: refs/heads/master
c: 2f2a2d9
h: refs/heads/master
v: v3
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Oct 11, 2007
1 parent 8ae5e13 commit 8eadd63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 054c51b4368648406f487f54b7ed6ba75bbb3f8b
refs/heads/master: 2f2a2d9987c4836493bfb2a80960056ef86742d2
7 changes: 6 additions & 1 deletion trunk/arch/mips/vr41xx/common/pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <linux/sched.h>
#include <linux/types.h>

#include <asm/cacheflush.h>
#include <asm/cpu.h>
#include <asm/io.h>
#include <asm/processor.h>
Expand Down Expand Up @@ -70,6 +71,11 @@ static inline void software_reset(void)
pmu_write(PMUCNT2REG, pmucnt2);
break;
default:
set_c0_status(ST0_BEV | ST0_ERL);
change_c0_config(CONF_CM_CMASK, CONF_CM_UNCACHED);
flush_cache_all();
write_c0_wired(0);
__asm__("jr %0"::"r"(0xbfc00000));
break;
}
}
Expand All @@ -78,7 +84,6 @@ static void vr41xx_restart(char *command)
{
local_irq_disable();
software_reset();
printk(KERN_NOTICE "\nYou can reset your system\n");
while (1) ;
}

Expand Down

0 comments on commit 8eadd63

Please sign in to comment.