Fix wrong TSS limit.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-04-12 18:11:27 +02:00
parent 159d8881ec
commit 24321b0f96
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ void WriteTSS(int32_t num, uint16_t ss0, uintptr_t stack0)
{
// First, let's compute the base and limit of our entry in the GDT.
uintptr_t base = (uintptr_t) &tss_entry;
uint32_t limit = base + sizeof(tss_entry);
uint32_t limit = sizeof(tss_entry) - 1;
// Now, add our TSS descriptor's address to the GDT.
#if defined(__i386__)