mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-01 15:10: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();
|
Mapping *m = p->mappings()->first();
|
||||||
while (m) {
|
while (m) {
|
||||||
if (!m->writeable())
|
if (!m->writeable())
|
||||||
l4_touch_ro(phys, L4_LOG2_PAGESIZE);
|
l4_touch_ro(phys, L4_PAGESIZE);
|
||||||
else
|
else
|
||||||
l4_touch_rw(phys, L4_LOG2_PAGESIZE);
|
l4_touch_rw(phys, L4_PAGESIZE);
|
||||||
|
|
||||||
l4_fpage_t snd_fpage = m->writeable()
|
l4_fpage_t snd_fpage = m->writeable()
|
||||||
? l4_fpage((l4_addr_t)phys, L4_LOG2_PAGESIZE, L4_FPAGE_RW)
|
? l4_fpage((l4_addr_t)phys, L4_LOG2_PAGESIZE, L4_FPAGE_RW)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user