initial support for emummc on emmc

This commit is contained in:
Christoph Baumann
2025-02-19 14:44:19 +01:00
parent 5fb3507a2a
commit ed17414b50
4 changed files with 57 additions and 14 deletions

View File

@@ -447,10 +447,11 @@ namespace ams::secmon::smc {
/* Copy out type-specific data. */
switch (cfg.base_cfg.type) {
case EmummcType_None:
case EmummcType_Raw_Emmc:
/* No additional configuration needs to be copied. */
break;
case EmummcType_Partition:
case EmummcType_Partition_Sd:
case EmummcType_Partition_Emmc:
/* Copy the partition config. */
static_assert(sizeof(cfg.base_cfg) + sizeof(cfg.partition_cfg) <= InlineOutputSize);
std::memcpy(inline_output + sizeof(cfg.base_cfg), std::addressof(cfg.partition_cfg), sizeof(cfg.partition_cfg));