pmap: Fix lookup function and add test for it
authorLukas Humbel <humbell@inf.ethz.ch>
Wed, 2 Oct 2019 14:34:41 +0000 (16:34 +0200)
committerLukas Humbel <humbell@inf.ethz.ch>
Wed, 2 Oct 2019 14:34:41 +0000 (16:34 +0200)
commit6742231dfc2d975a2cdda9ea5f2bc4ded996a2a1
tree6524b3dfbbb9bad82ad026dd848e7d56d4577875
parente2f372df8ce9ae67c6df3f035967c5f6f3d9b468
pmap: Fix lookup function and add test for it

The pmap lookup function was always reporting offset 0 and the
next lower base page size. This is wrong when a capability bigger
than a page is mapped (as it is usually the case).

Signed-off-by: Lukas Humbel <lukas.humbel@inf.ethz.ch>
lib/barrelfish/arch/x86_64/pmap.c
tools/harness/tests/pmaplookup.py [new file with mode: 0644]
usr/tests/pmaplookup/Hakefile [new file with mode: 0644]
usr/tests/pmaplookup/main.c [new file with mode: 0644]