Devices with 36-bit paddr on 32-bit system

Marcel Moolenaar marcel at xcllnt.net
Sat Aug 29 19:40:18 UTC 2015


> On Aug 29, 2015, at 11:35 AM, Justin Hibbits <jrh29 at alumni.cwru.edu> wrote:
> 
> tl;dr I went with using bus_addr_t for the addresses, and kept u_long
> for the sizes (I can change it to use bus_size_t instead, but it's
> already vm_offset_t on PowerPC, which is long anyway).

Unfortunately, you want to change count from u_long to something wider
as well. If you have more than 4GB of memory and want a resource for it,
you have start=0, end>4GB and count>4GB for the entire range.

--
Marcel Moolenaar
marcel at xcllnt.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20150829/2f8c263f/attachment.bin>


More information about the freebsd-arch mailing list