On Sat, Jul 09, 2005 at 07:26:18AM -0700, Eric Schrock wrote: | On Sat, Jul 09, 2005 at 07:08:23AM -0700, Ivan wrote: | > Hi, | > | > Does somebody know where I could find information about how segmentation and paging are implemented in OpenSolaris? | > | | The easiest place to begin is by reading Solaris Internals | (www.solarisinternals.com), written by Jim Mauro and Rich McDougall. | While slightly out of date, the interfaces are largely unchanged today. | | Once you've digested that, your next step should be the source code. | The code can be found in 'usr/src/uts/common/vm'. In particular, you | should start with 'page.h', 'seg.h', and 'as.h', all of which are | heavily commented.
In particular you'll notice the paging code is really, really old and hasn't been touched significantly in a long time, perhaps with the small exception of the introduction of priority paging in Solaris 7/8. | If you want to get into the details of the HAT (hardware address | translation) layer, you should check out the architecture-specific | directories 'usr/src/uts/i86pc/vm' and 'usr/src/sfmmu/vm'. The x86 HAT | was written from scratch as part of the amd64 port, and is significantly | easier to understand than the SPARC version. For sure. If there are aspects of the SPARC HAT layer you want to know more about shoot me mail and I'll cover those ... I plan to start adding more details around the SPARC HAT layer to my blog soon, since it's a deep, dark corner you really need a flashlight to venture into. ;) -- Eric Lowe Solaris Kernel Development Austin, Texas Sun Microsystems. We make the net work. x64155/+1(512)401-1155 _______________________________________________ opensolaris-code mailing list [email protected] https://opensolaris.org:444/mailman/listinfo/opensolaris-code
