Fix bug causing vector removal to skip elements

This commit is contained in:
Alex
2023-04-20 03:24:23 +03:00
parent ad1bcdab47
commit 0eb8ba0f69
8 changed files with 16 additions and 12 deletions

View File

@ -131,6 +131,7 @@ namespace Interrupts
{
#if defined(a64)
CPU::x64::TrapFrame *Frame = (CPU::x64::TrapFrame *)Data;
// debug("IRQ%ld", Frame->InterruptNumber - 32);
memmove(InterruptFrames + 1, InterruptFrames, sizeof(InterruptFrames) - sizeof(InterruptFrames[0]));
InterruptFrames[0] = (void *)Frame->rip;