mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
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:
parent
21de42c45d
commit
0bc02b439a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user