d27ef5bf6f
Using cb_err as return type clarifies the meaning of the different return values. This patch also adds the types.h include that provides the definition of the cb_err enum and checks the return value of mp_init_with_smm against the enum values instead of either checking if it's non-zero or less than zero to handle the error case. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ibcd4a9a63cc87fe176ba885ced0f00832587d492 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58491 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> |
||
---|---|---|
.. | ||
acpi | ||
bootblock | ||
include/soc | ||
nhlt | ||
romstage | ||
acpi.c | ||
chip.c | ||
chip.h | ||
chipset.cb | ||
cpu.c | ||
elog.c | ||
fadt.c | ||
finalize.c | ||
gpio.c | ||
graphics.c | ||
gspi.c | ||
i2c.c | ||
irq.c | ||
Kconfig | ||
lockdown.c | ||
lpc.c | ||
Makefile.inc | ||
me.c | ||
p2sb.c | ||
pmc.c | ||
pmutil.c | ||
reset.c | ||
sd.c | ||
smihandler.c | ||
spi.c | ||
systemagent.c | ||
uart.c | ||
vr_config.c | ||
xhci.c |