Date: Tue, 21 Mar 2006 08:04:44 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93698 for review Message-ID: <200603210804.k2L84itB014584@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93698 Change 93698 by kmacy@kmacy_storage:sun4vtmp on 2006/03/21 08:03:42 update pcb_ra before pcb is used Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/vm_machdep.c#6 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/vm_machdep.c#6 (text+ko) ==== @@ -135,9 +135,11 @@ pcb = (struct pcb *)((td->td_kstack + td->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb)) & ~0x3fUL); + pcb->pcb_ra = vtophys((vm_offset_t)pcb); pcb->pcb_nsaved = 0; td->td_frame = (struct trapframe *)pcb - 1; td->td_pcb = pcb; + } void @@ -296,6 +298,7 @@ fp->fr_pc = fp->fr_fp = 0; pcb2->pcb_sp = (u_long)fp - SPOFF; pcb2->pcb_pc = (u_long)fork_trampoline - 8; + pcb2->pcb_ra = vtophys((vm_offset_t)pcb2); /* Setup to release sched_lock in fork_exit(). */ td2->td_md.md_spinlock_count = 1; td2->td_md.md_saved_pil = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603210804.k2L84itB014584>