Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 2015 12:40:07 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Justin Hibbits <jrh29@alumni.cwru.edu>
Cc:        Adrian Chadd <adrian.chadd@gmail.com>, John Baldwin <jhb@freebsd.org>, "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Subject:   Re: Devices with 36-bit paddr on 32-bit system
Message-ID:  <3FD8C08B-5418-4201-ADD1-C636FF1E266F@xcllnt.net>
In-Reply-To: <CAHSQbTAGD=4A20XZL09YXbEm9hdf5K2_QCRPFOAjrXHF4eg9sQ@mail.gmail.com>
References:  <CAHSQbTDsvB32%2BLyzHJO78VwUwAfUTMOUQp13BMCUpapSMT0fbg@mail.gmail.com> <ED4B5B25-D7A7-440C-9452-4C79B0800D2E@xcllnt.net> <1568331.OrSoeYfXsf@ralph.baldwin.cx> <CAJ-VmomduZBYT6=e7HUm2V1m0taM0MAMXxMojYV8wvgEKyUEyA@mail.gmail.com> <CAHSQbTAGD=4A20XZL09YXbEm9hdf5K2_QCRPFOAjrXHF4eg9sQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_E03D7F3B-79BE-4559-8E88-38E2B78535BB
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii


> On Aug 29, 2015, at 11:35 AM, Justin Hibbits <jrh29@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@xcllnt.net


--Apple-Mail=_E03D7F3B-79BE-4559-8E88-38E2B78535BB
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJV4gqYAAoJEIda8t8f0tjjsZMQAM4RoqhBy1BxUHo5u1EQri+o
DpTaxZBmdetmkiFqeePiFg/NjSJZ6zm37qROmLttgW6OovZyYShNY6rObg4KmRh2
TGMuJDNyB6RqU5T5N7ZOgiY2tag9AH3dA/ZqSgP02VJJAGAwiAXT1Ltm7l69I1KO
Jbc1scYhO1qLtKhrcjNaTWjhEK/Zf4kXl/Iubd708zHQvGLcsfp2UM+t/4OQIx5b
zgy0lMbxBBMlXlSLBvaVL/pzKdoZK5pPIdkI1iXpxBBSNUn/Ft7uKusJ9uqcc3pF
xCAaKvv+39Qtck+Qo2H+5umkdzwpz1F1r7MycllvqKzNKQTqL3h0Fx9rKqqzO8GS
6GUvROZ7kCiEZyygwjQCHPh3qWKht79y2W2FCg2DeiqCHlawJdNtXlhSeJQa+44u
3NlikkdqdaHHyErPMXjQE3X7IiVKglIPMFVkdklWgnG/XUWS3apfDRlomMg8SiyZ
fkdW/IzxzWkB48qF2WOnPbYQkzW8/ZInZWxZzsGb/SAhaPB9nxqfcjgMPP4qhUkB
7ptlSfNUIYEl/lo4vvwZWprJZDkXrW/OM7NvFZFykmj0rRZ1Yn3xnlZUb8tfjBwq
QhrQMgtt1jQrzQTVg09nYHYiI39fxQrkRmCD0Ich5QpnWwrFHCBThPI067WBZ28m
MXf/RN5xkvCV8A1KuHrL
=mVcC
-----END PGP SIGNATURE-----

--Apple-Mail=_E03D7F3B-79BE-4559-8E88-38E2B78535BB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FD8C08B-5418-4201-ADD1-C636FF1E266F>