forked from bkifft/Project_CTR
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add necessary features for LgyBg and Process9 development (#151)
* [makerom] Add -baremetal flag This is a workaround to us not supporting multiple phdr per "segment". K9 and legacy FIRM k11 don't have memory management and have everything be RWX. We can exploit how they load CIPs to have the segment be anything, and be able to be loaded at any VMA (first segment defines LMA and entrypoint, however). With this flag, the first phdr in the .elf file is always chosen as the "code" segment and so on. For example, we can have a FCRAM segment where the image is initially loaded and jumped to, as the first segment, then an AXIWRAM segment. For TwlBg, Nintendo seems to have a RWX phdr inside the code "segment" that it relocates to AXIWRAM, but we don't support this. "-baremetal" implies "-nocodepadding". * [makerom] Add -pagesize option Kernel9 uses pagesize=0x100 instead of the usual 0x1000. * [makerom] Remove 32 interrupt ID limitation
- Loading branch information
Showing
6 changed files
with
149 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.