[PATCH] Use vm_paddr_t for physical address on MIPS
Warner Losh
imp at bsdimp.com
Wed Jan 12 18:46:14 UTC 2011
On 01/12/2011 04:43, Jayachandran C. wrote:
> On Wed, Jan 12, 2011 at 5:08 PM, Jayachandran C.
> <c.jayachandran at gmail.com> wrote:
>> There are a few places in MIPS where vm_offset_t is used for physical
>> addresses. The attached patch fixes them, and also contains changes to
>> use uintmax_t when printing PTE entries and physical addresses.
>>
>> I plan to check this in if there are no objections, before checking in
>> the 64 bit PTE changes. These changes will be useful if we decide to
>> have 64 bit physical address on n32(32bit) compilation.
> Re-sending with attachment.
These changes look good to me. Looks like arm makes the same mistake
about vm_offset_t vs vm_paddr_t for phys_avail too (well in places, it
appears to be muddled between both depending on the subport). ia64,
i386, amd64 and sparc64 get this right. powerpc uses vm_offset_t, and
likely should be changed as well.
Warner
> JC.
>
>
> _______________________________________________
> freebsd-mips at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mips
> To unsubscribe, send any mail to "freebsd-mips-unsubscribe at freebsd.org"
More information about the freebsd-mips
mailing list