Quote:
Originally Posted by jakdillard
I looked at your xip and you did not move nk.exe and you still have nul spaces so you did gain anything
|
I didn't check the physical map when I was done - just that there was no overlap and no space in the DLL start and virtual base addresses. Making it smaller wasn't actually one of my goals though - my primary goals were restoring menfilt.dll and cachefilt.dll and properly applying the cache. I accomplished my goals for my first try at this. For my second attempt I'll go back and look at this again. I would consider moving stuff out of XIP into IMGFS - but I just don't have time to figure out what can safely be moved out by trial and error - and a previous comment about a ROM with two modules removed from XIP not booting on a TP scared me off.
As for further compressing out space, I'm looking at my physical RAM map and see a ROM partition header from 0x000000 - 0x001000, then the start of NK.EXE region 0, etc. There are null spaces here and there, mostly sized < 0x1000 bytes. Is there any page alignment requirement for the data regions or module entry points? In other words, can I compact stuff to get rid of all null spaces? If so, then I assume that in the end I will have free space at the end of the image and can change the XIP partition size to get rid of that free space, which will return that RAM back to the OS. Am I on the right track here? Any pitfalls to look out for?
P.S. Can you guys arguing over the kitchen please move it to a different thread?