From owner-freebsd-current Sat Jul 24 1:23:45 1999 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 6E59014BFF; Sat, 24 Jul 1999 01:23:41 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.2) with ESMTP id KAA44342; Sat, 24 Jul 1999 10:20:39 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: "Gary Palmer" Cc: freebsd-current@FreeBSD.ORG Subject: Re: Patch for Alpha/AXP In-reply-to: Your message of "Sat, 24 Jul 1999 03:20:43 EDT." <83883.932800843@noop.colo.erols.net> Date: Sat, 24 Jul 1999 10:20:39 +0200 Message-ID: <44340.932804439@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Yes, looks right. In message <83883.932800843@noop.colo.erols.net>, "Gary Palmer" writes: > >Does this look right? Without this patch, my AXP was memory faulting >every time it booted, in the dev2udev routine. > >Thanks > > >Index: alpha/alpha/cons.c >=================================================================== >RCS file: /home/ncvs/src/sys/alpha/alpha/cons.c,v >retrieving revision 1.11 >diff -u -r1.11 cons.c >--- cons.c 1999/06/22 14:13:16 1.11 >+++ cons.c 1999/07/24 07:18:25 >@@ -88,9 +88,8 @@ > }; > > static dev_t cn_dev_t; /* seems to be never really used */ >-static udev_t cn_udev_t; > SYSCTL_OPAQUE(_machdep, CPU_CONSDEV, consdev, CTLFLAG_RD, >- &cn_udev_t, sizeof cn_udev_t, "T,dev_t", ""); >+ &cn_dev_t, sizeof cn_dev_t, "T,dev_t", ""); > > static int cn_mute; > >@@ -185,7 +184,6 @@ > cdp->d_open = cnopen; > cn_tp = (*cdp->d_devtotty)(cn_tab->cn_dev); > cn_dev_t = cn_tp->t_dev; >- cn_udev_t = dev2udev(cn_dev_t); > } > > static void >@@ -206,7 +204,6 @@ > cn_phys_open = NULL; > cn_tp = NULL; > cn_dev_t = 0; >- cn_udev_t = dev2udev(cn_dev_t); > } > > /* > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-current" in the body of the message > -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message