Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Hannu Mallat <hmallat@peak3.cs.hut.fi>
To: axp-list@redhat.com
Subject: Re: LX164 and rpcc
Date: Tue, 29 Dec 1998 16:03:57 +0200 (EET)	[thread overview]
Message-ID: <Pine.LNX.3.96.981229155412.3078B-100000@peak3.cs.hut.fi> (raw)
In-Reply-To: <199812261850.NAA01639@alpha1.estabrook.org>


On Sat, 26 Dec 1998 Jay.Estabrook@digital.com wrote:

> One can successfully build/link MILO *ONLY* under RH 4.2, unless you want
> to use the free x86 BIOS emulator (not recommended for most VGA cards).

Ok, I threw in RH 4.2 on another partition and got a working milo. I
managed to get reasonable-looking PCC values even after a munmap() by
modifying palcode/lx164/osfpal.S as follows:

[root@peak9 lx164]# diff -c osfpal.S.old osfpal.S
*** osfpal.S.old        Wed Dec 28 17:46:35 2078
--- osfpal.S    Tue Dec 29 14:09:18 1998
***************
*** 2042,2048 ****
        mfpr    v0, ptPcbb              // Get current PCBB
  
        ldq_p   t8, PCB_Q_FEN(a0)       // Get new FEN
-       ldq_p   t9, PCB_L_PCC(a0)       // Get new ASN 
  
        srl     p5, 32, p7              // Move CC<OFFSET> to low longword
        mfpr    t10, ptUsp              // Get the user stack pointer
--- 2042,2047 ----
***************
*** 2064,2069 ****
--- 2063,2069 ----
        mfpr    p7, icsr                // Get current ICSR value
  
        and     t8, 1, t8               // Clean new FEN value to single bit
+       sll     t8, ICSR_V_FPE, t8      // Shift new FEN into position
        br      zero, CallPal_SwpCtxCont
  

  /*
***************
*** 3402,3410 ****
        ALIGN_BLOCK
  
  CallPal_SwpCtxCont:
-       sll     t8, ICSR_V_FPE, t8      // Shift new FEN into position
        bic     p7, t10, p7             // Clean ISR<FPE> 
  
        srl     t9, 32, t10             // Move ASN to low longword
        ldq_p   p6, PCB_Q_PTBR(a0)      // Get the new page table base
  
--- 3402,3410 ----
        ALIGN_BLOCK
  
  CallPal_SwpCtxCont:
        bic     p7, t10, p7             // Clean ISR<FPE> 
  
+       ldq_p   t9, PCB_L_PCC(a0)       // Get new ASN 
        srl     t9, 32, t10             // Move ASN to low longword
        ldq_p   p6, PCB_Q_PTBR(a0)      // Get the new page table base
  
I suppose there were some instruction scheduling issues that decided
the original placing of ldq_p t9, but I wouldn't know anything about 
that, so I just placed it near the point of use.

I haven't yet properly validated the PCC values after my patch: they seem 
to be in the right order of magnitude ;-)

Hannu



  reply	other threads:[~1998-12-29 14:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-24 17:53 LX164 and rpcc Hannu Mallat
1998-12-26 18:50 ` Jay.Estabrook
1998-12-29 14:03   ` Hannu Mallat [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-12-17 10:45 Hannu Mallat
1998-12-17 11:36 ` Thorsten Koch
1998-12-17 14:58   ` Hannu Mallat
1998-12-18 13:02   ` Hannu Mallat
1998-12-18 16:53     ` Richard Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox