stos/amd64: lapic: Add support for IPIs
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user