Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47622
b: refs/heads/master
c: 656dad3
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Feb 11, 2007
1 parent 5cbd5b4 commit caf443e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 3e4fdaf8aebe489e8e59826fdf78cb64356d2ad0
refs/heads/master: 656dad312fb41ed95ef08325e9df9bece3aacbbb
7 changes: 4 additions & 3 deletions trunk/arch/i386/mm/highmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ void *kmap_atomic(struct page *page, enum km_type type)

/* even !CONFIG_PREEMPT needs this, for in_atomic in do_page_fault */
pagefault_disable();

idx = type + KM_TYPE_NR*smp_processor_id();
BUG_ON(!pte_none(*(kmap_pte-idx)));

if (!PageHighMem(page))
return page_address(page);

idx = type + KM_TYPE_NR*smp_processor_id();
vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx);
if (!pte_none(*(kmap_pte-idx)))
BUG();
set_pte(kmap_pte-idx, mk_pte(page, kmap_prot));

return (void*) vaddr;
Expand Down

0 comments on commit caf443e

Please sign in to comment.