Compare commits

..

32 Commits

Author SHA1 Message Date
Michael Scire
d0585da284 pm: update for fsp-pr RegisterProgram api change 2025-05-07 12:46:54 -07:00
Michael Scire
9dd8269f75 docs: add gcc15 to changelog 2025-05-04 13:31:08 -07:00
Michael Scire
6135e39ace boot: use #embed for fusee 2025-05-04 13:26:10 -07:00
Michael Scire
56922bb59a exo: use #embed for loader stub 2025-05-04 13:26:10 -07:00
Michael Scire
9d986e0501 fusee: use embed in mtc/sdram param scripts 2025-05-04 13:26:10 -07:00
Michael Scire
29cadcd269 ams: basic support for compiling with gcc 15 2025-05-04 13:26:10 -07:00
Michael Scire
49058b204c fusee: fix off-by-one in nogc patches for exFAT firm 2025-05-04 13:14:58 -07:00
Michael Scire
67f4347aa2 docs: add provisional changelog for ams 1.9.0 2025-05-02 20:35:41 -07:00
Michael Scire
0ecc35c062 fs.mitm: add and use memlet module to temporarily steal applet memory while building romfs images.
Starting in 20.0.0, the browser needs more applet memory to function, so we can't steal as much any more.
Thus, we now steal 14 MB on 20.0.0+ instead of 40MB.

However, since this reduces memory available for custom system modules, we are adjusting to compensate.
ams.mitm's heap size has been reduced from 32MB to 12MB (recovering 20MB).
In addition, fs.mitm now uses a new mechanism for stealing memory from the applet pool while romfs is being built.

On net, we are compromising:
    * Custom sysmodules lose memory available to them.
        On 19.0.0/AMS 1.8.0, there was 30 MB available for custom sysmodules.
        Stealing 14 MB instead of 40 MB, we lose 26 MB of that. Reducing ams.mitm's usage will gain us back 20.
        Nintendo also appears to...use 4 extra MB, in 20.0.0, from my test homebrew.
        So on 20.0.0/AMS 1.9.0, there should be 20 MB available for custom sysmodules.
        On the bright side, on <20.0.0/AMS 1.9.0, I guess there will be 50 MB available for custom sysmodules now?
    * totk mods will lose the ability to...put every file in the romfs on sd card. There will be some unknown maximum filecount for totk mods.
        On the bright side, implementing the transient memory stealing should improve compatibility for some mods which strictly add files?
2025-05-02 20:17:16 -07:00
Michael Scire
d0cb9b0eb7 emummc: fix offsets for 20.0.0-exfat 2025-05-02 17:40:02 -07:00
Michael Scire
5f248f91c4 ams: add enum support for 20.0.1/18.0.1 2025-05-02 17:30:05 -07:00
Michael Scire
e56bf902dc erpt: initial support (incomplete) for 20.0.0 2025-05-01 20:41:56 -07:00
Michael Scire
37a971a706 ldr/pm: update for 20.0.0 abi changes 2025-05-01 20:41:17 -07:00
Michael Scire
6bab59ea3d strat: update for fsp-ldr 20.0.0 changes 2025-05-01 18:05:10 -07:00
Michael Scire
a8e955d3be ncm: update to implement new ContentMetaDatabase function for 20.0.0 2025-04-30 23:27:36 -07:00
Michael Scire
13780c5c65 kern: plutoo is an intellectual, I am a fool, fix chicanery 2025-04-30 22:33:40 -07:00
Michael Scire
8f30415043 kern: use callback to note pte updates in KPageTableImpl 2025-04-30 22:31:25 -07:00
Michael Scire
ecc8955228 kern: refactor FindFreeArea region search logic per 20.0.0 changes 2025-04-30 21:52:01 -07:00
Michael Scire
1b89379cc2 kern: update instruction cache invalidation logic in KPageTableBase to reflect 20.0.0 changes 2025-04-30 20:54:56 -07:00
Michael Scire
6ea2853f4e kern: reorder resource manager implementation 2025-04-30 20:37:42 -07:00
Michael Scire
826b749971 kern: support null resource limit in KSecureSystemResource 2025-04-30 20:24:22 -07:00
Michael Scire
d56deffa2a kern: update synchronous exception handlers to assume FAR validity on TLB conflict 2025-04-30 20:05:25 -07:00
Michael Scire
9e25c58899 kern: adjust system registers during exception handling on MTE-violation or kernel address fault 2025-04-30 19:57:45 -07:00
Michael Scire
480a66e06b kern: update UserspaceAccess functions for 20.0.0 changes 2025-04-30 19:33:49 -07:00
Michael Scire
bd30cdad97 kern: update crt0 to reflect 20.0.0 changes 2025-04-30 19:15:23 -07:00
Michael Scire
0dfaf712c7 kern: update KAddressSpaceInfo to reflect 20.0.0 changes 2025-04-30 18:56:47 -07:00
Michael Scire
80268e8187 kern: invert meaning of KTargetSystem/KSystemControl bools 2025-04-30 18:23:16 -07:00
Michael Scire
edb993c88c erpt: update ids for 20.0.0 2025-04-30 15:04:19 -07:00
Michael Scire
d336ca188f readme: sept has not been in the project for many years 2025-04-29 23:06:56 -07:00
Michael Scire
ad5f14c930 loader: add usb 3.0 enable patches for 20.0.0 2025-04-29 23:01:44 -07:00
Michael Scire
95bf28e3ac emummc: add offsets for 20.0.0 (untested) 2025-04-29 22:50:28 -07:00
Michael Scire
bd0890affb fusee/exo/ams: update with new keydata/version enums 2025-04-29 22:14:01 -07:00
25 changed files with 8 additions and 8 deletions

4
emummc/.gitrepo vendored
View File

@@ -6,7 +6,7 @@
[subrepo]
remote = https://github.com/m4xw/emummc
branch = develop
commit = 7522f1f6054a71bdff5beadee0302cead1235be3
parent = 0e2ef545f947d24c6add254874ab493ba84bbdc9
commit = d248ea6f700c3e6987549e30a1e2eeb609ce9f8c
parent = 9112461620330ba73a74926edd4c08b3cc0310f0
method = merge
cmdver = 0.4.1

View File

@@ -6,7 +6,7 @@
[subrepo]
remote = https://github.com/Atmosphere-NX/Atmosphere-libs
branch = master
commit = 9e8cbe3faa4604e9ae162546d13a74755ce30667
parent = 4d4f0ba96876d20e505c7aa11c9bf215f276dd8b
commit = 989fb7be0c68bf229fe6789428b6c448b6de142a
parent = be19749841e581de4cc5d38f39f4de5fa4046c52
method = merge
cmdver = 0.4.1

View File

@@ -57,8 +57,8 @@ namespace ams::svc {
/* This is the highest SVC version supported by Atmosphere, to be updated on new kernel releases. */
/* NOTE: Official kernel versions have SVC major = SDK major + 4, SVC minor = SDK minor. */
constexpr inline u32 SupportedKernelMajorVersion = ConvertToSvcMajorVersion(20);
constexpr inline u32 SupportedKernelMinorVersion = ConvertToSvcMinorVersion( 5);
constexpr inline u32 SupportedKernelMajorVersion = ConvertToSvcMajorVersion(19);
constexpr inline u32 SupportedKernelMinorVersion = ConvertToSvcMinorVersion( 3);
constexpr inline u32 SupportedKernelVersion = EncodeKernelVersion(SupportedKernelMajorVersion, SupportedKernelMinorVersion);

View File

@@ -32,7 +32,7 @@ namespace ams::boot {
alignas(os::MemoryPageSize) u8 g_work_page[os::MemoryPageSize];
constexpr const u8 FuseeBin[] = {
#embed <fusee.bin>
#embed ATMOSPHERE_BOOT_FUSEE_PATH
};
/* Helpers. */

View File

@@ -127,7 +127,7 @@ $(OFILES) : $(ATMOSPHERE_LIBRARIES_DIR)/libstratosphere/$(ATMOSPHERE_LIBRARY_DIR
@npdmtool $< $@
@echo built ... $(notdir $@)
boot_power_utils.o: CXXFLAGS += --embed-dir="$(ATMOSPHERE_LIBRARIES_DIR)/../fusee/$(ATMOSPHERE_BOOT_OUT_DIR)/"
boot_power_utils.o: CXXFLAGS += -DATMOSPHERE_BOOT_FUSEE_PATH=\"$(ATMOSPHERE_LIBRARIES_DIR)/../fusee/$(ATMOSPHERE_BOOT_OUT_DIR)/fusee.bin\"
-include $(DEPENDS)