From: visa Date: Wed, 5 May 2021 15:29:19 +0000 (+0000) Subject: Remove unneeded tlb_set_gbase() that was used with R8000. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=754c7dcbbac52c2464f8a628b03417f766f4f88c;p=openbsd Remove unneeded tlb_set_gbase() that was used with R8000. Pointed out by miod@ --- diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h index ef06ab024fd..d439074e73d 100644 --- a/sys/arch/mips64/include/cpu.h +++ b/sys/arch/mips64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.131 2021/05/01 16:11:10 visa Exp $ */ +/* $OpenBSD: cpu.h,v 1.132 2021/05/05 15:29:19 visa Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -411,7 +411,6 @@ void tlb_flush(int); void tlb_flush_addr(vaddr_t); void tlb_init(unsigned int); int64_t tlb_probe(vaddr_t); -void tlb_set_gbase(vaddr_t, vsize_t); void tlb_set_page_mask(uint32_t); void tlb_set_pid(u_int); void tlb_set_wired(uint32_t); diff --git a/sys/arch/mips64/mips64/pmap.c b/sys/arch/mips64/mips64/pmap.c index 030b26af270..986bea417df 100644 --- a/sys/arch/mips64/mips64/pmap.c +++ b/sys/arch/mips64/mips64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.117 2021/05/01 16:11:11 visa Exp $ */ +/* $OpenBSD: pmap.c,v 1.118 2021/05/05 15:29:19 visa Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -404,8 +404,6 @@ pmap_bootstrap(void) for (i = Sysmapsize, spte = Sysmap; i != 0; i--, spte++) *spte = PG_G; - tlb_set_gbase((vaddr_t)Sysmap, Sysmapsize); - for (i = 0; i < MAXCPUS; i++) { pmap_asid_info[i].pma_asidgen = 1; pmap_asid_info[i].pma_asid = MIN_USER_ASID + 1; diff --git a/sys/arch/mips64/mips64/tlbhandler.S b/sys/arch/mips64/mips64/tlbhandler.S index 2f03840444b..ae974d22262 100644 --- a/sys/arch/mips64/mips64/tlbhandler.S +++ b/sys/arch/mips64/mips64/tlbhandler.S @@ -1,4 +1,4 @@ -/* $OpenBSD: tlbhandler.S,v 1.51 2021/05/01 16:11:11 visa Exp $ */ +/* $OpenBSD: tlbhandler.S,v 1.52 2021/05/05 15:29:19 visa Exp $ */ /* * Copyright (c) 1995-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -621,12 +621,3 @@ LEAF(tlb_set_page_mask, 0) j ra nop END(tlb_set_page_mask) - -/* - * Initialize the kernel page table pointer. - * This is a no-op on non-R8000 processors. - */ -LEAF(tlb_set_gbase, 0) - j ra - nop -END(tlb_set_gbase)