altstack: stack alignment and accounting tweaks
authorDan Good <dan@dancancode.com>
Mon, 8 Feb 2016 20:57:23 +0000 (20:57 +0000)
committerDan Good <dan@dancancode.com>
Mon, 8 Feb 2016 20:57:23 +0000 (20:57 +0000)
commit141e582ead507103a5f8860a3ec8c0f237d2690a
tree9478b23957e46dd880cec3976ccd113b55ad4b77
parent9a8344b2cd849a5506ca5e93bfc30665fb35acab
altstack: stack alignment and accounting tweaks

* add altstack_remn, returns amount of stack remaining
* increase mapping by 1 page to handle abutment case
* capture rsp earlier
* align stack to 16 bytes

Signed-off-by: Dan Good <dan@dancancode.com>
ccan/altstack/altstack.c
ccan/altstack/altstack.h
ccan/altstack/test/run.c