summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2021-05-05 15:29:20 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2021-05-05 15:29:20 +0000
commita606d27179aaf6f92074fcff0ddb71240a8f50af (patch)
treeeb62cb90fdc6c28f3d7282a3c0ed43b8fc74f0d2 /sys/arch/mips64
parent8e3c0a74399b8895d35d6909fed1c7bdf862206e (diff)
Remove unneeded tlb_set_gbase() that was used with R8000.
Pointed out by miod@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/include/cpu.h3
-rw-r--r--sys/arch/mips64/mips64/pmap.c4
-rw-r--r--sys/arch/mips64/mips64/tlbhandler.S11
3 files changed, 3 insertions, 15 deletions
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)