Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement
Linux 2.0 Unofficial Patches (20-memzones.patch)

Proposed /proc/memzones addition

Michel LESPINASSE (walken@via.ecp.fr)
Mon Feb 10 20:55:00 1997

[Home] [Linux 2.0] [Linux 2.1] [Information] [Distributions] [Links]

20-memzones.patch
The /proc/interrupts, ioports, dma, pci entryes are VERY useful for me when I'm hacking my hardware, but monday I felt that /proc/memzones was lacking. This entry should report the RAM used by the kernel, for general storage as well as for memory mapped hardware. This would also avoid conflicts between hardware that can choose their memory mapping address.

Well, here is my proposed patch. It is against kernel 2.0.29, but I think this should be very easy to adapt to any newer version. As an example of the modifications this involves on memory-mappign device drivers, I've done the ibm token ring driver patch too.

The result looks like this :

0000-9ffff : ram
c0000-c7fff : rom
c8000-c87ff : rom
d1e00-d1fff : ibmtr mmio
d4000-d7fff : ibmtr shared RAM
266000-1ffffff : ram

It would be most useful if more drivers used this....

Comments, flames, remarks welcome....




[Home] [Up] [Search] [FeedBack]


For information regarding copying and distribution of this material see the COPYING document.
Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.