Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309022
b: refs/heads/master
c: 586016e
h: refs/heads/master
v: v3
  • Loading branch information
David Daney authored and Ralf Baechle committed May 16, 2012
1 parent 3ad5520 commit 43b681f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: e3dc81f2306e650f01e38ec87e24c3fecb843dc3
refs/heads/master: 586016ebf76d62e58a0e9dfd971e465c8027889d
14 changes: 8 additions & 6 deletions trunk/arch/mips/mm/c-octeon.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/r4kcache.h>
#include <asm/traps.h>
#include <asm/mmu_context.h>
#include <asm/war.h>

Expand Down Expand Up @@ -248,19 +249,18 @@ static void __cpuinit probe_octeon(void)
}
}

static void __cpuinit octeon_cache_error_setup(void)
{
extern char except_vec2_octeon;
set_handler(0x100, &except_vec2_octeon, 0x80);
}

/**
* Setup the Octeon cache flush routines
*
*/
void __cpuinit octeon_cache_init(void)
{
extern unsigned long ebase;
extern char except_vec2_octeon;

memcpy((void *)(ebase + 0x100), &except_vec2_octeon, 0x80);
octeon_flush_cache_sigtramp(ebase + 0x100);

probe_octeon();

shm_align_mask = PAGE_SIZE - 1;
Expand All @@ -280,6 +280,8 @@ void __cpuinit octeon_cache_init(void)

build_clear_page();
build_copy_page();

board_cache_error_setup = octeon_cache_error_setup;
}

/**
Expand Down

0 comments on commit 43b681f

Please sign in to comment.