Module Name:    src
Committed By:   mrg
Date:           Wed Nov 25 02:34:35 UTC 2009

Modified Files:
        src/sys/arch/sparc64/sparc64: genassym.cf locore.s

Log Message:
s/L_ADDR/L_PCB/, requested by rmind.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/sparc64/sparc64/genassym.cf
cvs rdiff -u -r1.292 -r1.293 src/sys/arch/sparc64/sparc64/locore.s

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/sparc64/sparc64/genassym.cf
diff -u src/sys/arch/sparc64/sparc64/genassym.cf:1.60 src/sys/arch/sparc64/sparc64/genassym.cf:1.61
--- src/sys/arch/sparc64/sparc64/genassym.cf:1.60	Sat Sep 20 18:29:05 2008
+++ src/sys/arch/sparc64/sparc64/genassym.cf	Wed Nov 25 02:34:34 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: genassym.cf,v 1.60 2008/09/20 18:29:05 tsutsui Exp $
+#	$NetBSD: genassym.cf,v 1.61 2009/11/25 02:34:34 mrg Exp $
 
 #
 # Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -112,7 +112,7 @@
 define	PAGE_SIZE	PAGE_SIZE
 
 # Important offsets into the lwp and proc structs & associated constants
-define	L_ADDR			offsetof(struct lwp, l_addr)
+define	L_PCB			offsetof(struct lwp, l_addr)
 define	L_PROC			offsetof(struct lwp, l_proc)
 define	L_TF			offsetof(struct lwp, l_md.md_tf)
 define	L_FPSTATE		offsetof(struct lwp, l_md.md_fpstate)

Index: src/sys/arch/sparc64/sparc64/locore.s
diff -u src/sys/arch/sparc64/sparc64/locore.s:1.292 src/sys/arch/sparc64/sparc64/locore.s:1.293
--- src/sys/arch/sparc64/sparc64/locore.s:1.292	Sat Oct 17 20:03:06 2009
+++ src/sys/arch/sparc64/sparc64/locore.s	Wed Nov 25 02:34:34 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: locore.s,v 1.292 2009/10/17 20:03:06 nakayama Exp $	*/
+/*	$NetBSD: locore.s,v 1.293 2009/11/25 02:34:34 mrg Exp $	*/
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath
@@ -5062,7 +5062,7 @@
 	sethi	%hi(CPUINFO_VA+CI_CURLWP), %l0
 	LDPTR	[%l0 + %lo(CPUINFO_VA+CI_CURLWP)], %l0
 	set	USPACE - TF_SIZE - CC64FSZ, %l1
-	LDPTR	[%l0 + L_ADDR], %l0
+	LDPTR	[%l0 + L_PCB], %l0
  	add	%l1, %l0, %l0
 #ifdef _LP64
 	andn	%l0, 0x0f, %l0			! Needs to be 16-byte aligned
@@ -5266,7 +5266,7 @@
 	sethi	%hi(CPUINFO_VA+CI_IDLELWP), %l0
 	LDPTR	[%l0 + %lo(CPUINFO_VA+CI_IDLELWP)], %l0
 	set	USPACE - TF_SIZE - CC64FSZ, %l1
-	LDPTR	[%l0 + L_ADDR], %l0
+	LDPTR	[%l0 + L_PCB], %l0
 	add	%l0, %l1, %l0
 #ifdef _LP64
 	andn	%l0, 0x0f, %l0			! Needs to be 16-byte aligned
@@ -6717,7 +6717,7 @@
 	 sethi	%hi(CPCB), %l6
 
 	rdpr	%pstate, %o1			! oldpstate = %pstate;
-	LDPTR	[%i0 + L_ADDR], %l5
+	LDPTR	[%i0 + L_PCB], %l5
 
 	stx	%i7, [%l5 + PCB_PC]
 	stx	%i6, [%l5 + PCB_SP]
@@ -6729,7 +6729,7 @@
 1:
 	sethi	%hi(CURLWP), %l7
 
-	LDPTR   [%i1 + L_ADDR], %l1	! newpcb = l->l_addr;
+	LDPTR   [%i1 + L_PCB], %l1	! newpcb = l->l_pcb;
 
 	/*
 	 * Load the new lwp.  To load, we must change stacks and

Reply via email to