|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH V7 1/6] oslib-posix: add helpers for stack alloc and free |
Date: | Tue, 23 Aug 2016 07:58:42 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 08/23/2016 07:21 AM, Peter Lieven wrote: > 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. The memory for the guard page is deductated from > stack memory so that the usable stack size is effectively reduced by the size > of one page. This is equivalent to how the glibc stack allocation routines > behave. > > Signed-off-by: Peter Lieven <address@hidden> > --- > include/sysemu/os-posix.h | 27 ++++++++++++++++++++++++++ > util/oslib-posix.c | 48 > +++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 75 insertions(+) Reviewed-by: Richard Henderson <address@hidden> r~
[Prev in Thread] | Current Thread | [Next in Thread] |