* Read/write to ICSR via SRM palcode
@ 2000-05-05 16:03 Andreas Johansson
2000-05-05 17:15 ` David Huggins-Daines
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Johansson @ 2000-05-05 16:03 UTC (permalink / raw)
To: NetBSD-Alpha port, Red Hat Alpha mailing list
Hi!
Due to incomplete free documentation of the SRM palcode I'm asking here
if anyone can solve my problem.
I want to write to the ICSR register in my 21164PC via the SRM palcode,
but I don't have the complete definition of the palcode functions. The
only thing I've found is the MILO (linux boot loader/palcode), that says I
can do something like this:
ICSR read:
clr a0 ; cserve parameter 1 (not used)
clr a1 ; cserve parameter 2 (not used)
mov 0x11,a2 ; CSERVE_K_RD_ICSR
call_pal 0x9 ; PAL_cserve
; ICSR is copied into v0
ICSR write:
mov v0, a0 ; New ICSR value in cserve parameter 1
clr a1 ; cserve parameter 2 (not used)
mov 0x10, a2 ; CSERVE_K_WR_ICSR
call_pal 0x9 ; PAL_cserve
This works in linux using the milo palcode, I can read and write ICSR
using the above code in kernel. As far as I know, the MILO palcode derives
from an old version of the SRM palcode.
However, when I try this in NetBSD using the SRM palcode, I get 0x0 when
I read and God knows what else happens when I do this - the machine
behaves strangely. Can anyone that has access to the SRM palcode source
and/or documentation look this up and tell me what's wrong?
The reason I want to access this register is that there is a bug in the
SRM palcode for the 21164PC that I want to fix. The MVI instruction set
extention is not enabled, and this is controlled by one of the bits in
ICSR.
I've found a hardware specific instruction that accesses the ICSR
register, but this instruction should only be used in the palcode :/
/Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Read/write to ICSR via SRM palcode
2000-05-05 16:03 Read/write to ICSR via SRM palcode Andreas Johansson
@ 2000-05-05 17:15 ` David Huggins-Daines
2000-05-05 21:31 ` Ivan Kokshaysky
0 siblings, 1 reply; 5+ messages in thread
From: David Huggins-Daines @ 2000-05-05 17:15 UTC (permalink / raw)
To: axp-list; +Cc: NetBSD-Alpha port
Andreas Johansson <ajo@wopr.campus.luth.se> writes:
> This works in linux using the milo palcode, I can read and write ICSR
> using the above code in kernel. As far as I know, the MILO palcode derives
> from an old version of the SRM palcode.
Actually, IIRC, it derives from the PALcode that was shipped with the
Evaluation Board SDK.
> The reason I want to access this register is that there is a bug in the
> SRM palcode for the 21164PC that I want to fix. The MVI instruction set
> extention is not enabled, and this is controlled by one of the bits in
> ICSR.
What?! That is really screwed up. I'll try to verify this on my SX
at home tomorrow ... no internet connection :(
Which version of SRM are you using?
(suddenly having horrible thoughts of adding to aboot the ability to
swap to arbitrary PALcode images)
--
David Huggins-Daines, Senior GNU/Linux Consultant, Linuxcare, Inc.
613.562.1239 desk, 613.223.0225 mobile
dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Read/write to ICSR via SRM palcode
2000-05-05 17:15 ` David Huggins-Daines
@ 2000-05-05 21:31 ` Ivan Kokshaysky
2000-05-07 10:07 ` Alpha incompatible with Linux ? Maciej Juniewicz
[not found] ` <Pine.LNX.4.10.10005071156200.618-100000@euler.mat.univ.szc zecin.pl>
0 siblings, 2 replies; 5+ messages in thread
From: Ivan Kokshaysky @ 2000-05-05 21:31 UTC (permalink / raw)
To: axp-list
On Fri, May 05, 2000 at 01:15:18PM -0400, David Huggins-Daines wrote:
> Andreas Johansson <ajo@wopr.campus.luth.se> writes:
> > The reason I want to access this register is that there is a bug in the
> > SRM palcode for the 21164PC that I want to fix. The MVI instruction set
> > extention is not enabled, and this is controlled by one of the bits in
> > ICSR.
>
> What?! That is really screwed up. I'll try to verify this on my SX
> at home tomorrow ... no internet connection :(
>
Uh oh. Verified - prog using `perr':
Illegal instruction (core dumped)
Worked fine with ARC/Milo.
> Which version of SRM are you using?
>
As for me, it's 5.6 - the latest version for SX I've found on
the gatekeeper 2 months ago.
Looks like a real problem - maybe Jay could shed some light
on this?
Ivan.
^ permalink raw reply [flat|nested] 5+ messages in thread* Alpha incompatible with Linux ?
2000-05-05 21:31 ` Ivan Kokshaysky
@ 2000-05-07 10:07 ` Maciej Juniewicz
[not found] ` <Pine.LNX.4.10.10005071156200.618-100000@euler.mat.univ.szc zecin.pl>
1 sibling, 0 replies; 5+ messages in thread
From: Maciej Juniewicz @ 2000-05-07 10:07 UTC (permalink / raw)
To: axp-list
I have 164UX alpha with arcbios. I decided to remove NT previously
installed on the box and install RH 6.2. Although I have a little
experience with linux ona alpha ( I have 2 identical boxes with linux
running on them) I faced the following problem I cannot resolve:
Milo run from diskette ends with a message:
system incompatible with alpha-linux
and freezes.
Of course I have earlier removed old system completely.
I would be very happy if somebody help me.
Przemylaw Janaszek, Unix System Administrator, Perl Programmer
Mathematical Institute, Szczecin University
jachu@ketlin.univ.szczecin.pl
Alpha is for real men with strong nerve, Intel for women and
children
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <Pine.LNX.4.10.10005071156200.618-100000@euler.mat.univ.szc zecin.pl>]
* Re: Alpha incompatible with Linux ?
[not found] ` <Pine.LNX.4.10.10005071156200.618-100000@euler.mat.univ.szc zecin.pl>
@ 2000-05-07 15:25 ` Maurice Hilarius
0 siblings, 0 replies; 5+ messages in thread
From: Maurice Hilarius @ 2000-05-07 15:25 UTC (permalink / raw)
To: axp-list
With regards to your message at 12:07 PM 5/7/00 +0200, Maciej Juniewicz.
Where you stated:
>I have 164UX alpha with arcbios. I decided to remove NT previously
>installed on the box and install RH 6.2. Although I have a little
>experience with linux ona alpha ( I have 2 identical boxes with linux
>running on them) I faced the following problem I cannot resolve:
>
>
>Milo run from diskette ends with a message:
>
>system incompatible with alpha-linux
>
>and freezes.
The UX or "Ruffian" machine type uses a slightly different milo than some
other models.
Be sure to use a ramdisk image compatible with this model.
It uses a different loader called "ldmilo"
One needs to create a small ( say about 3MB) FAT partition at the beginning
of the hard disk to store ldmilo and your kernel on.
As there is no utility in the ARCSBIOS on this machine to create it you may
use a program called "arcinst.exe" which may be downloaded from:
http://www.compaq.com/support/files/alphant/drivers/index.html
This will allow you to easily create and format that partition.
There are utilities in the ARCSBIOS console that allow you to copy files to
that partition.
Good luck, and let us know if further is needed.
With our best regards,
Maurice W. Hilarius Telephone: 01-780-456-9771
Hard Data Ltd. FAX: 01-780-456-9772
11060 - 166 Avenue mailto:maurice@harddata.com
Edmonton, AB, Canada http://www.harddata.com/
T5X 1Y3
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-05-07 15:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-05 16:03 Read/write to ICSR via SRM palcode Andreas Johansson
2000-05-05 17:15 ` David Huggins-Daines
2000-05-05 21:31 ` Ivan Kokshaysky
2000-05-07 10:07 ` Alpha incompatible with Linux ? Maciej Juniewicz
[not found] ` <Pine.LNX.4.10.10005071156200.618-100000@euler.mat.univ.szc zecin.pl>
2000-05-07 15:25 ` Maurice Hilarius
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox