Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3611
b: refs/heads/master
c: a343e60
h: refs/heads/master
i:
  3609: 43b175b
  3607: 60e7ade
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jun 27, 2005
1 parent 7331ded commit 3ae4524
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ea83398b75309d8fdc999c4bb252e72d7e4fd9d
refs/heads/master: a343e6075a396e07eeff52c0da5629c8fd396be2
15 changes: 7 additions & 8 deletions trunk/arch/arm/mm/mm-armv.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,14 @@ pgd_t *get_pgd_slow(struct mm_struct *mm)

memzero(new_pgd, FIRST_KERNEL_PGD_NR * sizeof(pgd_t));

/*
* Copy over the kernel and IO PGD entries
*/
init_pgd = pgd_offset_k(0);
memcpy(new_pgd + FIRST_KERNEL_PGD_NR, init_pgd + FIRST_KERNEL_PGD_NR,
(PTRS_PER_PGD - FIRST_KERNEL_PGD_NR) * sizeof(pgd_t));

clean_dcache_area(new_pgd, PTRS_PER_PGD * sizeof(pgd_t));

if (!vectors_high()) {
/*
Expand Down Expand Up @@ -198,14 +205,6 @@ pgd_t *get_pgd_slow(struct mm_struct *mm)
spin_unlock(&mm->page_table_lock);
}

/*
* Copy over the kernel and IO PGD entries
*/
memcpy(new_pgd + FIRST_KERNEL_PGD_NR, init_pgd + FIRST_KERNEL_PGD_NR,
(PTRS_PER_PGD - FIRST_KERNEL_PGD_NR) * sizeof(pgd_t));

clean_dcache_area(new_pgd, PTRS_PER_PGD * sizeof(pgd_t));

return new_pgd;

no_pte:
Expand Down

0 comments on commit 3ae4524

Please sign in to comment.