diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-09-28 14:56:29 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-14 16:41:39 +1100 |
commit | a18e2809afa0e649224b40bf5b4bbe1d87193a89 (patch) | |
tree | bcaeb8408e51479979290a254aec12aef6fc7d6f /core/test/run-nvram-format.c | |
parent | 5a1da9a008724586433107ad9576c4fa0191307e (diff) | |
download | skiboot-a18e2809afa0e649224b40bf5b4bbe1d87193a89.zip skiboot-a18e2809afa0e649224b40bf5b4bbe1d87193a89.tar.gz skiboot-a18e2809afa0e649224b40bf5b4bbe1d87193a89.tar.bz2 |
nvram: force re-verification after writing
The running OS is free to re-write the contents of NVRAM. The skiboot
NVRAM parser relies on the NVRAM contents being valid so we need to
force the NVRAM contents to be revalidated after the host OS has written
to it.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/test/run-nvram-format.c')
-rw-r--r-- | core/test/run-nvram-format.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/test/run-nvram-format.c b/core/test/run-nvram-format.c index 4bf3ae0..4ca2cde 100644 --- a/core/test/run-nvram-format.c +++ b/core/test/run-nvram-format.c @@ -18,6 +18,11 @@ #include "../nvram-format.c" +bool nvram_validate(void) +{ + return true; +} + static char *nvram_reset(void *nvram_image, int size) { struct chrp_nvram_hdr *h = nvram_image; |