mce_power.c (3eb66e91a25497065c5322b1268cbc3953642227) | mce_power.c (7f177f9810ada8ec2e8b378eddbe2d91fda79c9b) |
---|---|
1/* 2 * Machine check exception handling CPU-side for power7 and power8 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * --- 22 unchanged lines hidden (view full) --- 31#include <asm/pte-walk.h> 32#include <asm/sstep.h> 33#include <asm/exception-64s.h> 34 35/* 36 * Convert an address related to an mm to a PFN. NOTE: we are in real 37 * mode, we could potentially race with page table updates. 38 */ | 1/* 2 * Machine check exception handling CPU-side for power7 and power8 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * --- 22 unchanged lines hidden (view full) --- 31#include <asm/pte-walk.h> 32#include <asm/sstep.h> 33#include <asm/exception-64s.h> 34 35/* 36 * Convert an address related to an mm to a PFN. NOTE: we are in real 37 * mode, we could potentially race with page table updates. 38 */ |
39static unsigned long addr_to_pfn(struct pt_regs *regs, unsigned long addr) | 39unsigned long addr_to_pfn(struct pt_regs *regs, unsigned long addr) |
40{ 41 pte_t *ptep; 42 unsigned long flags; 43 struct mm_struct *mm; 44 45 if (user_mode(regs)) 46 mm = current->mm; 47 else --- 572 unchanged lines hidden --- | 40{ 41 pte_t *ptep; 42 unsigned long flags; 43 struct mm_struct *mm; 44 45 if (user_mode(regs)) 46 mm = current->mm; 47 else --- 572 unchanged lines hidden --- |