smp: enable smp

This is a very large patch. Don't feel like splitting it up. Deal with
it, :P

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-08-13 14:07:55 -04:00
commit e5b97c2576
Signed by: michaelsshaw
GPG key ID: 5A5E0FB20708A9E7
19 changed files with 129 additions and 52 deletions

View file

@ -67,6 +67,7 @@ exception_common:
push_all /* pushes 15 registers */
mov rdi, [rsp + 120] /* vector: 15 regs up = 120 */
mov rsi, [rsp + 128] /* error code we pushed in the macro */
mov rdx, [rsp + 136] /* RIP from interrupt frame */
/* we skip storing the user stack in these interrupt entries because
* the iretq frame stores it