cpu/x86: Replace LAPIC_DM_* with LAPIC_MT_*

AMD64 spec refers to the field as MT (Message Type), but the IA64 spec
refers to it as DM (Delivery Mode). The problem is that there is another
field abbreviated as DM (Destination Mode) right next to it. So for
better readability, just stick to the AMD64 terminology.

Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com>
Change-Id: I25cf69d555fe22526f128ff7ed41f82b71f2acf2
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86683
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Andy Ebrahiem <ahmet.ebrahiem@9elements.com>
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Reviewed-by: Shuo Liu <shuo.liu@intel.com>
This commit is contained in:
Maximilian Brune 2025-03-01 23:09:10 +01:00 committed by Matt DeVillier
commit 883b3971b5
4 changed files with 16 additions and 15 deletions

View file

@ -42,14 +42,15 @@
#define LAPIC_INT_ASSERT 0x04000
#define LAPIC_ICR_BUSY 0x01000
#define LAPIC_DEST_LOGICAL 0x00800
#define LAPIC_DM_FIXED 0x00000
#define LAPIC_DM_LOWEST 0x00100
#define LAPIC_DM_SMI 0x00200
#define LAPIC_DM_REMRD 0x00300
#define LAPIC_DM_NMI 0x00400
#define LAPIC_DM_INIT 0x00500
#define LAPIC_DM_STARTUP 0x00600
#define LAPIC_DM_EXTINT 0x00700
// AMD64 refers to it as MT (Message Type), but IA-64 refers to it as DM (Delivery Mode)
#define LAPIC_MT_FIXED 0x00000
#define LAPIC_MT_LOWEST 0x00100
#define LAPIC_MT_SMI 0x00200
#define LAPIC_MT_REMRD 0x00300
#define LAPIC_MT_NMI 0x00400
#define LAPIC_MT_INIT 0x00500
#define LAPIC_MT_STARTUP 0x00600
#define LAPIC_MT_EXTINT 0x00700
#define LAPIC_VECTOR_MASK 0x000FF
#define LAPIC_ICR2 0x310
#define GET_LAPIC_DEST_FIELD(x) (((x)>>24)&0xFF)