Skip to content

Commit

Permalink
[S390] kernel page table allocation.
Browse files Browse the repository at this point in the history
Don't waste DMA capable pages for identity mapping page tables.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Aug 16, 2006
1 parent b18a60e commit 3e03a2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/s390/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void __init paging_init(void)
/*
* pg_table is physical at this point
*/
pg_table = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE);
pg_table = (pte_t *) alloc_bootmem_pages(PAGE_SIZE);

pg_dir->pgd0 = (_PAGE_TABLE | __pa(pg_table));
pg_dir->pgd1 = (_PAGE_TABLE | (__pa(pg_table)+1024));
Expand Down Expand Up @@ -219,7 +219,7 @@ void __init paging_init(void)
continue;
}

pm_dir = (pmd_t *) alloc_bootmem_low_pages(PAGE_SIZE*4);
pm_dir = (pmd_t *) alloc_bootmem_pages(PAGE_SIZE * 4);
pgd_populate(&init_mm, pg_dir, pm_dir);

for (j = 0 ; j < PTRS_PER_PMD ; j++,pm_dir++) {
Expand All @@ -228,7 +228,7 @@ void __init paging_init(void)
continue;
}

pt_dir = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE);
pt_dir = (pte_t *) alloc_bootmem_pages(PAGE_SIZE);
pmd_populate_kernel(&init_mm, pm_dir, pt_dir);

for (k = 0 ; k < PTRS_PER_PTE ; k++,pt_dir++) {
Expand Down

0 comments on commit 3e03a2f

Please sign in to comment.