oslib-posix: add helpers for stack alloc and free
authorPeter Lieven <pl@kamp.de>
Tue, 27 Sep 2016 09:58:40 +0000 (11:58 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 29 Sep 2016 12:13:39 +0000 (14:13 +0200)
commit8737d9e0c4017aaa5ab1fcf1356c8ee4f7caf1df
tree9598ddbb6fc8d488755f71e9b9be1ea8839a25e9
parent74e1ae7c0b66d85d2b04c153ffdf6294e6a40798
oslib-posix: add helpers for stack alloc and free

the allocated stack will be adjusted to the minimum supported stack size
by the OS and rounded up to be a multiple of the system pagesize.
Additionally an architecture dependent guard page is added to the stack
to catch stack overflows.

Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/sysemu/os-posix.h
util/oslib-posix.c