linux-user: Put the stack guard page at the top.
authorRichard Henderson <rth@twiddle.net>
Tue, 27 Jul 2010 17:25:35 +0000 (10:25 -0700)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Thu, 29 Jul 2010 06:32:28 +0000 (08:32 +0200)
commit60dcbcb5b1a0d185be607b03fc7a15bf1bab4bec
treee03c2c91877c167340cf1048251283812d31ae46
parent9058abdd180843473d440958c79a1a781be723c1
linux-user: Put the stack guard page at the top.

There are no supported stack-grows-up targets.  We were putting
the guard page at the highest address, i.e. the bottom of the stack.
Use the maximum of host and guest page size for the guard size.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
linux-user/elfload.c