- Copy area bugfix: populate this CPU's ptab, and sync entries afterwards

This commit is contained in:
Jan Stoess 2007-11-29 17:59:46 +01:00
parent 4629d9b543
commit 4ad2f6996e
1 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@ void space_t::populate_copy_area (word_t n, tcb_t *tcb, space_t *partner, cpuid_
pgent_t *dst_pgent = pgent(page_table_index(pgsize,
(addr_t) (COPY_AREA_START + n * COPY_AREA_SIZE)),
data.reference_ptab);
cpu);
for (word_t i=1; i < COPY_AREA_PDIRS; i++)
@ -410,7 +410,7 @@ void space_t::populate_copy_area (word_t n, tcb_t *tcb, space_t *partner, cpuid_
src_pgent->pgent.get_raw(), src_pgent,
dst_pgent->pgent.get_raw(), dst_pgent,
tcb->resources.copy_area_pdir_idx(n,0), i, page_shift(pgsize));
dst_pgent++->pgent.copy (src_pgent++->pgent);
dst_pgent++->set_entry (this, pgsize, *src_pgent++);
}
}
}