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 Avoid unbounded stack usage warning



details:   https://anonhg.NetBSD.org/src/rev/341d60d266c5
branches:  trunk
changeset: 973289:341d60d266c5
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Jun 26 08:42:27 2020 +0000

description:
Avoid unbounded stack usage warning

diffstat:

 sys/arch/arm/arm32/arm32_kvminit.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 22e5e2838eae -r 341d60d266c5 sys/arch/arm/arm32/arm32_kvminit.c
--- a/sys/arch/arm/arm32/arm32_kvminit.c        Fri Jun 26 08:42:01 2020 +0000
+++ b/sys/arch/arm/arm32/arm32_kvminit.c        Fri Jun 26 08:42:27 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm32_kvminit.c,v 1.59 2020/06/20 07:10:36 skrll Exp $ */
+/*     $NetBSD: arm32_kvminit.c,v 1.60 2020/06/26 08:42:27 skrll Exp $ */
 
 /*
  * Copyright (c) 2002, 2003, 2005  Genetec Corporation.  All rights reserved.
@@ -127,7 +127,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.59 2020/06/20 07:10:36 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.60 2020/06/26 08:42:27 skrll Exp $");
 
 #include <sys/param.h>
 
@@ -495,7 +495,7 @@
        pv_addr_t msgbuf;
        pv_addr_t text;
        pv_addr_t data;
-       pv_addr_t chunks[KERNEL_L2PT_KERNEL_NUM + KERNEL_L2PT_VMDATA_NUM + 11];
+       pv_addr_t chunks[__arraycount(bmi->bmi_l2pts) + 11];
 #if ARM_MMU_XSCALE == 1
        pv_addr_t minidataclean;
 #endif



Home | Main Index | Thread Index | Old Index