From owner-svn-src-head@freebsd.org Mon Jan 16 16:44:15 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2B92CB2F29; Mon, 16 Jan 2017 16:44:15 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6630B10F9; Mon, 16 Jan 2017 16:44:15 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0GGiE2o045308; Mon, 16 Jan 2017 16:44:14 GMT (envelope-from ian@FreeBSD.org) Received: (from ian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0GGiDcU045297; Mon, 16 Jan 2017 16:44:13 GMT (envelope-from ian@FreeBSD.org) Message-Id: <201701161644.v0GGiDcU045297@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ian set sender to ian@FreeBSD.org using -f From: Ian Lepore Date: Mon, 16 Jan 2017 16:44:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r312292 - in head/sys/arm: arm include X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2017 16:44:15 -0000 Author: ian Date: Mon Jan 16 16:44:13 2017 New Revision: 312292 URL: https://svnweb.freebsd.org/changeset/base/312292 Log: Remove arm's cpuconf.h, and references to it, after moving a few lines from it into pmap-v4.h where they are used. Other than those few lines of support for different MMU types, nothing in cpuconf.h has been used in our code for quite a while. The file existed to set up a variety of symbols to describe the architecture. Over the past few years we have converted all of our source to use the new architecture symbols standardized by ARM Inc, and predefined by both clang and gcc. PR: 216104 Deleted: head/sys/arm/include/cpuconf.h Modified: head/sys/arm/arm/bus_space_asm_generic.S head/sys/arm/arm/cpufunc.c head/sys/arm/arm/identcpu-v4.c head/sys/arm/arm/locore-v4.S head/sys/arm/arm/locore-v6.S head/sys/arm/include/atomic.h head/sys/arm/include/cpufunc.h head/sys/arm/include/pcpu.h head/sys/arm/include/pmap-v4.h Modified: head/sys/arm/arm/bus_space_asm_generic.S ============================================================================== --- head/sys/arm/arm/bus_space_asm_generic.S Mon Jan 16 16:19:55 2017 (r312291) +++ head/sys/arm/arm/bus_space_asm_generic.S Mon Jan 16 16:44:13 2017 (r312292) @@ -36,7 +36,6 @@ */ #include -#include __FBSDID("$FreeBSD$"); /* Modified: head/sys/arm/arm/cpufunc.c ============================================================================== --- head/sys/arm/arm/cpufunc.c Mon Jan 16 16:19:55 2017 (r312291) +++ head/sys/arm/arm/cpufunc.c Mon Jan 16 16:44:13 2017 (r312292) @@ -57,7 +57,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #if defined(CPU_XSCALE_81342) Modified: head/sys/arm/arm/identcpu-v4.c ============================================================================== --- head/sys/arm/arm/identcpu-v4.c Mon Jan 16 16:19:55 2017 (r312291) +++ head/sys/arm/arm/identcpu-v4.c Mon Jan 16 16:44:13 2017 (r312292) @@ -51,7 +51,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include char machine[] = "arm"; Modified: head/sys/arm/arm/locore-v4.S ============================================================================== --- head/sys/arm/arm/locore-v4.S Mon Jan 16 16:19:55 2017 (r312291) +++ head/sys/arm/arm/locore-v4.S Mon Jan 16 16:44:13 2017 (r312292) @@ -37,7 +37,6 @@ #include #include #include -#include #include __FBSDID("$FreeBSD$"); Modified: head/sys/arm/arm/locore-v6.S ============================================================================== --- head/sys/arm/arm/locore-v6.S Mon Jan 16 16:19:55 2017 (r312291) +++ head/sys/arm/arm/locore-v6.S Mon Jan 16 16:44:13 2017 (r312292) @@ -34,7 +34,6 @@ #include #include #include -#include #include __FBSDID("$FreeBSD$"); Modified: head/sys/arm/include/atomic.h ============================================================================== --- head/sys/arm/include/atomic.h Mon Jan 16 16:19:55 2017 (r312291) +++ head/sys/arm/include/atomic.h Mon Jan 16 16:44:13 2017 (r312292) @@ -44,8 +44,6 @@ #ifndef _KERNEL #include -#else -#include #endif #if __ARM_ARCH >= 6 Modified: head/sys/arm/include/cpufunc.h ============================================================================== --- head/sys/arm/include/cpufunc.h Mon Jan 16 16:19:55 2017 (r312291) +++ head/sys/arm/include/cpufunc.h Mon Jan 16 16:44:13 2017 (r312292) @@ -48,7 +48,6 @@ #include #include -#include static __inline void breakpoint(void) Modified: head/sys/arm/include/pcpu.h ============================================================================== --- head/sys/arm/include/pcpu.h Mon Jan 16 16:19:55 2017 (r312291) +++ head/sys/arm/include/pcpu.h Mon Jan 16 16:44:13 2017 (r312292) @@ -32,8 +32,6 @@ #ifdef _KERNEL -#include - #define ALT_STACK_SIZE 128 struct vmspace; Modified: head/sys/arm/include/pmap-v4.h ============================================================================== --- head/sys/arm/include/pmap-v4.h Mon Jan 16 16:19:55 2017 (r312291) +++ head/sys/arm/include/pmap-v4.h Mon Jan 16 16:44:13 2017 (r312292) @@ -51,7 +51,30 @@ #define _MACHINE_PMAP_V4_H_ #include -#include + +/* + * Define the MMU types we support based on the cpu types. While the code has + * some theoretical support for multiple MMU types in a single kernel, there are + * no actual working configurations that use that feature. + */ +#if (defined(CPU_ARM9) || defined(CPU_ARM9E) || defined(CPU_FA526)) +#define ARM_MMU_GENERIC 1 +#else +#define ARM_MMU_GENERIC 0 +#endif + +#if (defined(CPU_XSCALE_PXA2X0) || defined(CPU_XSCALE_IXP425) || \ + defined(CPU_XSCALE_81342)) +#define ARM_MMU_XSCALE 1 +#else +#define ARM_MMU_XSCALE 0 +#endif + +#define ARM_NMMUS (ARM_MMU_GENERIC + ARM_MMU_XSCALE) +#if ARM_NMMUS == 0 && !defined(KLD_MODULE) && defined(_KERNEL) +#error ARM_NMMUS is 0 +#endif + /* * Pte related macros */