diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-06-12 22:57:36 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-06-12 22:57:36 +0000 |
commit | ac54402480d1578f73d27e590c6e0879358eba67 (patch) | |
tree | 58dda54c79c37a339ce3cfbdf6d03fdbf413b81c /flashrom.c | |
parent | 034624d58c03d876cbc14dfeaac1741134d2b1cd (diff) | |
download | flashrom-ac54402480d1578f73d27e590c6e0879358eba67.tar.gz |
Add selfcheck_board_enables().
Check for NULL termination of the array, that each board has the two
main PCI ID sets defined, that coreboot vendor and model fields are either
both set or unset, and that at least either an enable function or a max
decode size is available.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1821 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1758,6 +1758,10 @@ int selfcheck(void) } } +#if CONFIG_INTERNAL == 1 + ret |= selfcheck_board_enables(); +#endif + /* TODO: implement similar sanity checks for other arrays where deemed necessary. */ return ret; } |