]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_selftest: testing read-only variables
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 26 Sep 2019 20:10:25 +0000 (22:10 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 6 Oct 2019 14:02:37 +0000 (16:02 +0200)
commit1b7313d91fc6f52368abba409646683410e7bd41
treeaebf34c50153bed4782a778ac023be3d795e0de3
parentc9dd62f9c243f48b0facc5ce252041ccb7a06362
efi_selftest: testing read-only variables

The UEFI spec has this sentence:
"Variables that have runtime access but that are not nonvolatile are
read-only data variables once ExitBootServices() is performed."

At least EDK2 therefore treats variable PlatformLangCodes only as read-only
at runtime. Nowhere do we make this variable read-only in U-Boot.

Do not use variable PlatformLangCodes for testing if the read only
attribute of variables is observed before ExitBootServices().

Fixes: 5a24239c951e ("efi_loader: selftest: enable APPEND_WRITE tests")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_selftest/efi_selftest_variables.c