mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
add some more comments
This commit is contained in:
parent
cad9c15849
commit
2df2e654dd
1 changed files with 7 additions and 0 deletions
|
|
@ -198,6 +198,13 @@ mod implementation {
|
||||||
- we include the build seed so that for many use cases we don't accidentally resume from a suspend
|
- we include the build seed so that for many use cases we don't accidentally resume from a suspend
|
||||||
built for a different FPGA image. This fails in the case that someone has fixed the seed for
|
built for a different FPGA image. This fails in the case that someone has fixed the seed for
|
||||||
the purpose of reproducible builds.
|
the purpose of reproducible builds.
|
||||||
|
- we hash a whole page instead of just checking a couple words because power-off bit corruption
|
||||||
|
on the RAM will be accumulated faster with a larger sampling size.
|
||||||
|
- we don't hash the entire physical RAM space because we can't, due to process isolation enforced
|
||||||
|
by the virtual memory system. But that would be a more robust way to do this, if we made some
|
||||||
|
mechanism to reach around all the protections. But...a mechanism that can reach around all protections
|
||||||
|
can reach around all protections, and is probably not worth the risk of abuse. So just checking a page of RAM
|
||||||
|
is probably a reasonable compromise between security and robustness of detecting a short power-down.
|
||||||
*/
|
*/
|
||||||
let seed0 = self.seed_csr.r(utra::seed::SEED0);
|
let seed0 = self.seed_csr.r(utra::seed::SEED0);
|
||||||
let seed1 = self.seed_csr.r(utra::seed::SEED1);
|
let seed1 = self.seed_csr.r(utra::seed::SEED1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue