fusee_cpp: tweaks, now completes SecureInitialize on hardware

This commit is contained in:
Michael Scire
2021-08-21 22:20:44 -07:00
committed by SciresM
parent c91f95e8f6
commit f2a1c60218
6 changed files with 24 additions and 41 deletions

View File

@@ -87,7 +87,9 @@ namespace ams::nxboot::loader {
}
void Copy(size_t size) {
__builtin_memcpy(this->dst + this->dst_offset, this->src + this->src_offset, size);
for (size_t i = 0; i < size; ++i) {
this->dst[this->dst_offset + i] = this->src[this->src_offset + i];
}
this->dst_offset += size;
this->src_offset += size;
}