hw_x86_64: Reserve space for interrupt stack in mtc region

The interrupt stack must reside in the mtc region in order to use it for
non-core threads. The size of the stack is set to 56 bytes in order to
hold the interrupt stack frame plus the additional vector number that is
pushed onto the stack by the ISR.
This commit is contained in:
Reto Buerki 2015-02-27 11:53:20 +01:00 committed by Christian Helmuth
parent 9c44d32dd9
commit 9af9dcc02c
1 changed files with 11 additions and 0 deletions

View File

@ -303,6 +303,17 @@
.global _mt_gdt_end
_mt_gdt_end:
/************************************************
** Temporary interrupt stack **
** Set as RSP for privilege levels 0-2 in TSS **
** See Intel SDM Vol. 3A, section 7.7 **
************************************************/
.p2align 8
.space 7 * 8
.global _mt_kernel_interrupt_stack
_mt_kernel_interrupt_stack:
/* end of the mode transition code */
.global _mt_end
_mt_end: