From a18e2809afa0e649224b40bf5b4bbe1d87193a89 Mon Sep 17 00:00:00 2001 From: Oliver O'Halloran Date: Wed, 28 Sep 2016 14:56:29 +1000 Subject: 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 Signed-off-by: Stewart Smith --- core/test/run-nvram-format.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/test') 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; -- cgit v1.1