Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 May 2004 15:44:40 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        FreeBSD current users <current@FreeBSD.ORG>
Subject:   sparc64 kernel code question..
Message-ID:  <Pine.BSF.4.21.0405091542380.24403-100000@InterJet.elischer.org>

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

in vm_machdep.c the sparc64  code has
void
cpu_sched_exit(struct thread *td)
{
        struct vmspace *vm;
        struct pcpu *pc;
        struct proc *p;

        mtx_assert(&sched_lock, MA_OWNED);
 
        p = td->td_proc;
        vm = p->p_vmspace;
        if (vm->vm_refcnt > 1)
                return;
        SLIST_FOREACH(pc, &cpuhead, pc_allcpu) {
                if (pc->pc_vmspace == vm) {
                        vm->vm_pmap.pm_active &= ~pc->pc_cpumask;
                        vm->vm_pmap.pm_context[pc->pc_cpuid] = -1;
                        pc->pc_vmspace = NULL;
                }
        }
}



This is thw only architecture that has this..
What does it do? And what does it have to do with the scheduler?

thanks

Julian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0405091542380.24403-100000>