Subject: Re: fork1 and new stack
To: Andrey Petrov <petrov@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-kern
Date: 04/26/2002 08:32:01
> > child_stack_addr = (u_long)(tf->f_regs[SP]
> > - IRIX_SPROC_STACK_OFFSET);
> > child_stack_size = (u_long)p->p_vmspace->vm_minsaddr
> > - (u_long)p->p_vmspace->vm_maxsaddr;
>
> Aren't they reversed?
I have a debug printf just before this
vm_minsaddr = 0x7ffff000 vm_maxsaddr = 0x7dfff000
Hence it seems ok.
--
Emmanuel Dreyfus.
Pas de processeur Intel, pas de logiciels Microsoft:
Des programmes sains dans un ordinateur sain.
manu@netbsd.org