Fix x86 Alignment Check and Security Exception handlers.

The processor pushes an error code when delivering these exception.

Discovered by Alexandros Alexandrou.
This commit is contained in:
Jonas 'Sortie' Termansen 2015-12-26 19:24:24 +01:00
parent e3e32ca3cf
commit 3e068bc88f
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012.
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013, 2014, 2015.
This file is part of Sortix.
@ -129,7 +129,7 @@ isr16:
.global isr17
.type isr17, @function
isr17:
pushq $0 # err_code
# pushq $0 # err_code pushed by CPU
pushq $17 # int_no
jmp interrupt_handler_prepare
.global isr18
@ -207,7 +207,7 @@ isr29:
.global isr30
.type isr30, @function
isr30:
pushq $0 # err_code
# pushq $0 # err_code pushed by CPU
pushq $30 # int_no
jmp interrupt_handler_prepare
.global isr31

View File

@ -1,6 +1,6 @@
/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2014.
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013, 2014, 2015.
This file is part of Sortix.
@ -129,7 +129,7 @@ isr16:
.global isr17
.type isr17, @function
isr17:
pushl $0 # err_code
# pushl $0 # err_code pushed by CPU
pushl $17 # int_no
jmp interrupt_handler_prepare
.global isr18
@ -207,7 +207,7 @@ isr29:
.global isr30
.type isr30, @function
isr30:
pushl $0 # err_code
# pushl $0 # err_code pushed by CPU
pushl $30 # int_no
jmp interrupt_handler_prepare
.global isr31