kern: align stack pointer to 16 byte in notify
This commit is contained in:
parent
a3918b108d
commit
e0b8a369d0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue