Subject: Re: Adding a size parameter to stackgap_init()
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 03/16/2002 23:46:04
In article <1f95xei.3spoyfhqg4p5M@[10.0.12.137]>,
Emmanuel Dreyfus <manu@netbsd.org> wrote:
>> IIRC the stack gap is reserved at process creation time and it's
>> not possible to decide later you'd need bigger stack gap. You
>> definitely want to check this before changing stackgap_init*().
>
>Mmm... true. My patch "just works" but it must be overwriting some data
>on the stack when I use a stack gap size > STACKGAPLEN.
>
>I'm running out of idea about how to handle this problem. Maybe store
>temporary data somewhere else? Or just make it bigger and hope we never
>hit a case where it does not fit?
I don't see why you need to store that region in userspace. You have
an irix syscall that passes you the argument in userspace, right?
christos