diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2021-06-17 16:55:58 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-06-18 16:02:09 +0000 |
commit | 5f2141519ba6e7855d1b2e520fa23b9176394462 (patch) | |
tree | 376316cc8fa1186fc76b483e72242c25f6ef8f4b /src | |
parent | 69a957f85c89a167f14ae32be2ca60fe3ce9d2d2 (diff) |
arch/x86/include/arch/smp/mpspec: improve mp_bustype enum definition
Since the raw values of the enum elements are used, explicitly assign
the value 0 to the first element to make it clearer that the absolute
values matter here.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I69f58cca7130ce5f0ebe4743754e4e31f55db289
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55615
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/include/arch/smp/mpspec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/include/arch/smp/mpspec.h b/src/arch/x86/include/arch/smp/mpspec.h index a51399347a..0528f05300 100644 --- a/src/arch/x86/include/arch/smp/mpspec.h +++ b/src/arch/x86/include/arch/smp/mpspec.h @@ -155,7 +155,7 @@ struct mpc_config_lintsrc { #define MAX_IRQ_SOURCES 128 #define MAX_MP_BUSSES 32 enum mp_bustype { - MP_BUS_ISA, + MP_BUS_ISA = 0, MP_BUS_EISA, MP_BUS_PCI, MP_BUS_MCA |