Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include Discard __HAVE_UNLOCKED_PMAP for 4x...



details:   https://anonhg.NetBSD.org/src/rev/b2729f4b8cc5
branches:  trunk
changeset: 1009217:b2729f4b8cc5
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Apr 16 22:11:12 2020 +0000

description:
Discard __HAVE_UNLOCKED_PMAP for 4xx; 4xx is uniprocessor architecture,
and everything gets more than 10 times slower by __HAVE_UNLOCKED_PMAP.

Note that we support three supervisor-level architectures for powerpc:
oea, booke, and 4xx. We have three different implementations of pmap as
a result. Whereas oea and booke support multiprocessor, 4xx does not.

diffstat:

 sys/arch/powerpc/include/types.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r d231d7ba63cc -r b2729f4b8cc5 sys/arch/powerpc/include/types.h
--- a/sys/arch/powerpc/include/types.h  Thu Apr 16 21:56:41 2020 +0000
+++ b/sys/arch/powerpc/include/types.h  Thu Apr 16 22:11:12 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.61 2020/03/22 17:33:58 ad Exp $    */
+/*     $NetBSD: types.h,v 1.62 2020/04/16 22:11:12 rin Exp $   */
 
 /*-
  * Copyright (C) 1995 Wolfgang Solfrank.
@@ -34,6 +34,10 @@
 #ifndef        _POWERPC_TYPES_H_
 #define        _POWERPC_TYPES_H_
 
+#ifdef _KERNEL_OPT
+#include "opt_ppcarch.h"
+#endif
+
 #include <sys/cdefs.h>
 #include <sys/featuretest.h>
 #include <powerpc/int_types.h>
@@ -103,7 +107,9 @@
 #define        __HAVE_RAS
 #endif
 
+#ifndef PPC_IBM4XX
 /* XXX temporary */
 #define        __HAVE_UNLOCKED_PMAP
+#endif
 
 #endif /* _POWERPC_TYPES_H_ */



Home | Main Index | Thread Index | Old Index