summaryrefslogtreecommitdiff
path: root/sys/arch/mips/include
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2017-07-24 09:56:45 +0000
committermrg <mrg@NetBSD.org>2017-07-24 09:56:45 +0000
commit1d3f88cf8377b59eb4e4d506cd260efa88b751ba (patch)
tree752bd1458705b2c4bf7897cf92175a61bbc8e2bc /sys/arch/mips/include
parentf56918c9a6b2dd2a2781af703ec8bcc7a1317077 (diff)
mostly converted sbmips -> evbmips. the SBMIPS kernel builds fully
sans disksubr.c. intr.h does not need any additional fixes now, only disklabel.h. also test-built some other mips kernels.
Diffstat (limited to 'sys/arch/mips/include')
-rw-r--r--sys/arch/mips/include/pmap.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/mips/include/pmap.h b/sys/arch/mips/include/pmap.h
index b9106b3d0e7..504b3f3633c 100644
--- a/sys/arch/mips/include/pmap.h
+++ b/sys/arch/mips/include/pmap.h
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.69 2016/12/23 07:15:27 cherry Exp $ */
+/* $NetBSD: pmap.h,v 1.70 2017/07/24 09:56:45 mrg Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -77,6 +77,7 @@
#ifdef _KERNEL_OPT
#include "opt_multiprocessor.h"
#include "opt_uvmhist.h"
+#include "opt_cputype.h"
#endif
#include <sys/evcnt.h>
@@ -242,5 +243,16 @@ vaddr_t pmap_md_pool_phystov(paddr_t);
#define POOL_VTOPHYS(va) pmap_md_pool_vtophys((vaddr_t)va)
#define POOL_PHYSTOV(pa) pmap_md_pool_phystov((paddr_t)pa)
+#ifdef MIPS64_SB1
+/* uncached accesses are bad; all accesses should be cached (and coherent) */
+#undef PMAP_PAGEIDLEZERO
+#define PMAP_PAGEIDLEZERO(pa) (pmap_zero_page(pa), true)
+
+int sbmips_cca_for_pa(paddr_t);
+
+#undef PMAP_CCA_FOR_PA
+#define PMAP_CCA_FOR_PA(pa) sbmips_cca_for_pa(pa)
+#endif
+
#endif /* _KERNEL */
#endif /* _MIPS_PMAP_H_ */