diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-03-21 06:46:27 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-03-21 06:46:27 +0000 |
commit | 9f834e1bd58dfc0bfe71f5385bfbfb61efcb4991 (patch) | |
tree | 9659b82ba997fadaa9776ec6fc8e5370bcd2bc88 | |
parent | 6e1625d978780bd70c4f4750f23107d69f3ebd43 (diff) | |
download | FreeBSD-src-9f834e1bd58dfc0bfe71f5385bfbfb61efcb4991.zip FreeBSD-src-9f834e1bd58dfc0bfe71f5385bfbfb61efcb4991.tar.gz |
Remove stale KSE code.
Reviewed by: alc
-rw-r--r-- | sys/amd64/amd64/pmap.c | 14 | ||||
-rw-r--r-- | sys/i386/i386/pmap.c | 13 |
2 files changed, 3 insertions, 24 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 4cfeb9c..9434ce5 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2988,7 +2988,6 @@ pmap_mincore(pmap, addr) void pmap_activate(struct thread *td) { - struct proc *p = td->td_proc; pmap_t pmap, oldpmap; u_int64_t cr3; @@ -3005,18 +3004,7 @@ if (oldpmap) /* XXX FIXME */ pmap->pm_active |= PCPU_GET(cpumask); #endif cr3 = vtophys(pmap->pm_pml4); - /* XXXKSE this is wrong. - * pmap_activate is for the current thread on the current cpu - */ - if (p->p_flag & P_SA) { - /* Make sure all other cr3 entries are updated. */ - /* what if they are running? XXXKSE (maybe abort them) */ - FOREACH_THREAD_IN_PROC(p, td) { - td->td_pcb->pcb_cr3 = cr3; - } - } else { - td->td_pcb->pcb_cr3 = cr3; - } + td->td_pcb->pcb_cr3 = cr3; load_cr3(cr3); critical_exit(); } diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 933defd..143881c 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -3010,7 +3010,6 @@ pmap_mincore(pmap, addr) void pmap_activate(struct thread *td) { - struct proc *p = td->td_proc; pmap_t pmap, oldpmap; u_int32_t cr3; @@ -3029,18 +3028,10 @@ pmap_activate(struct thread *td) #else cr3 = vtophys(pmap->pm_pdir); #endif - /* XXXKSE this is wrong. + /* * pmap_activate is for the current thread on the current cpu */ - if (p->p_flag & P_SA) { - /* Make sure all other cr3 entries are updated. */ - /* what if they are running? XXXKSE (maybe abort them) */ - FOREACH_THREAD_IN_PROC(p, td) { - td->td_pcb->pcb_cr3 = cr3; - } - } else { - td->td_pcb->pcb_cr3 = cr3; - } + td->td_pcb->pcb_cr3 = cr3; load_cr3(cr3); PCPU_SET(curpmap, pmap); critical_exit(); |