From owner-cvs-all Sat May 13 13:46:10 2000 Delivered-To: cvs-all@freebsd.org Received: from bogon.freebsd.dk (bogon.freebsd.dk [212.242.40.178]) by hub.freebsd.org (Postfix) with ESMTP id 1AB0A37B7A3; Sat, 13 May 2000 13:45:55 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk ([212.242.127.222]) by bogon.freebsd.dk (8.9.3/8.9.3) with ESMTP id WAA18629; Sat, 13 May 2000 22:45:46 +0200 (CEST) (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.3) with ESMTP id WAA00553; Sat, 13 May 2000 22:45:41 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Peter Wemm Cc: obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/alpha/alpha mem.c In-reply-to: Your message of "Sat, 13 May 2000 13:41:02 PDT." <20000513204102.7508C1CDF@overcee.netplex.com.au> Date: Sat, 13 May 2000 22:45:40 +0200 Message-ID: <551.958250740@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20000513204102.7508C1CDF@overcee.netplex.com.au>, Peter Wemm writes : >"David O'Brien" wrote: >> On Sat, May 13, 2000 at 12:43:00AM -0700, Peter Wemm wrote: >> > Log: >> > There are still too many diffs relative to the i386 version. >> >> Couldn't the two be merged? (perhaps with just a very few #ifdef's) > >More of it maybe, but take (for instance) the physical addresses. They >are 32bit vs. 64 bit. /dev/mem and /dev/kmem are different too. > >IMHO, /dev/null, /dev/zero, /dev/[u]random etc have no business being in >the same driver as /dev/[k]mem. I think *that* is the basic mistake here. >Everything but mem/kmem should be in a MI "misc devices" driver. The fact that they are is a relic of them sharing one major number. We don't need to use the same devsw{} for all minors of the same major today, so abstracting null, zero and the randoms out to some MI place would be simple. Interested Junior Kernel Hackers can apply here. Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message