set state Initialized/Created for Shared/Transfer mem type (#2873)

This commit is contained in:
fl0be
2026-10-06 22:02:20 +02:00
committed by GitHub
parent f5cd912604
commit 36cc9a9f49
2 changed files with 6 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ namespace ams::os {
/* Create the critical section. */ /* Create the critical section. */
util::ConstructAt(shared_memory->cs_shared_memory); util::ConstructAt(shared_memory->cs_shared_memory);
/* Set state to initialized. */
shared_memory->state = SharedMemoryType::State_Initialized;
} }
} }

View File

@@ -33,6 +33,9 @@ namespace ams::os {
/* Create the critical section. */ /* Create the critical section. */
util::ConstructAt(tmem->cs_transfer_memory); util::ConstructAt(tmem->cs_transfer_memory);
/* Set state to created. */
tmem->state = TransferMemoryType::State_Created;
} }
} }