1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/* $Id: r4k_tlb_glue.S,v 1.5 1999/11/23 17:12:49 ralf Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1999 Ralf Baechle
* Copyright (C) 1999 Silicon Graphics, Inc.
*/
#define __ASSEMBLY__
#include <linux/init.h>
#include <asm/mipsregs.h>
#include <asm/regdef.h>
#include <asm/stackframe.h>
__INIT
NESTED(__xtlb_refill_debug_tramp, PT_SIZE, sp)
j __xtlb_refill_debug
END(__xtlb_refill_debug_tramp)
NESTED(__tlb_refill_debug_tramp, PT_SIZE, sp)
j __tlb_refill_debug
END(__tlb_refill_debug_tramp)
__FINIT
.macro __BUILD_cli
CLI
.endm
.macro __BUILD_sti
STI
.endm
.macro tlb_handler name interruptible
NESTED(__\name, PT_SIZE, sp)
SAVE_ALL
#if DEBUG_MIPS64
jal dodebug2
ld $4, PT_R4(sp)
ld $5, PT_R5(sp)
ld $6, PT_R6(sp)
ld $7, PT_R7(sp)
ld $2, PT_R2(sp)
#endif
__BUILD_\interruptible
dmfc0 t0, CP0_BADVADDR
sd t0, PT_BVADDR(sp)
move a0, sp
jal \name
j return
END(__\name)
.endm
tlb_handler tlb_refill_debug cli
tlb_handler xtlb_refill_debug cli
tlb_handler xtlb_mod_debug sti
tlb_handler xtlb_tlbl_debug sti
tlb_handler xtlb_tlbs_debug sti
|