public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* readw() access
@ 2001-08-01 20:33 Svein Erling Seldal
  2001-08-01 20:44 ` Brian Gerst
  0 siblings, 1 reply; 2+ messages in thread
From: Svein Erling Seldal @ 2001-08-01 20:33 UTC (permalink / raw)
  To: linux-kernel


Hello,

I'm trying to port a driver from 2.2.x to 2.4.x where I previously has used
readw() to read the contents of the memory-adresses 0x408-0x40c (Where the
BIOS gives you the adr. for the par-ports.) But on 2.4.x readw(0x408) Oops:

"Unable to handle kernel NULL pointer dereference at virtual address
00000408"

How do you read a memory-address like this?


Svein Erling Seldal


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: readw() access
  2001-08-01 20:33 readw() access Svein Erling Seldal
@ 2001-08-01 20:44 ` Brian Gerst
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Gerst @ 2001-08-01 20:44 UTC (permalink / raw)
  To: Svein Erling Seldal; +Cc: linux-kernel

Svein Erling Seldal wrote:
> 
> Hello,
> 
> I'm trying to port a driver from 2.2.x to 2.4.x where I previously has used
> readw() to read the contents of the memory-adresses 0x408-0x40c (Where the
> BIOS gives you the adr. for the par-ports.) But on 2.4.x readw(0x408) Oops:
> 
> "Unable to handle kernel NULL pointer dereference at virtual address
> 00000408"
> 
> How do you read a memory-address like this?
> 
> Svein Erling Seldal

Use isa_readw() or ioremap().

--

				Brian Gerst

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-01 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-01 20:33 readw() access Svein Erling Seldal
2001-08-01 20:44 ` Brian Gerst

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