Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * Copyright (C) 1999 Ralf Baechle
0007  * Copyright (C) 1999 Silicon Graphics, Inc.
0008  */
0009 #include <asm/mipsregs.h>
0010 #include <asm/regdef.h>
0011 #include <asm/stackframe.h>
0012 
0013     .macro tlb_do_page_fault, write
0014     NESTED(tlb_do_page_fault_\write, PT_SIZE, sp)
0015     .cfi_signal_frame
0016     SAVE_ALL docfi=1
0017     MFC0    a2, CP0_BADVADDR
0018     KMODE
0019     move    a0, sp
0020     REG_S   a2, PT_BVADDR(sp)
0021     li  a1, \write
0022     jal do_page_fault
0023     j   ret_from_exception
0024     END(tlb_do_page_fault_\write)
0025     .endm
0026 
0027     tlb_do_page_fault 0
0028     tlb_do_page_fault 1