/*1* This file is subject to the terms and conditions of the GNU General Public2* License. See the file "COPYING" in the main directory of this archive3* for more details.4*5* Copyright (C) 1999 Ralf Baechle6* Copyright (C) 1999 Silicon Graphics, Inc.7*/8#include <asm/mipsregs.h>9#include <asm/regdef.h>10#include <asm/stackframe.h>1112.macro tlb_do_page_fault, write13NESTED(tlb_do_page_fault_\write, PT_SIZE, sp)14.cfi_signal_frame15SAVE_ALL docfi=116MFC0 a2, CP0_BADVADDR17KMODE18move a0, sp19REG_S a2, PT_BVADDR(sp)20li a1, \write21jal do_page_fault22j ret_from_exception23END(tlb_do_page_fault_\write)24.endm2526tlb_do_page_fault 027tlb_do_page_fault 1282930