Author: br
Date: Wed Feb 17 14:13:25 2016
New Revision: 295699
URL: https://svnweb.freebsd.org/changeset/base/295699

Log:
  There is no need to pre save tp in cpu_fork().
  
  Discussed with: jhb

Modified:
  head/sys/riscv/riscv/vm_machdep.c

Modified: head/sys/riscv/riscv/vm_machdep.c
==============================================================================
--- head/sys/riscv/riscv/vm_machdep.c   Wed Feb 17 13:49:38 2016        
(r295698)
+++ head/sys/riscv/riscv/vm_machdep.c   Wed Feb 17 14:13:25 2016        
(r295699)
@@ -64,16 +64,10 @@ cpu_fork(struct thread *td1, struct proc
 {
        struct pcb *pcb2;
        struct trapframe *tf;
-       uint64_t val;
 
        if ((flags & RFPROC) == 0)
                return;
 
-       if (td1 == curthread) {
-               __asm __volatile("mv    %0, tp" : "=&r"(val));
-               td1->td_pcb->pcb_tp = val;
-       }
-
        pcb2 = (struct pcb *)(td2->td_kstack +
            td2->td_kstack_pages * PAGE_SIZE) - 1;
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to