Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/vax/vax Fix register usage in previous proc0paddr->...



details:   https://anonhg.NetBSD.org/src/rev/d2fa99da2c34
branches:  trunk
changeset: 749897:d2fa99da2c34
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Dec 12 12:19:21 2009 +0000

description:
Fix register usage in previous proc0paddr->lwp0.l_addr change: do not
overwrite %r1 yet, it is later used to calculate the kernel stack pointer.
As a side effect the right value is stored in $PR_PCBB again.

diffstat:

 sys/arch/vax/vax/subr.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c6f8fc2f4d0c -r d2fa99da2c34 sys/arch/vax/vax/subr.S
--- a/sys/arch/vax/vax/subr.S   Sat Dec 12 11:38:45 2009 +0000
+++ b/sys/arch/vax/vax/subr.S   Sat Dec 12 12:19:21 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr.S,v 1.28 2009/12/10 05:10:04 rmind Exp $     */
+/*     $NetBSD: subr.S,v 1.29 2009/12/12 12:19:21 martin Exp $    */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -124,7 +124,7 @@
 3:     addl3   _C_LABEL(esym),$0x3ff,%r0       # Round symbol table end
        bicl3   $0x3ff,%r0,%r1                  # 
        movl    %r1,_C_LABEL(lwp0)+L_PCB        # lwp0 pcb, XXXuvm_lwp_getuarea
-       bicl2   $0x80000000,%r1                 # get phys lwp0 uarea addr
+       bicl3   $0x80000000,%r1,%r0             # get phys lwp0 uarea addr
        mtpr    %r0,$PR_PCBB                    # Save in IPR PCBB
        addl3   $USPACE,%r1,%r0                 # Get kernel stack top
        mtpr    %r0,$PR_KSP                     # put in IPR KSP



Home | Main Index | Thread Index | Old Index