Commit 56da5a0
committed
[sw] Harden the new
In addition to using hardened functions for control flow integrity, this
change updates `boot_data_write` to write each entry twice per page
(at index 0 and 1). This redundancy ensures that the boot data can
survive some types of persistent bit corruption.
Change-Id: I548174aba322da3b5bf7c568fbde5abc032e81c0
Signed-off-by: Yi-Hsuan Deng <yhdeng@google.com>boot_data_write
1 parent b561ed4 commit 56da5a0
File tree
2 files changed
+15
-4
lines changed- sw/device/silicon_creator/lib
2 files changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
660 | | - | |
| 660 | + | |
| 661 | + | |
661 | 662 | | |
662 | 663 | | |
663 | 664 | | |
| |||
667 | 668 | | |
668 | 669 | | |
669 | 670 | | |
670 | | - | |
671 | 671 | | |
| 672 | + | |
| 673 | + | |
672 | 674 | | |
673 | 675 | | |
| 676 | + | |
| 677 | + | |
674 | 678 | | |
| 679 | + | |
675 | 680 | | |
676 | 681 | | |
677 | | - | |
678 | | - | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
679 | 686 | | |
680 | 687 | | |
681 | 688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
| 358 | + | |
357 | 359 | | |
358 | 360 | | |
359 | 361 | | |
360 | 362 | | |
| 363 | + | |
| 364 | + | |
361 | 365 | | |
362 | 366 | | |
363 | 367 | | |
| |||
0 commit comments