mirror of
https://github.com/switchbrew/switch-tools.git
synced 2025-08-07 09:09:23 +02:00
npdmtool: add support for 11.0.0 DisableDeviceAddressSpaceMerge
This commit is contained in:
parent
980dbbfe4c
commit
fe13e1c1da
@ -362,6 +362,13 @@ int CreateNpdm(const char *json, void **dst, u32 *dst_size) {
|
||||
}
|
||||
header.MmuFlags |= is_64_bit;
|
||||
|
||||
int disable_device_address_space_merge;
|
||||
if (!cJSON_GetBoolean(npdm_json, "disable_device_address_space_merge", &disable_device_address_space_merge)) {
|
||||
status = 0;
|
||||
goto NPDM_BUILD_END;
|
||||
}
|
||||
header.MmuFlags |= ((disable_device_address_space_merge & 1) << 5);
|
||||
|
||||
/* ACID. */
|
||||
memset(acid->Signature, 0, sizeof(acid->Signature));
|
||||
memset(acid->Modulus, 0, sizeof(acid->Modulus));
|
||||
|
Loading…
Reference in New Issue
Block a user