Subject: Re: Can't build kernel
To: None <amiga-dev@NetBSD.ORG>
From: Michael L. Hitch <osymh@gemini.oscs.montana.edu>
List: amiga-dev
Date: 06/12/1995 22:54:00
On May 28, 10:34pm, Blaz Zupan wrote:
> I'm trying to build a kernel from the latest sources with no luck.
> It started with some sources around May 20. The source built just
> fine but when I boot with the new kernel after recognizing all
> the hardware I simply get a "Process 1 got signal 11" or something
> like that. As suggested to me on IRC I tried to rebuild everything
> in /usr/lib and also built a new /sbin/init but the problem persists.
...
> I'm using the same config file that I used with the Apr 27 sources
> (which is the last sources that worked for me). My hardware setup
> is A2000 with IVS Vector (68030 and onboard SCSI), Picasso II.
                ^^^^^^^^^^

  The -current kernel will not work properly when using non-interrupt
SCSI drivers, which includes all the supported 5380-based boards, and
the A1200 with the GVP SCSI.  The following fix, based on the hp300
port, should fix the problem.

diff -cr /usr/src/sys/arch/amiga/amiga/vm_machdep.c sys/arch/amiga/amiga/vm_machdep.c
*** /usr/src/sys/arch/amiga/amiga/vm_machdep.c	Wed May 17 04:05:05 1995
--- sys/arch/amiga/amiga/vm_machdep.c	Sun Jun 11 11:59:48 1995
***************
*** 74,84 ****
  	register struct pcb *pcb = &p2->p_addr->u_pcb;
  	register struct trapframe *tf;
  	register struct switchframe *sf;
  	extern void proc_trampoline(), child_return();
  
  	p2->p_md.md_flags = p1->p_md.md_flags;
  
! 	/* Copy pcb from proc p1 to p2. */
  	*pcb = p1->p_addr->u_pcb;
  
  	PMAP_ACTIVATE(&p2->p_vmspace->vm_pmap, pcb, 0);
--- 74,86 ----
  	register struct pcb *pcb = &p2->p_addr->u_pcb;
  	register struct trapframe *tf;
  	register struct switchframe *sf;
+ 	extern struct pcb *curpcb;
  	extern void proc_trampoline(), child_return();
  
  	p2->p_md.md_flags = p1->p_md.md_flags;
  
! 	/* Sync curpcb (which is presumably p1's PCB) and copy it to p2. */
! 	savectx(curpcb);
  	*pcb = p1->p_addr->u_pcb;
  
  	PMAP_ACTIVATE(&p2->p_vmspace->vm_pmap, pcb, 0);


Michael

-- 
Michael L. Hitch			INTERNET:  osymh@montana.edu
Computer Consultant
Office of Systems and Computing Services
Montana State University	Bozeman, MT	USA