Commit 18f270b
authored
nvm: add flash log implementation (#179)
* nvm: nvm flash log based implementation
it can be used when the write granularity is too big to be used with the
current wh_nvm_flash implementation.
* test: generalize whTest_NvmFlashCfg
* test: test nvm flash log backend
* test: use nvm_flash_log to do test if compiled it
* test: generalize tests to use both NVM backends
* nvm_flash_log: fix and refactor List callback
* nvm_flash_log: rename and add arg checking to local functions
* nvm_flash_log: check context is initialized in public functions
* nvm_flash_log: fix mem clean on obj destroy + minors
* nvm_flash_log: allow NULL metadata in GetMetadata
* nvm_flash_log: read-back current partition if update fails
* nvm_flash_log: add performance consideration in header
* nvm_flash_log: verify program and erase
* nvm_flash_log: fix from cppcheck
* widetree: fix clang-format error
* nvm_flash_log: move configuration define in test/config/wolfhsm_cfg.h
* nvm_flash_log: better naming for test structure and functions
* nvm_flash_log: erase inactive partition on partition commit
* nvm_flash_log: fix object limit in addObject
* git-clang-format fixes
* nvm_flash_log: test: remove useless assert
* nvm_flash_log: test: rename nvm backend enums1 parent 77285da commit 18f270b
File tree
18 files changed
+1085
-148
lines changed- src
- test
- config
- wolfhsm
18 files changed
+1085
-148
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
| 136 | + | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
655 | | - | |
656 | | - | |
| 655 | + | |
| 656 | + | |
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
680 | | - | |
681 | | - | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
682 | 683 | | |
683 | 684 | | |
684 | 685 | | |
685 | 686 | | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
| 687 | + | |
| 688 | + | |
691 | 689 | | |
692 | 690 | | |
693 | 691 | | |
| |||
728 | 726 | | |
729 | 727 | | |
730 | 728 | | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
| 729 | + | |
| 730 | + | |
738 | 731 | | |
739 | 732 | | |
740 | 733 | | |
| |||
1243 | 1236 | | |
1244 | 1237 | | |
1245 | 1238 | | |
1246 | | - | |
1247 | | - | |
| 1239 | + | |
| 1240 | + | |
1248 | 1241 | | |
1249 | 1242 | | |
1250 | 1243 | | |
1251 | | - | |
| 1244 | + | |
1252 | 1245 | | |
1253 | 1246 | | |
1254 | 1247 | | |
1255 | 1248 | | |
1256 | 1249 | | |
1257 | 1250 | | |
1258 | | - | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
| 1251 | + | |
| 1252 | + | |
1262 | 1253 | | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
| 1254 | + | |
| 1255 | + | |
1270 | 1256 | | |
1271 | 1257 | | |
1272 | 1258 | | |
0 commit comments