mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
interrupt: make sure cpu id is 64bit before bit shift
This commit is contained in:
@@ -20,7 +20,7 @@ void interrupt_register(int vector, void (*func)(isr_t *self, context_t *ctx), v
|
||||
isr_t *isr = &_cpu()->isr[vector];
|
||||
isr->func = func;
|
||||
isr->eoi = eoi;
|
||||
isr->id = _cpu()->id << 32 | vector;
|
||||
isr->id = (uint64_t)_cpu()->id << 32 | vector;
|
||||
isr->priority = priority;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user