VxWorks Reference Manual : Libraries
mmuSparcILib - ROM MMU initialization (SPARC)
mmuSparcRomInit( ) - initialize the MMU for the ROM (SPARC)
This library contains routines that are called by SPARC boot ROMs to initialize the translation tables while still in "boot state." When the board comes up, all instruction fetches from the boot ROMs bypass the MMU, thus allowing code in the ROMs to initialize the MMU tables with mappings for RAM, I/O devices, and other memory devices.
mmuSparcRomInit( ) is called from romInit( ). The translation tables are initialized according to the mappings found in sysPhysMemDesc, which is contained in memDesc.c in the BSP. Note that these mappings are also used by vmLib or vmBaseLib when VxWorks creates global virtual memory at system initialization time. New ROMs may need to be built if these tables are modified.
mmuSparcRomInit( ) - initialize the MMU for the ROM (SPARC)
STATUS mmuSparcRomInit ( int * mmuTableAdrs, /* address for the MMU tables */ int mmuRomPhysAdrs, /* ROM physical address */ int romInitAdrs /* address where romInit was linked in */ )
This routine initializes the MMU when the system is booted. It should be called only from romInit( ). This routine is necessary because MMU libraries are not initialized by the boot code in bootConfig; they are initialized only in the VxWorks image in usrConfig. The same sysPhysMemDesc is used by this routine as well as usrMmuInit( ) in usrConfig to maintain consistency.
OK.