Module Name:    src
Committed By:   matt
Date:           Thu Apr  7 10:07:11 UTC 2011

Modified Files:
        src/sys/arch/arm/arm32: sys_machdep.c

Log Message:
Don't use the pcb anymore since the user read-only thread and process id
value is now grabbed from l_private.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/arm/arm32/sys_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/arm32/sys_machdep.c
diff -u src/sys/arch/arm/arm32/sys_machdep.c:1.11 src/sys/arch/arm/arm32/sys_machdep.c:1.12
--- src/sys/arch/arm/arm32/sys_machdep.c:1.11	Wed Jul  7 01:20:49 2010
+++ src/sys/arch/arm/arm32/sys_machdep.c	Thu Apr  7 10:07:11 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_machdep.c,v 1.11 2010/07/07 01:20:49 chs Exp $	*/
+/*	$NetBSD: sys_machdep.c,v 1.12 2011/04/07 10:07:11 matt Exp $	*/
 
 /*
  * Copyright (c) 1995-1997 Mark Brinicombe.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.11 2010/07/07 01:20:49 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.12 2011/04/07 10:07:11 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -115,14 +115,11 @@
 cpu_lwp_setprivate(lwp_t *l, void *addr)
 {
 #ifdef _ARM_ARCH_6
-	struct pcb *pcb;
-
-	pcb = lwp_getpcb(l);
-	kpreempt_disable();
-	pcb->pcb_un.un_32.pcb32_user_pid_ro = (u_int)addr;
-	if (l == curlwp)
+	if (l == curlwp) {
+		kpreempt_disable();
 		__asm("mcr p15, 0, %0, c13, c0, 3" : : "r" (addr));
-	kpreempt_enable();
+		kpreempt_enable();
+	}
 	return 0;
 #else
 	return ENOSYS;

Reply via email to