Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Fetch user read-only thread and process i...
details: https://anonhg.NetBSD.org/src/rev/6f4c4fc555f5
branches: trunk
changeset: 763926:6f4c4fc555f5
user: matt <matt%NetBSD.org@localhost>
date: Thu Apr 07 10:03:47 2011 +0000
description:
Fetch user read-only thread and process id from l->l_private, not the pcb.
(need to g/c the pcb field formerly used for this).
diffstat:
sys/arch/arm/arm32/cpuswitch.S | 6 +++---
sys/arch/arm/arm32/genassym.cf | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (52 lines):
diff -r 1bc8eb57597d -r 6f4c4fc555f5 sys/arch/arm/arm32/cpuswitch.S
--- a/sys/arch/arm/arm32/cpuswitch.S Thu Apr 07 08:29:50 2011 +0000
+++ b/sys/arch/arm/arm32/cpuswitch.S Thu Apr 07 10:03:47 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuswitch.S,v 1.62 2011/02/01 01:20:14 matt Exp $ */
+/* $NetBSD: cpuswitch.S,v 1.63 2011/04/07 10:03:47 matt Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -89,7 +89,7 @@
#include <machine/asm.h>
#include <machine/cpu.h>
- RCSID("$NetBSD: cpuswitch.S,v 1.62 2011/02/01 01:20:14 matt Exp $")
+ RCSID("$NetBSD: cpuswitch.S,v 1.63 2011/04/07 10:03:47 matt Exp $")
/* LINTSTUB: include <sys/param.h> */
@@ -258,7 +258,7 @@
*/
ldr r0, [r7, #(PCB_USER_PID_RW)]
mcr p15, 0, r0, c13, c0, 2
- ldr r0, [r7, #(PCB_USER_PID_RO)]
+ ldr r0, [r6, #(L_PRIVATE)]
mcr p15, 0, r0, c13, c0, 3
#endif
diff -r 1bc8eb57597d -r 6f4c4fc555f5 sys/arch/arm/arm32/genassym.cf
--- a/sys/arch/arm/arm32/genassym.cf Thu Apr 07 08:29:50 2011 +0000
+++ b/sys/arch/arm/arm32/genassym.cf Thu Apr 07 10:03:47 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: genassym.cf,v 1.45 2011/01/31 06:26:54 matt Exp $
+# $NetBSD: genassym.cf,v 1.46 2011/04/07 10:03:47 matt Exp $
# Copyright (c) 1982, 1990 The Regents of the University of California.
# All rights reserved.
@@ -108,6 +108,7 @@
define L_STAT offsetof(struct lwp, l_stat)
define L_PROC offsetof(struct lwp, l_proc)
define L_CTXSWTCH offsetof(struct lwp, l_ctxswtch)
+define L_PRIVATE offsetof(struct lwp, l_private)
define P_RASLIST offsetof(struct proc, p_raslist)
define PCB_TF offsetof(struct pcb, pcb_tf)
@@ -121,7 +122,6 @@
define PCB_LR offsetof(struct pcb, pcb_un.un_32.pcb32_lr)
define PCB_PC offsetof(struct pcb, pcb_un.un_32.pcb32_pc)
define PCB_USER_PID_RW offsetof(struct pcb, pcb_un.un_32.pcb32_user_pid_rw)
-define PCB_USER_PID_RO offsetof(struct pcb, pcb_un.un_32.pcb32_user_pid_ro)
define PCB_ONFAULT offsetof(struct pcb, pcb_onfault)
define PCB_NOALIGNFLT PCB_NOALIGNFLT
Home |
Main Index |
Thread Index |
Old Index