Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Provide a mm_md_page_color and fix some k...
details: https://anonhg.NetBSD.org/src/rev/27d194ea66f0
branches: trunk
changeset: 346494:27d194ea66f0
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Jul 15 05:59:46 2016 +0000
description:
Provide a mm_md_page_color and fix some kernel builds
diffstat:
sys/arch/arm/arm32/arm32_machdep.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 6e498c1a3ccc -r 27d194ea66f0 sys/arch/arm/arm32/arm32_machdep.c
--- a/sys/arch/arm/arm32/arm32_machdep.c Fri Jul 15 01:17:47 2016 +0000
+++ b/sys/arch/arm/arm32/arm32_machdep.c Fri Jul 15 05:59:46 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arm32_machdep.c,v 1.110 2016/04/30 19:20:47 ryo Exp $ */
+/* $NetBSD: arm32_machdep.c,v 1.111 2016/07/15 05:59:46 skrll Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.110 2016/04/30 19:20:47 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.111 2016/07/15 05:59:46 skrll Exp $");
#include "opt_modular.h"
#include "opt_md.h"
@@ -746,3 +746,11 @@
return rv;
}
#endif
+
+bool
+mm_md_page_color(paddr_t pa, int *colorp)
+{
+ *colorp = atop(pa & arm_cache_prefer_mask);
+
+ return arm_cache_prefer_mask ? false : true;
+}
Home |
Main Index |
Thread Index |
Old Index