Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29638
b: refs/heads/master
c: a7b1a1a
h: refs/heads/master
v: v3
  • Loading branch information
Roman Zippel authored and Linus Torvalds committed Jun 25, 2006
1 parent 474a889 commit b2e2678
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 6bf9f755c3f30c81df17fce7d2f8dda11b9516a4
refs/heads/master: a7b1a1a3089aaf1168e3b68a40e98532063d7811
6 changes: 4 additions & 2 deletions trunk/arch/m68k/mm/kmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,15 @@ void __iounmap(void *addr, unsigned long size)

if (CPU_IS_020_OR_030) {
int pmd_off = (virtaddr/PTRTREESIZE) & 15;
int pmd_type = pmd_dir->pmd[pmd_off] & _DESCTYPE_MASK;

if ((pmd_dir->pmd[pmd_off] & _DESCTYPE_MASK) == _PAGE_PRESENT) {
if (pmd_type == _PAGE_PRESENT) {
pmd_dir->pmd[pmd_off] = 0;
virtaddr += PTRTREESIZE;
size -= PTRTREESIZE;
continue;
}
} else if (pmd_type == 0)
continue;
}

if (pmd_bad(*pmd_dir)) {
Expand Down

0 comments on commit b2e2678

Please sign in to comment.