1 diff -urN linux.old/arch/mips/mm/tlbex-mips32.S linux.dev/arch/mips/mm/tlbex-mips32.S
2 --- linux.old/arch/mips/mm/tlbex-mips32.S 2005-05-28 17:42:03.000000000 +0200
3 +++ linux.dev/arch/mips/mm/tlbex-mips32.S 2005-05-28 21:48:55.000000000 +0200
6 LEAF(except_vec0_r4000)
14 diff -urN linux.old/arch/mips/mm/pg-r4k.c linux.dev/arch/mips/mm/pg-r4k.c
15 --- linux.old/arch/mips/mm/pg-r4k.c 2005-01-19 15:09:29.000000000 +0100
16 +++ linux.dev/arch/mips/mm/pg-r4k.c 2005-05-28 21:57:52.000000000 +0200
19 static inline void build_cdex_s(void)
21 +#if !defined(CONFIG_BCM4704) && !defined(CONFIG_BCM4710)
22 union mips_instruction mi;
24 if ((store_offset & (cpu_scache_line_size() - 1)))
26 mi.c_format.simmediate = store_offset;
32 static inline void build_cdex_p(void)
34 +#if !defined(CONFIG_BCM4704) && !defined(CONFIG_BCM4710)
35 union mips_instruction mi;
37 if (store_offset & (cpu_dcache_line_size() - 1))
39 mi.c_format.simmediate = store_offset;
45 static void __build_store_reg(int reg)
46 diff -urN linux.old/include/asm-mips/stackframe.h linux.dev/include/asm-mips/stackframe.h
47 --- linux.old/include/asm-mips/stackframe.h 2002-11-29 00:53:15.000000000 +0100
48 +++ linux.dev/include/asm-mips/stackframe.h 2005-05-28 21:53:03.000000000 +0200
53 +#elif defined(CONFIG_BCM4710) || defined(CONFIG_BCM4704)
55 +#define RESTORE_SOME \
58 + mfc0 t0, CP0_STATUS; \
62 + mtc0 t0, CP0_STATUS; \
65 + lw v0, PT_STATUS(sp); \
69 + ori v1, v0, ST0_IE; \
70 + xori v1, v1, ST0_IE; \
71 + mtc0 v1, CP0_STATUS; \
72 + mtc0 v0, CP0_STATUS; \
73 + lw v1, PT_EPC(sp); \
75 + lw $31, PT_R31(sp); \
76 + lw $28, PT_R28(sp); \
77 + lw $25, PT_R25(sp); \
85 +#define RESTORE_SP_AND_RET \
86 + lw sp, PT_R29(sp); \
95 #define RESTORE_SOME \
96 diff -urN linux.old/arch/mips/mm/tlbex-r4k.S linux.dev/arch/mips/mm/tlbex-r4k.S
97 --- linux.old/arch/mips/mm/tlbex-r4k.S 2005-05-28 17:42:03.000000000 +0200
98 +++ linux.dev/arch/mips/mm/tlbex-r4k.S 2005-05-29 15:04:43.000000000 +0200
101 LEAF(except_vec0_r4000)
103 +#ifdef CONFIG_BCM4704
106 GET_PGD(k0, k1) # get pgd pointer
107 mfc0 k0, CP0_BADVADDR # Get faulting address
108 srl k0, k0, _PGDIR_SHIFT # get pgd only bits
109 diff -urN linux.old/arch/mips/kernel/entry.S linux.dev/arch/mips/kernel/entry.S
110 --- linux.old/arch/mips/kernel/entry.S 2003-08-25 13:44:40.000000000 +0200
111 +++ linux.dev/arch/mips/kernel/entry.S 2005-06-01 20:10:36.000000000 +0200
113 * and R4400 SC and MC versions.
115 NESTED(except_vec3_generic, 0, sp)
116 +#ifdef CONFIG_BCM4710
120 #if R5432_CP0_INTERRUPT_WAR