Subject: Re: is mmap on /dev/mem broken on sparc64?
To: Eduardo Horvath <eeh@NetBSD.org>
From: Michael <macallan18@earthlink.net>
List: current-users
Date: 03/13/2005 13:13:18
--Signature=_Sun__13_Mar_2005_13_13_18_-0500_kaAW2zSYbHc0kEvB
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Hello,

> You can't do that on sparc64.  That functionality has been explicitly
> disabled to prevent userland from causing possible kernel hangs or panics.

...

> If you want to access PCI memory space you need to go through some
> sort of PCI device driver that knows what bits, such as cacheabiliy
> and endianness, need to be set to map it in correctly.

Hmm, pcimmap() in pci_usrreq.c is disabled, so mmap()ing /dev/pci won't work either. So reading PCI ROMs from userland on sparc64 is currently not possible :/

have fun
Michael

--Signature=_Sun__13_Mar_2005_13_13_18_-0500_kaAW2zSYbHc0kEvB
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQjSCvspnzkX8Yg2nAQJXuAf9GhXtPF+Ya/cBzhQ6yUZMDndVg33fh0K2
PyDc16GFVrCSx282N+Zv5MR0JZBtEu6jiXHEbHYQx/lUchIoRtE9n5xqQd++ohmE
wbUxVoqEje74b6CqrMFx7tjw/b+lQIQZ3ebGgYs/fgPfwn6nUtibEnDymO79DxWO
IG2P7bPaFlfsE+bqHoQgAYmmZnt5BKdQIy7Zbsmu+9q/5RN+gVlAWfVZsjXRcDLz
XDvqxmB4BbpVjm/LCFJ20aq+uNcASF5gQUheBw5b23VGVGPy4rAjvCAdayDhkxU+
/9R/GsmWsLp2o79S1aP32sJn11qH2SjEGN5/uy3yykIKQCyjiF/I9w==
=qDOo
-----END PGP SIGNATURE-----

--Signature=_Sun__13_Mar_2005_13_13_18_-0500_kaAW2zSYbHc0kEvB--