L4Linux: fix usage of l4_touch_xx (fix #682)

Use size in bytes, when touching memory via l4_touch_ro or l4_touch_rw, instead
of log2 size.
This commit is contained in:
Stefan Kalkowski 2013-03-12 10:46:10 +01:00 committed by Norman Feske
parent 21de42c45d
commit 0bc02b439a

View File

@ -225,9 +225,9 @@ void Region_manager::map(void *phys)
Mapping *m = p->mappings()->first();
while (m) {
if (!m->writeable())
l4_touch_ro(phys, L4_LOG2_PAGESIZE);
l4_touch_ro(phys, L4_PAGESIZE);
else
l4_touch_rw(phys, L4_LOG2_PAGESIZE);
l4_touch_rw(phys, L4_PAGESIZE);
l4_fpage_t snd_fpage = m->writeable()
? l4_fpage((l4_addr_t)phys, L4_LOG2_PAGESIZE, L4_FPAGE_RW)