From 96411af29ec8841de1a60e7af2cccb38d61ed293 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Thu, 29 Mar 2001 22:54:38 +0000 Subject: Get rid of Data modified on freelist: at boot. Always allocate the devices's softc structure, not just struct device. --- sys/arch/powerpc/powerpc/mainbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/powerpc') diff --git a/sys/arch/powerpc/powerpc/mainbus.c b/sys/arch/powerpc/powerpc/mainbus.c index e77c63b456d..69c1cd66533 100644 --- a/sys/arch/powerpc/powerpc/mainbus.c +++ b/sys/arch/powerpc/powerpc/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.4 2000/07/28 13:03:24 rahnds Exp $ */ +/* $OpenBSD: mainbus.c,v 1.5 2001/03/29 22:54:37 drahn Exp $ */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -45,7 +45,7 @@ static void mbattach __P((struct device *, struct device *, void *)); static int mbprint __P((void *, const char *)); struct cfattach mainbus_ca = { - sizeof(struct device), mbmatch, mbattach + sizeof(struct mainbus_softc), mbmatch, mbattach }; struct cfdriver mainbus_cd = { NULL, "mainbus", DV_DULL, NULL, 0 -- cgit v1.2.3