diff options
author | marcel <marcel@FreeBSD.org> | 2003-08-16 23:15:15 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-08-16 23:15:15 +0000 |
commit | 4194d813c1b3ce78f06af0eaef02acb376c94743 (patch) | |
tree | 3e216f597b83e643ffda7517069aed8adfa92f6c /sys/vm/vm_glue.c | |
parent | 88ab3bade32deddff57c38395d6ae58f9eee2760 (diff) | |
download | FreeBSD-src-4194d813c1b3ce78f06af0eaef02acb376c94743.zip FreeBSD-src-4194d813c1b3ce78f06af0eaef02acb376c94743.tar.gz |
In vm_thread_swap{in|out}(), remove the alpha specific conditional
compilation and replace it with a call to cpu_thread_swap{in|out}().
This allows us to add similar code on ia64 without cluttering the
code even more.
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 5d0744b..821e511 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -498,12 +498,7 @@ vm_thread_swapout(struct thread *td) vm_page_t m; int i, pages; -#ifdef __alpha__ - /* - * Make sure we aren't fpcurthread. - */ - alpha_fpstate_save(td, 1); -#endif + cpu_thread_swapout(td); pages = td->td_kstack_pages; ksobj = td->td_kstack_obj; pmap_qremove(td->td_kstack, pages); @@ -550,13 +545,7 @@ vm_thread_swapin(struct thread *td) } VM_OBJECT_UNLOCK(ksobj); pmap_qenter(td->td_kstack, ma, pages); -#ifdef __alpha__ - /* - * The pcb may be at a different physical address now so cache the - * new address. - */ - td->td_md.md_pcbpaddr = (void *)vtophys((vm_offset_t)td->td_pcb); -#endif + cpu_thread_swapin(td); } /* |