Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fc63658 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

[S390] vmemmap: use clear_table to initialise page tables.



Always use clear_table to initialise page tables. The overlapping
memcpy is just a leftover of a previous version that wasn't fully
converted to clear_table.

Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 484875b1
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -77,8 +77,7 @@ static inline pud_t *vmem_pud_alloc(void)
	pud = vmem_alloc_pages(2);
	if (!pud)
		return NULL;
	pud_val(*pud) = _REGION3_ENTRY_EMPTY;
	memcpy(pud + 1, pud, (PTRS_PER_PUD - 1)*sizeof(pud_t));
	clear_table((unsigned long *) pud, _REGION3_ENTRY_EMPTY, PAGE_SIZE * 4);
#endif
	return pud;
}