hw_x86_64: Reserve space for IDT on mode transition pages

On exception, the CPU first checks the IDT in order to find the
associated ISR. The IDT must therefore be placed in the mode transition
pages to make them available for non-core threads.
This commit is contained in:
Reto Buerki 2015-02-26 11:48:20 +01:00 committed by Christian Helmuth
parent d8a10448bb
commit 9c8109c276

View File

@ -237,6 +237,16 @@
iretq
/************************************************
** Space for Interrupt Descriptor Table (IDT) **
** See Intel SDM Vol. 3A, section 6.10 **
************************************************/
.global _mt_idt
.align 8
_mt_idt:
.space 1 << MIN_PAGE_SIZE_LOG2
/* end of the mode transition code */
.global _mt_end
_mt_end: