From 721b27251da8477f9621e670e77d958ddbd570b0 Mon Sep 17 00:00:00 2001 From: skrll Date: Tue, 10 Aug 2021 06:47:48 +0000 Subject: [PATCH] G/C unused flag --- sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c | 4 ++-- sys/arch/evbarm/include/bootconfig.h | 3 +-- sys/arch/evbarm/integrator/integrator_machdep.c | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c b/sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c index 8a202af1244d..5327d9f66da0 100644 --- a/sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c +++ b/sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c @@ -1,4 +1,4 @@ -/* $Id: imx23_olinuxino_machdep.c,v 1.11 2020/11/28 14:02:30 skrll Exp $ */ +/* $Id: imx23_olinuxino_machdep.c,v 1.12 2021/08/10 06:47:48 skrll Exp $ */ /* * Copyright (c) 2012 The NetBSD Foundation, Inc. @@ -178,7 +178,7 @@ initarm(void *arg) bootconfig.dramblocks = 1; bootconfig.dram[0].address = DRAM_BASE; bootconfig.dram[0].pages = ram_size / PAGE_SIZE; - bootconfig.dram[0].flags = BOOT_DRAM_CAN_DMA | BOOT_DRAM_PREFER; + bootconfig.dram[0].flags = BOOT_DRAM_CAN_DMA; arm32_bootmem_init(bootconfig.dram[0].address, ram_size, ((vsize_t)&KERNEL_BASE_phys)); diff --git a/sys/arch/evbarm/include/bootconfig.h b/sys/arch/evbarm/include/bootconfig.h index 76d7c1b97b02..87cdd859197a 100644 --- a/sys/arch/evbarm/include/bootconfig.h +++ b/sys/arch/evbarm/include/bootconfig.h @@ -1,4 +1,4 @@ -/* $NetBSD: bootconfig.h,v 1.10 2018/06/18 13:05:20 jmcneill Exp $ */ +/* $NetBSD: bootconfig.h,v 1.11 2021/08/10 06:47:48 skrll Exp $ */ /* * Copyright (c) 1994 Mark Brinicombe. @@ -51,7 +51,6 @@ typedef struct _PhysMem { u_int pages; u_int flags; #define BOOT_DRAM_CAN_DMA 1 /* Can DMA direct to this memory. */ -#define BOOT_DRAM_PREFER 2 /* UVM should prefer this memory. */ } PhysMem; #ifndef DRAM_BLOCKS diff --git a/sys/arch/evbarm/integrator/integrator_machdep.c b/sys/arch/evbarm/integrator/integrator_machdep.c index 63200ea1814c..e8cb8480dd0d 100644 --- a/sys/arch/evbarm/integrator/integrator_machdep.c +++ b/sys/arch/evbarm/integrator/integrator_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: integrator_machdep.c,v 1.79 2020/04/18 11:00:39 skrll Exp $ */ +/* $NetBSD: integrator_machdep.c,v 1.80 2021/08/10 06:47:49 skrll Exp $ */ /* * Copyright (c) 2001,2002 ARM Ltd @@ -68,7 +68,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: integrator_machdep.c,v 1.79 2020/04/18 11:00:39 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: integrator_machdep.c,v 1.80 2021/08/10 06:47:49 skrll Exp $"); #include "opt_arm_debug.h" #include "opt_console.h" @@ -371,7 +371,7 @@ initarm(void *arg) bootconfig.dramblocks = 1; bootconfig.dram[0].address = memstart; bootconfig.dram[0].pages = memsize / PAGE_SIZE; - bootconfig.dram[0].flags = BOOT_DRAM_CAN_DMA | BOOT_DRAM_PREFER; + bootconfig.dram[0].flags = BOOT_DRAM_CAN_DMA; arm32_bootmem_init(bootconfig.dram[0].address, bootconfig.dram[0].pages * PAGE_SIZE, (unsigned int) KERNEL_BASE_phys);