From owner-freebsd-arch@FreeBSD.ORG Thu Jul 22 13:02:22 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9ABC416A4CE for ; Thu, 22 Jul 2004 13:02:22 +0000 (GMT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 5B39E43D53 for ; Thu, 22 Jul 2004 13:02:21 +0000 (GMT) (envelope-from roam@ringlet.net) Received: (qmail 10422 invoked from network); 22 Jul 2004 12:57:32 -0000 Received: from unknown (HELO straylight.m.ringlet.net) (217.75.134.254) by gandalf.online.bg with SMTP; 22 Jul 2004 12:57:32 -0000 Received: (qmail 17782 invoked by uid 1000); 22 Jul 2004 13:02:18 -0000 Date: Thu, 22 Jul 2004 16:02:18 +0300 From: Peter Pentchev To: Mark Murray Message-ID: <20040722130218.GA17391@straylight.m.ringlet.net> Mail-Followup-To: Mark Murray , arch@freebsd.org References: <200407211952.i6LJquJ3010111@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LKTjZJSUETSlgu2t" Content-Disposition: inline In-Reply-To: <200407211952.i6LJquJ3010111@grimreaper.grondar.org> User-Agent: Mutt/1.5.6i cc: arch@freebsd.org Subject: Re: [PATCH] Big cleanup job on memory device X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2004 13:02:22 -0000 --LKTjZJSUETSlgu2t Content-Type: multipart/mixed; boundary="MnLPg7ZWsaic7Fhd" Content-Disposition: inline --MnLPg7ZWsaic7Fhd Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 21, 2004 at 08:52:55PM +0100, Mark Murray wrote: > Hey all >=20 > Please have a look at http://people.freebsd.org/~markm/mem.diff >=20 > It is a big cleanup of sys/${ARCH}/${ARCH}/mem.c, and it turns > multiple copies of MD code into MI code with the MD bits broken > out. Lots of garbage is retired. >=20 > It also turns the memory and io devices into loadable modules, > but going this route is probably for the braver folks amongst us. >=20 > I wrote 99% of this code more than a year ago, and over time, its > been tested on i386, alpha and sparc64. Works for me; it just survived a buildworld on my somewhat loaded workstation (MySQL, PostgreSQL, X and all). It seems that you would need something like the attached patch to actually build LINT, though. And of course, a very strongly-worded UPDATING entry about including the 'null' and 'mem' devices in the kernel config, but I guess that's already on your list :) G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If wishes were fishes, the antecedent of this conditional would be true. --MnLPg7ZWsaic7Fhd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mem-NOTES.patch" Content-Transfer-Encoding: quoted-printable Index: sys/conf/NOTES =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/conf/NOTES,v retrieving revision 1.1249 diff -u -r1.1249 NOTES --- sys/conf/NOTES 20 Jul 2004 12:42:54 -0000 1.1249 +++ sys/conf/NOTES 22 Jul 2004 12:45:04 -0000 @@ -831,6 +831,12 @@ # Cryptographically secure random number generator; /dev/[u]random device random =20 +# The bit-bucket; /dev/null +device null + +# The system memory device; /dev/mem +device mem + # Optional character code conversion support with LIBICONV. # Each option requires their base file system and LIBICONV. options CD9660_ICONV Index: sys/amd64/conf/NOTES =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/amd64/conf/NOTES,v retrieving revision 1.14 diff -u -r1.14 NOTES --- sys/amd64/conf/NOTES 17 May 2004 22:13:14 -0000 1.14 +++ sys/amd64/conf/NOTES 22 Jul 2004 12:45:43 -0000 @@ -517,3 +517,7 @@ options VM_KMEM_SIZE options VM_KMEM_SIZE_MAX options VM_KMEM_SIZE_SCALE + +=0C +# The I/O device +device io Index: sys/i386/conf/NOTES =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/i386/conf/NOTES,v retrieving revision 1.1166 diff -u -r1.1166 NOTES --- sys/i386/conf/NOTES 21 Jul 2004 14:47:54 -0000 1.1166 +++ sys/i386/conf/NOTES 22 Jul 2004 12:45:25 -0000 @@ -1053,3 +1053,7 @@ options VM_KMEM_SIZE options VM_KMEM_SIZE_MAX options VM_KMEM_SIZE_SCALE + +=0C +# The I/O device +device io --MnLPg7ZWsaic7Fhd-- --LKTjZJSUETSlgu2t Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA/7ra7Ri2jRYZRVMRAv6+AKCRXUtW+ytDt1mB9YupvgaLsxQPCACfR0RK b7+dh/ir80un3+7JjnDnn04= =ePNB -----END PGP SIGNATURE----- --LKTjZJSUETSlgu2t--