From a9560f7ab26c6b751ff6bff2e0253202b522ba4d Mon Sep 17 00:00:00 2001 From: simonb Date: Fri, 23 Aug 2002 13:41:55 +0000 Subject: [PATCH] Don't pass PROP_CONST to board_info_set() for variables that are on the stack; we want to copy the property into the database. --- sys/arch/walnut/walnut/machdep.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/arch/walnut/walnut/machdep.c b/sys/arch/walnut/walnut/machdep.c index ca51e12d8cf0..ea9bea97426c 100644 --- a/sys/arch/walnut/walnut/machdep.c +++ b/sys/arch/walnut/walnut/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.11 2002/08/23 12:46:49 scw Exp $ */ +/* $NetBSD: machdep.c,v 1.12 2002/08/23 13:41:55 simonb Exp $ */ /* * Copyright 2001, 2002 Wasabi Systems, Inc. @@ -500,15 +500,14 @@ cpu_startup(void) * Walnut supports ECC error reporting on irq 16 */ eccirq = 16; - if (board_info_set("4xx-ecc-irq", &eccirq, sizeof(&eccirq), - PROP_CONST, 0)) + if (board_info_set("4xx-ecc-irq", &eccirq, sizeof(&eccirq), 0, 0)) panic("setting ECC interrupt"); #if NCOM > 0 { unsigned int comfreq = COM_FREQ * 6; if (board_info_set("com-opb-frequency", &comfreq, - sizeof(&comfreq), PROP_CONST, 0)) + sizeof(&comfreq), 0, 0)) panic("setting com-opb-frequency"); } #endif