chaoskagami [Mon, 23 May 2016 17:56:57 +0000 (13:56 -0400)]
Experimental shite.
The kernel doesn't get passed CPU flags from the functions called here.
Assuming the kernel doesn't seek backwards from the exheader pointer,
the CPU state should already have been set by AM, which means loader
can override what was previously set.
That being the case, if I am correct, setting the CPU speed from
loader should technically persist to application launch. This needs
testing, obviously, but I believe granular CPU speed control is
possible from here.
chaoskagami [Mon, 23 May 2016 06:07:25 +0000 (02:07 -0400)]
Multiple changes
- Update loader to latest ctrulib (FS_Archive changed quite a bit, broke API and ABI, ugh)
- Clean up some patch handling code for future
chaoskagami [Thu, 19 May 2016 19:26:23 +0000 (15:26 -0400)]
Many changes here.
- Make services assembled from .s files in external/services
- Arbitrary service loading now, including a NULL safety toggle
- Drop armips for clever gnu as usage
- Loader can (theoretically) resize segments now, so one step closer
to building a romfs overlay into loader
- Split function for patches into text, data, ro patches
- Stub IFile_Write - Hopefully I implement it soon, I'd like logging.
- Other misc changes. I forget whether this was the previous commit,
but I added @TuxSH's RO patch.