Port-newsmips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NEWS5000 doesn't boot



On Wed, Aug 02, 2000 at 12:59:47PM +0900, Tsubai Masanari wrote:

 > But why is the cache flush needed in setregs() and pmap_procwr() is
 > not enough?

Yah, you shouldn't need it in setregs() at all!  PowerPC and MIPS used
the setregs() hack, and then is%netbsd.org@localhost just fixed it for everone 
in
kern_exec.c (he was seeing failures on 68040 and 68060).

 >      /* copy out the process's signal trapoline code */
 >      if (szsigcode) {
 >              if (copyout((char *)pack.ep_emul->e_sigcode,
 >                  p->p_sigacts->ps_sigcode = (char *)PS_STRINGS - szsigcode,
 >                  szsigcode)) {
 > #ifdef DEBUG
 >                      printf("execve: sig trampoline copyout failed\n");
 > #endif
 >                      goto exec_abort;
 >              }
 > #ifdef PMAP_NEED_PROCWR
 >              /* This is code. Let the pmap do what is needed. */
 >              pmap_procwr(p, (vaddr_t)p->p_sigacts->ps_sigcode, szsigcode);
 > #endif
 >      }
 > 

-- 
        -- Jason R. Thorpe <thorpej%zembu.com@localhost>



Home | Main Index | Thread Index | Old Index