[PATCH] Big cleanup job on memory device
Peter Pentchev
roam at ringlet.net
Thu Jul 22 06:02:22 PDT 2004
On Wed, Jul 21, 2004 at 08:52:55PM +0100, Mark Murray wrote:
> Hey all
>
> Please have a look at http://people.freebsd.org/~markm/mem.diff
>
> 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.
>
> It also turns the memory and io devices into loadable modules,
> but going this route is probably for the braver folks amongst us.
>
> 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
--
Peter Pentchev roam at ringlet.net roam at cnsys.bg roam at 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.
-------------- next part --------------
Index: sys/conf/NOTES
===================================================================
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
+# 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
===================================================================
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
+
+
+# The I/O device
+device io
Index: sys/i386/conf/NOTES
===================================================================
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
+
+
+# The I/O device
+device io
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20040722/f0d14443/attachment.bin
More information about the freebsd-arch
mailing list