From 7f61979398e94d932aebf97a5df6fa623d8df018 Mon Sep 17 00:00:00 2001 From: ross Date: Wed, 24 Jun 1998 01:10:35 +0000 Subject: [PATCH] Use new LOCATE_PCS() macro. --- sys/arch/alpha/alpha/mainbus.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/arch/alpha/alpha/mainbus.c b/sys/arch/alpha/alpha/mainbus.c index 2ac1b3c5bde2..fda34d01e923 100644 --- a/sys/arch/alpha/alpha/mainbus.c +++ b/sys/arch/alpha/alpha/mainbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: mainbus.c,v 1.26 1998/05/14 00:01:30 thorpej Exp $ */ +/* $NetBSD: mainbus.c,v 1.27 1998/06/24 01:10:35 ross Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -29,7 +29,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.26 1998/05/14 00:01:30 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.27 1998/06/24 01:10:35 ross Exp $"); #include #include @@ -85,9 +85,7 @@ mbattach(parent, self, aux) */ cpuattachcnt = 0; for (i = 0; i < hwrpb->rpb_pcs_cnt; i++) { - - pcsp = (struct pcs *)((char *)hwrpb + hwrpb->rpb_pcs_off + - (i * hwrpb->rpb_pcs_size)); + pcsp = LOCATE_PCS(hwrpb, i); if ((pcsp->pcs_flags & PCS_PP) == 0) continue;