Stack is now aligned in 64-bit Sortix threads.

This commit is contained in:
Jonas 'Sortie' Termansen 2011-12-01 21:43:35 +01:00
parent 7304c8f528
commit 2faafd3f99
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ namespace Sortix
regs->rdi = argc;
regs->rsi = (size_t) argv;
regs->rip = entry;
regs->userrsp = stackpos;
regs->userrsp = stackpos & ~(15UL);
regs->rbp = stackpos;
}
}