kern: align stack pointer to 16 byte in notify

This commit is contained in:
Giacomo Tesio 2017-12-12 01:21:32 +01:00
parent a3918b108d
commit e0b8a369d0
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ notify(Ureg* ureg)
pexit("Suicide", 0);
}
sp = ureg->sp - sizeof(NFrame);
sp = ureg->sp - ROUNDUP(sizeof(NFrame), 16);
if(!okaddr(sp, sizeof(NFrame), 1)){
qunlock(&up->debug);
pprint("suicide: bad stack address %#p in notify\n", sp);