/*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/page.h>10#include <asm/regdef.h>11#include <asm/stackframe.h>1213.macro tlb_do_page_fault, write14NESTED(tlb_do_page_fault_\write, PT_SIZE, sp)15SAVE_ALL16MFC0 a2, CP0_BADVADDR17KMODE18move a0, sp19REG_S a2, PT_BVADDR(sp)20li a1, \write21PTR_LA ra, ret_from_exception22j do_page_fault23END(tlb_do_page_fault_\write)24.endm2526tlb_do_page_fault 027tlb_do_page_fault 1282930