mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
x86_64 pci: fix msi message format
This commit is contained in:
@@ -68,7 +68,7 @@ static void mcfg_write32(int bus, int device, int function, uint32_t offset, uin
|
||||
}
|
||||
|
||||
static uint64_t msiformatmessage(uint32_t *data, int vector, int edgetrigger, int deassert) {
|
||||
*data = (edgetrigger << 15) | (deassert << 14) | vector;
|
||||
*data = (edgetrigger ? 0 : (1 << 15)) | (deassert ? 0 : (1 << 14)) | vector;
|
||||
return 0xfee00000 | (_cpu()->id << 12);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user