Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jay.Estabrook@digital.com
To: Nils Faerber <Nils.Faerber@unix-ag.org>
Cc: axp-list@redhat.com
Subject: REPOST: Strange hangs
Date: Sun, 17 May 1998 20:04:19 -0300	[thread overview]
Message-ID: <199805180004.UAA00877@alpha1.estabrook.org> (raw)


------- Forwarded Message

To: Nils Faerber <Nils.Faerber@unix-ag.org>
From: jestabro@amt.tay1.dec.com
Subject: Re: RH5 strange 'hangs' :( 
In-reply-to: Your message of Sat, 09 May 1998 03:19:55 +0200.
	<199805090119.DAA03284@harley.unix-ag.uni-siegen.de> 
Mime-Version: 1.0
Content-Type: text/plain
Date: Sat, 09 May 1998 00:11:55 +0500
Sender: jestabro@alpha1.estabrook.org


>>> Nils Faerber said:
> 
> So I thought it might be a good idea to write a little driver for Linux to
> display some stats using those LEDs ;) So I read the axppci33-memory.txt and
> found that they are located at address 3880.0000. And I thought fine! That
> is easy, do a phys_to_virt() and just write to that address using a little
> kernel module. But nothings happens!

That sounds like it ought to work; what does your code look like?

Perhaps something like this:

	unsigned long addr = phys_to_virt(0x38800000UL); /* create address */
	*(unsigned int *)addr = 0x000000aa; /* low byte is AA */
	mb(); /* this should force the write buffers to flush to memory */

Let me know if this works...

- --Jay++

- -------------------------------------------------------------------------------
  American Non Sequitur Society: we don't make sense, but we do like pizza...

Jay A Estabrook                         Alpha Migration Tools - LINUX Project
Digital Equipment Corp.                 (978) 506-4202 or (DTN) 226-4202
151 Taylor Street - TAY1-2              enet: Jay.Estabrook@digital.com
Littleton, MA 01460-1407
- -------------------------------------------------------------------------------



------- End of Forwarded Message



                 reply	other threads:[~1998-05-18  0:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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