[Haiku-commits] r32994 - haiku/trunk/src/system/kernel/arch/x86
Ingo Weinhold
ingo_weinhold at gmx.de
Tue Sep 8 14:45:53 CEST 2009
On 2009-09-08 at 05:51:19 [+0200], mmlr at mail.berlios.de wrote:
> Author: mmlr
> Date: 2009-09-08 05:51:17 +0200 (Tue, 08 Sep 2009)
> New Revision: 32994
> ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=32994&view=rev
>
> Modified:
> haiku/trunk/src/system/kernel/arch/x86/arch_vm_translation_map.cpp
> Log:
> Don't know what this was supposed to do, but with the VADDR_TO_PDENT() it
> would
> end up as 0 again in any case. It certainly looks correct without it,
> removing
> so it doesn't confuse the next one reading over it.
The function computes the number of page tables needed to map the given
address range. As the comment says, the "start == 0" case means that the
actual start address is not known and the worst case shall be assumed. Which
is why both "start" and "end" are shifted by a complete page table range
minus one page.
CU, Ingo
More information about the Haiku-commits
mailing list