Date: Mon, 28 Jun 1999 08:09:56 +0200 From: Peter Holm <peter@holm.cc> To: freebsd-current@FreeBSD.org Subject: boot -c causes pagefault in userconfig.c:savelist+18 Message-ID: <377711B4.F86D0404@holm.cc>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------C6C980DA3C83F9AE928C8A34 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit This in current as of Saturday. The attached patch to i386/i386/userconfig.c fixes the problem.: Regards -- Peter Holm | mailto:peter@holm.cc | http://login.dknet.dk/~pho/ -[ Member of the BSD-Dk User Group / http://www.bsd-dk.dk/ ] - --------------C6C980DA3C83F9AE928C8A34 Content-Type: text/plain; charset=us-ascii; name="userconfig.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="userconfig.diff" *** userconfig.c~ Sun Jun 27 18:39:23 1999 --- userconfig.c Sun Jun 27 18:58:52 1999 *************** *** 843,849 **** { struct isa_device *id_p,*id_pn; struct isa_driver *isa_drv; ! char *name = list->device->id_driver->name; while (list) { --- 843,849 ---- { struct isa_device *id_p,*id_pn; struct isa_driver *isa_drv; ! char *name; while (list) { *************** *** 859,864 **** --- 859,865 ---- { /* look on the list for it */ if (id_p->id_id == list->device->id_id) { + name = list->device->id_driver->name; id_pn = id_p->id_next; isa_drv = id_p->id_driver; if (isa_drv && isa_drv->name) *************** *** 878,883 **** --- 879,885 ---- } if (!id_pn) /* not already on the list */ { + name = list->device->id_driver->name; id_pn = malloc(sizeof(struct isa_device),M_DEVL,M_WAITOK); bcopy(list->device,id_pn,sizeof(struct isa_device)); save_resource(list->device); --------------C6C980DA3C83F9AE928C8A34-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?377711B4.F86D0404>