[PATCH] m32r: fix do_page_fault and update_mmu_cache
authorHirokazu Takata <takata@linux-m32r.org>
Sat, 10 Feb 2007 09:43:37 +0000 (01:43 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:20 +0000 (10:51 -0800)
commit9b87ed790714bd3a8d492feb24f6c48f8bb59c3a
treef8915b927d4617200e7828c14a4335380d05c0be
parent9674dcf795a4c7384e4e42c8f38fcb87517b1a43
[PATCH] m32r: fix do_page_fault and update_mmu_cache

Fix do_page_fault and update_mmu_cache.

  * Fix do_page_fault (vmalloc_fault:) to pass error_code correctly
    to update_mmu_cache by using a thread-fault code for all m32r chips.

  * Fix update_mmu_cache for OPSP chip
    - #ifdef CONFIG_CHIP_OPSP portion is a workaround of OPSP;
      Add a notfound-case operation to update_mmu_cache for OPSP
      like other m32r chip.
    - Fix pte_data that was not initialized if no entry found.

Signed-off-by: Kazuhiro Inaoka <inaoka@linux-m32r.org>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m32r/mm/fault.c