]> git.dujemihanovic.xyz Git - u-boot.git/commit
zboot: Correct use of state_mask argument
authorSimon Glass <sjg@chromium.org>
Wed, 19 Jun 2024 12:34:52 +0000 (06:34 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 26 Jun 2024 19:17:52 +0000 (13:17 -0600)
commit52ff1f5da0ef16e07984eee9a32408c71443812e
treefbaaa1542de6deb125f6bf55974e7846f5d728f2
parentbce4c15f26e164d1c96bf0f1c4d33bf0f0dc8a90
zboot: Correct use of state_mask argument

There is confusion in this function between the flag and state_mask
parameters, which prevents the boot from actually happening. Correct
this by using state_mask instead of flag for deciding which states to go
through.

This fixes booting of some 32-bit Debian kernels.

Note: Some sort of CI for this is in the works.

Fixes: 228c6722d44 ("x86: zboot: Avoid iteration in do_zboot_states()")
Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/x86/zboot.c