Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Feb 2001 17:56:33 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Jake Burkholder <jburkholder0829@home.com>
Cc:        freebsd-alpha@FreeBSD.org
Subject:   RE: HEADS UP Re: cvs commit: src/sys/alpha/alpha trap.c src/sys/
Message-ID:  <XFMail.010219175633.jhb@FreeBSD.org>
In-Reply-To: <20010212002820.84796BABD@cr66388-a.rchrd1.on.wave.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <jhb@FreeBSD.org> -- 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010219175633.jhb>