[OpenBIOS] [PATCH v4 1/2] ofmem: Use phys_addr_t for physical addresses

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Thu Dec 9 11:10:11 CET 2010


Andreas Färber wrote:

> Based on Mark's previous work, let ofmem handle addresses wider than one cell.
> This is based on the assumption that sizeof(phys_addr_t) >= sizeof(ucell).
> Affected are in particular sparc32 (36 bits) and ppc64 (64 bits).
> 
> As a consequence, some range_t related code shared with virtual/effective
> addresses needed to be migrated, too. Since both address types are unsigned
> this should be okay.
> 
> v4:
> * Coding style fixes and comments, as suggested by Mark.

Looks good to me.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at siriusit.co.uk>


ATB,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs



More information about the OpenBIOS mailing list