stos/amd64: lapic: Add support for IPIs

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-26 22:47:01 +00:00
parent 9f040b7eed
commit 1bebf4d37b
3 changed files with 77 additions and 1 deletions
+16 -1
View File
@@ -51,7 +51,7 @@ typedef enum {
} IPI_DELMOD;
/* IPI Delivery status bits */
#define IPI_DELSTAT_PENDING BIT(0)
#define IPI_DELSTAT_PENDING BIT(12)
/* IPI Destination mode */
#define IPI_DELMOD_LOGICAL BIT(0)
@@ -64,4 +64,19 @@ typedef enum {
*/
VOID MdLapicInit(KPCR *Kpcr);
/*
* Send an inter-processor interrupt
*
* @Vector: Interrupt vector to assign to ICR
* @DestId: Target APIC ID [depends on @LogicalDest]
* @LogicalDest: If true, IPI destination is logical
* @Xnd: Destination shorthand
* @Delmod: Delivery mode
*/
VOID MdLapicSendIpi(
UCHAR Vector, UCHAR DestId,
BOOLEAN LogicalDest, IPI_SHORTHAND Xnd,
IPI_DELMOD DelMod
);
#endif /* !_MACHINE_LAPIC_H_ */