From 68bf470949730b234db1a7f76291bd9a71756117 Mon Sep 17 00:00:00 2001 From: uwe Date: Mon, 14 Nov 2005 02:52:16 +0000 Subject: [PATCH] Catch up with the signature change of obio_find_rom_map. Add __UNVOLATILE when zc is passed as kgdb ioarg. --- sys/arch/sparc/dev/zs_kgdb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/sparc/dev/zs_kgdb.c b/sys/arch/sparc/dev/zs_kgdb.c index 78f7dcb74266..9004ade1868f 100644 --- a/sys/arch/sparc/dev/zs_kgdb.c +++ b/sys/arch/sparc/dev/zs_kgdb.c @@ -1,4 +1,4 @@ -/* $NetBSD: zs_kgdb.c,v 1.14 2004/03/17 17:04:59 pk Exp $ */ +/* $NetBSD: zs_kgdb.c,v 1.15 2005/11/14 02:52:16 uwe Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -48,7 +48,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.14 2004/03/17 17:04:59 pk Exp $"); +__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.15 2005/11/14 02:52:16 uwe Exp $"); #include "opt_kgdb.h" @@ -180,7 +180,7 @@ zs_kgdb_init() zs_setparam(&cs, 0, kgdb_rate); /* Store the getc/putc functions and arg. */ - kgdb_attach(zs_getc, zs_putc, (void *)zc); + kgdb_attach(zs_getc, zs_putc, __UNVOLATILE(zc)); } /* @@ -348,7 +348,7 @@ findzs(zs) * Have the obio module figure out which virtual * address the device is mapped to. */ - if (obio_find_rom_map(paddr, PMAP_OBIO, PAGE_SIZE, &bh) != 0) + if (obio_find_rom_map(paddr, PAGE_SIZE, &bh) != 0) return (NULL); return ((void *)bh);