On 22 November 2012 11:00, Richard Miller <9f...@hamnavoe.com> wrote: > OTOH, it's not worth making special provision for physical memory addresses. > I think that any code which is dealing with those is not likely to be > portable to another architecture for many other reasons. I can't envision > a single mmu.c being applicable to both 386 and amd64 ...
It's more useful than you think, which is why both jmk and I separately added it (I called mine physaddr, but changed to his name). Even port refers to physical addresses (eg, Page), and previously those were ulong. It also needs a name to cast values to the right size when doing calculations.