fix REQ-37: remap_one_page: remove to check page size

This commit is contained in:
Tomoki Shirasawa
2016-03-27 14:05:00 +09:00
parent 1195549f41
commit 6790126a23
2 changed files with 7 additions and 3 deletions

View File

@ -1252,7 +1252,7 @@ static int remap_one_page(void *arg0, page_table_t pt, pte_t *ptep,
}
off = args->off + ((uintptr_t)pgaddr - args->start);
pte_make_fileoff(off, 0, pgsize, &apte);
pte_make_fileoff(off, 0, &apte);
pte_xchg(ptep, &apte);
flush_tlb_single((uintptr_t)pgaddr); /* XXX: TLB flush */
@ -1411,7 +1411,7 @@ static int invalidate_one_page(void *arg0, page_table_t pt, pte_t *ptep,
pte_make_null(&apte, pgsize);
}
else {
pte_make_fileoff(page->offset, 0, pgsize, &apte);
pte_make_fileoff(page->offset, 0, &apte);
}
pte_xchg(ptep, &apte);
flush_tlb_single((uintptr_t)pgaddr); /* XXX: TLB flush */