program_loading: make types a mask, make unknown type a non-zero

Hardware / Coreboot - Ronald G. Minnich [gmail.com] - 14 May 2018 02:54 EDT

This will allow loading of programs that are more than one type, e.g. ramstage type might now be a stage or payload.

Further, unknown types of 0 are dangerous, make it a real value.

Change-Id: Ieb4eeb7c5934bddd9046ece8326342db0d76363c

f3d99b6a65 program_loading: make types a mask, make unknown type a non-zero
src/include/program_loading.h | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)

Upstream: review.coreboot.org


  • Share