From owner-freebsd-alpha Mon Feb 19 17:56:52 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id E497337B401 for ; Mon, 19 Feb 2001 17:56:48 -0800 (PST) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f1K1tFl93130; Mon, 19 Feb 2001 17:55:15 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010212002820.84796BABD@cr66388-a.rchrd1.on.wave.home.com> Date: Mon, 19 Feb 2001 17:56:33 -0800 (PST) From: John Baldwin To: Jake Burkholder Subject: RE: HEADS UP Re: cvs commit: src/sys/alpha/alpha trap.c src/sys/ Cc: freebsd-alpha@FreeBSD.org Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 12-Feb-01 Jake Burkholder wrote: >> jake 2001/02/11 16:20:08 PST >> >> Modified files: >> sys/alpha/alpha trap.c >> sys/dev/acpica/Osd OsdSchedule.c >> sys/i386/i386 genassym.c swtch.s trap.c >> sys/ia64/ia64 trap.c >> sys/kern init_main.c kern_condvar.c kern_idle.c >> kern_intr.c kern_mib.c kern_mutex.c >> kern_proc.c kern_resource.c kern_sig.c >> kern_subr.c kern_switch.c kern_synch.c >> sys/posix4 ksched.c >> sys/sys ktr.h param.h proc.h rtprio.h systm.h >> tty.h user.h >> sys/ufs/ffs ffs_snapshot.c >> sys/vm vm_glue.c vm_meter.c >> Added files: >> sys/sys priority.h runq.h >> Log: >> Implement a unified run queue and adjust priority levels accordingly. > > I made sure that this compiles for the alpha. One problem is that > propogate_priority() uses the p_oncpu field of struct proc, which > isn't set by alpha's cpu_switch(). I don't know enough alpha asm > to do it or I would have. This shouldn't be that a big of a deal > for UP at least. > > What needs to happen is that when switching out of a process, the > p_oncpu field should be set to 0xff, and the p_oncpu field of the > new process should be set to the cpuid of the new cpu (always > zero for UP). Why do it in ASM? I'll fix this and other glithces by moving stuff out of cpu_switch() and into mi_switch() where they belong. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message