From 6a29b6240315677c7c5e14611241237c1911954e Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 31 Oct 1999 15:22:32 +0000 Subject: [PATCH] make this compile in the absense of DDB. --- sys/arch/sparc64/sparc64/openfirm.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc64/sparc64/openfirm.c b/sys/arch/sparc64/sparc64/openfirm.c index 80dfefc3d7ba..67d5adb8cd2b 100644 --- a/sys/arch/sparc64/sparc64/openfirm.c +++ b/sys/arch/sparc64/sparc64/openfirm.c @@ -1,4 +1,4 @@ -/* $NetBSD: openfirm.c,v 1.7 1998/11/24 13:02:59 mrg Exp $ */ +/* $NetBSD: openfirm.c,v 1.8 1999/10/31 15:22:32 mrg Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -500,7 +500,13 @@ OF_write(handle, addr, len) args.nreturns = 1; args.ihandle = HDL2CELL(handle); args.addr = ADR2CELL(addr); -if (len>1024) { prom_printf("OF_write() > 1024\n"); Debugger(); } +if (len>1024) { prom_printf("OF_write() > 1024\n"); +#ifdef DDB +Debugger(); +#else +panic("OF_write"); +#endif +} for (; len > 0; len -= l, addr += l) { l = min(NBPG, len); args.len = l;