Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Feb 2016 14:13:25 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r295699 - head/sys/riscv/riscv
Message-ID:  <201602171413.u1HEDPpo045486@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



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