testfw: test that UDI can't be read app-mode

This commit is contained in:
Daniel Lublin 2022-12-09 08:32:17 +01:00
parent 93ec5b178a
commit 65ec5ccea2
No known key found for this signature in database
GPG Key ID: 75BD0FEB8D3E7830

View File

@ -185,6 +185,13 @@ int main()
// anyfailed = 1;
// }
// Should NOT be able to read from UDI in app-mode.
wordcpy(udi_local, (void *)udi, UDI_WORDS);
if (!memeq(udi_local, zeros, UDI_WORDS * 4)) {
puts("FAIL: Read from UDI in app-mode\r\n");
anyfailed = 1;
}
uint32_t cdi_local[CDI_WORDS];
uint32_t cdi_local2[CDI_WORDS];
wordcpy(cdi_local, (void *)cdi, CDI_WORDS);