G/C ARM32_NEW_VM_LAYOUT

This commit is contained in:
skrll 2018-01-17 20:30:16 +00:00
parent d89ae4bbdd
commit bda243c018
18 changed files with 21 additions and 63 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.56 2017/06/30 08:10:50 skrll Exp $ */
/* $NetBSD: db_interface.c,v 1.57 2018/01/17 20:30:16 skrll Exp $ */
/*
* Copyright (c) 1996 Scott K. Stevens
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.56 2017/06/30 08:10:50 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.57 2018/01/17 20:30:16 skrll Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -203,11 +203,7 @@ db_validate_address(vaddr_t addr)
struct pmap *pmap;
if (!p || !p->p_vmspace || !p->p_vmspace->vm_map.pmap ||
#ifndef ARM32_NEW_VM_LAYOUT
addr >= VM_MAXUSER_ADDRESS
#else
addr >= VM_MIN_KERNEL_ADDRESS
#endif
)
pmap = pmap_kernel();
else

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.361 2017/11/01 21:13:26 skrll Exp $ */
/* $NetBSD: pmap.c,v 1.362 2018/01/17 20:30:16 skrll Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@ -217,7 +217,7 @@
#include <arm/locore.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.361 2017/11/01 21:13:26 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.362 2018/01/17 20:30:16 skrll Exp $");
//#define PMAP_DEBUG
#ifdef PMAP_DEBUG
@ -6573,15 +6573,6 @@ pmap_postinit(void)
* Note that the following routines are used by board-specific initialisation
* code to configure the initial kernel page tables.
*
* If ARM32_NEW_VM_LAYOUT is *not* defined, they operate on the assumption that
* L2 page-table pages are 4KB in size and use 4 L1 slots. This mimics the
* behaviour of the old pmap, and provides an easy migration path for
* initial bring-up of the new pmap on existing ports. Fortunately,
* pmap_bootstrap() compensates for this hackery. This is only a stop-gap and
* will be deprecated.
*
* If ARM32_NEW_VM_LAYOUT *is* defined, these functions deal with 1KB L2 page
* tables.
*/
/*

View File

@ -1,4 +1,4 @@
# $NetBSD: files.arm,v 1.136 2017/11/10 22:07:30 matt Exp $
# $NetBSD: files.arm,v 1.137 2018/01/17 20:30:16 skrll Exp $
# temporary define to allow easy moving to ../arch/arm/arm32
defflag ARM32
@ -105,7 +105,7 @@ file arch/arm/arm/psci_arm.S psci
defflag PMAP_DEBUG
# New PMAP options
defflag opt_arm32_pmap.h ARM32_NEW_VM_LAYOUT PMAPCOUNTERS
defflag opt_arm32_pmap.h PMAPCOUNTERS
PMAP_STEAL_MEMORY PMAP_NEED_ALLOC_POOLPAGE
PMAP_TLB
defparam opt_arm32_pmap.h PGSHIFT

View File

@ -1,4 +1,4 @@
# $NetBSD: std.cats,v 1.9 2012/09/21 14:22:37 matt Exp $
# $NetBSD: std.cats,v 1.10 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/cats options
@ -14,6 +14,4 @@ options EXEC_ELF32
options ARM32
options _ARM32_NEED_BUS_DMA_BOUNCE
#options ARM32_NEW_VM_LAYOUT # Not yet supported
options ARM_INTR_IMPL="<arm/footbridge/footbridge_intr.h>"

View File

@ -1,4 +1,4 @@
# $NetBSD: std.epoc32,v 1.1 2013/04/28 12:11:25 kiyohara Exp $
# $NetBSD: std.epoc32,v 1.2 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/epoc32 options
@ -16,6 +16,4 @@ options ARM32
makeoptions KERNEL_BASE_PHYS="0xc0030000"
makeoptions LOADADDRESS="0xc0030000"
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
options ARM_INTR_IMPL="<machine/intr.h>"

View File

@ -1,4 +1,4 @@
# $NetBSD: std.hdl_g,v 1.5 2012/12/16 23:47:56 matt Exp $
# $NetBSD: std.hdl_g,v 1.6 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/evbarm for I-O DATA HDL-G options
@ -8,8 +8,6 @@ include "arch/evbarm/conf/std.evbarm"
# Pull in HDL-G config definitions.
include "arch/evbarm/conf/files.hdl_g"
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
makeoptions BOARDTYPE="hdlg"
makeoptions BOARDMKFRAG="${THISARM}/conf/mk.hdl_g"

View File

@ -1,4 +1,4 @@
# $NetBSD: std.integrator,v 1.18 2012/12/16 23:47:56 matt Exp $
# $NetBSD: std.integrator,v 1.19 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/integrator options
@ -12,8 +12,6 @@ options EXEC_AOUT
options _ARM32_NEED_BUS_DMA_BOUNCE
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
makeoptions BOARDTYPE="integrator"
makeoptions BOARDMKFRAG="${THISARM}/conf/mk.integrator"

View File

@ -1,4 +1,4 @@
# $NetBSD: std.integrator_cp,v 1.1 2013/02/19 10:57:10 skrll Exp $
# $NetBSD: std.integrator_cp,v 1.2 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/integrator options
@ -12,8 +12,6 @@ options EXEC_AOUT
options _ARM32_NEED_BUS_DMA_BOUNCE
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
makeoptions BOARDTYPE="integrator"
makeoptions BOARDMKFRAG="${THISARM}/conf/mk.integrator_cp"

View File

@ -1,4 +1,4 @@
# $NetBSD: std.iq31244,v 1.10 2012/12/16 23:47:56 matt Exp $
# $NetBSD: std.iq31244,v 1.11 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/evbarm for IQ31244 options
@ -10,8 +10,6 @@ include "arch/evbarm/conf/files.iq31244"
options EXEC_AOUT
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
options KERNEL_BASE_EXT=0xc0000000
makeoptions BOARDTYPE="iq31244"
makeoptions BOARDMKFRAG="${THISARM}/conf/mk.iq80321"

View File

@ -1,4 +1,4 @@
# $NetBSD: std.iq80321,v 1.15 2012/12/16 23:47:56 matt Exp $
# $NetBSD: std.iq80321,v 1.16 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/evbarm for IQ80321 options
@ -10,8 +10,6 @@ include "arch/evbarm/conf/files.iq80321"
options EXEC_AOUT
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
options KERNEL_BASE_EXT=0xc0000000
makeoptions BOARDTYPE="iq80321"
makeoptions BOARDMKFRAG="${THISARM}/conf/mk.iq80321"

View File

@ -1,4 +1,4 @@
# $NetBSD: std.ixdp425,v 1.12 2012/12/16 23:47:56 matt Exp $
# $NetBSD: std.ixdp425,v 1.13 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/evbarm for IXDP425 options
@ -12,8 +12,6 @@ options EXEC_AOUT
options COM_PXA2X0 # Enable IXP Uart support in com(4)
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
options KERNEL_BASE_EXT=0xc0000000
makeoptions LOADADDRESS="0xc0200000"
makeoptions BOARDMKFRAG="${THISARM}/conf/mk.ixdp425"

View File

@ -1,4 +1,4 @@
# $NetBSD: std.ixm1200,v 1.14 2012/12/16 23:47:56 matt Exp $
# $NetBSD: std.ixm1200,v 1.15 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/evbarm for IXM1200 options
@ -10,8 +10,6 @@ include "arch/evbarm/conf/files.ixm1200"
options EXEC_AOUT
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
options KERNEL_BASE_EXT=0xc0000000
makeoptions LOADADDRESS="0xC0200000"
makeoptions BOARDTYPE="ixm1200"

View File

@ -1,4 +1,4 @@
# $NetBSD: std.mini2440,v 1.3 2012/12/16 23:47:56 matt Exp $
# $NetBSD: std.mini2440,v 1.4 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/evbarm for MINI2440 options
@ -10,8 +10,6 @@ include "arch/evbarm/conf/files.mini2440"
options EXEC_AOUT
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
options SSCOM_S3C2440
makeoptions BOARDTYPE="mini2440"

View File

@ -1,4 +1,4 @@
# $NetBSD: std.npwr_fc,v 1.6 2012/12/16 23:47:56 matt Exp $
# $NetBSD: std.npwr_fc,v 1.7 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/evbarm for IQ80321 options
@ -10,8 +10,6 @@ include "arch/evbarm/conf/files.npwr_fc"
options EXEC_AOUT
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
options KERNEL_BASE_EXT=0xc0000000
makeoptions BOARDTYPE="iq80321"
makeoptions BOARDMKFRAG="${THISARM}/conf/mk.iq80321"

View File

@ -1,4 +1,4 @@
# $NetBSD: std.smdk2410,v 1.7 2012/12/16 23:47:56 matt Exp $
# $NetBSD: std.smdk2410,v 1.8 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/evbarm for SMDK2410 options
@ -10,8 +10,6 @@ include "arch/evbarm/conf/files.smdk2410"
options EXEC_AOUT
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
options SSCOM_S3C2410
makeoptions BOARDTYPE="smdk2410"

View File

@ -1,4 +1,4 @@
# $NetBSD: std.smdk2800,v 1.15 2012/12/16 23:47:56 matt Exp $
# $NetBSD: std.smdk2800,v 1.16 2018/01/17 20:30:16 skrll Exp $
#
# standard NetBSD/evbarm for SMDK2800 options
@ -11,7 +11,6 @@ include "arch/evbarm/conf/files.smdk2800"
options EXEC_AOUT
options ARM9_CACHE_WRITE_THROUGH # we have problem with WB dcache
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
options SSCOM_S3C2800

View File

@ -1,4 +1,4 @@
# $NetBSD: std.iyonix,v 1.6 2008/01/27 12:37:12 chris Exp $
# $NetBSD: std.iyonix,v 1.7 2018/01/17 20:30:17 skrll Exp $
#
# standard NetBSD/iyonix for GENERIC options
@ -13,8 +13,6 @@ options EXEC_SCRIPT
# To support easy transit to ../arch/arm/arm32
options ARM32
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
options ARM_INTR_IMPL="<arch/arm/xscale/i80321_intr.h>"
# We need to configure the PCI bus.

View File

@ -1,4 +1,4 @@
# $NetBSD: std.shark,v 1.10 2017/03/12 10:18:07 martin Exp $
# $NetBSD: std.shark,v 1.11 2018/01/17 20:30:17 skrll Exp $
#
# standard NetBSD/shark options
@ -14,8 +14,6 @@ options EXEC_SCRIPT
options ARM32
options _ARM32_NEED_BUS_DMA_BOUNCE
#options ARM32_NEW_VM_LAYOUT # Not yet ready for prime-time
# XXX
options OFW