diff options
author | Chen, Kenneth W <kenneth.w.chen@intel.com> | 2005-11-17 04:38:42 -0500 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-11-17 12:47:18 -0500 |
commit | fedb25fae72bc2c3709448a43be067439643da87 (patch) | |
tree | a394188d38b6e1052d7c6abac7b4e17eda903bd5 /arch/ia64/kernel/ivt.S | |
parent | 6027994423e12a3c0b22d3dbf9ac87364ca4e0ec (diff) |
[IA64] 4 level page table bug fix in vhpt_miss
From source code inspection, I think there is a bug with 4 level
page table with vhpt_miss handler. In the code path of rechecking
page table entry against previously read value after tlb insertion,
*pte value in register r18 was overwritten with value newly read
from pud pointer, render the check of new *pte against previous
*pte completely wrong. Though the bug is none fatal and the penalty
is to purge the entry and retry. For functional correctness, it
should be fixed. The fix is to use a different register so new
*pud don't trash *pte. (btw, the comments in the cmp statement is
wrong as well, which I will address in the next patch).
Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/ivt.S')
-rw-r--r-- | arch/ia64/kernel/ivt.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/kernel/ivt.S b/arch/ia64/kernel/ivt.S index e06f21f60dc5..c71c79262a48 100644 --- a/arch/ia64/kernel/ivt.S +++ b/arch/ia64/kernel/ivt.S | |||
@@ -209,13 +209,13 @@ ENTRY(vhpt_miss) | |||
209 | ld8 r25=[r21] // read L4 entry again | 209 | ld8 r25=[r21] // read L4 entry again |
210 | ld8 r26=[r17] // read L3 PTE again | 210 | ld8 r26=[r17] // read L3 PTE again |
211 | #ifdef CONFIG_PGTABLE_4 | 211 | #ifdef CONFIG_PGTABLE_4 |
212 | ld8 r18=[r28] // read L2 entry again | 212 | ld8 r19=[r28] // read L2 entry again |
213 | #endif | 213 | #endif |
214 | cmp.ne p6,p7=r0,r0 | 214 | cmp.ne p6,p7=r0,r0 |
215 | ;; | 215 | ;; |
216 | cmp.ne.or.andcm p6,p7=r26,r20 // did L3 entry change | 216 | cmp.ne.or.andcm p6,p7=r26,r20 // did L3 entry change |
217 | #ifdef CONFIG_PGTABLE_4 | 217 | #ifdef CONFIG_PGTABLE_4 |
218 | cmp.ne.or.andcm p6,p7=r29,r18 // did L4 PTE change | 218 | cmp.ne.or.andcm p6,p7=r19,r29 // did L4 PTE change |
219 | #endif | 219 | #endif |
220 | mov r27=PAGE_SHIFT<<2 | 220 | mov r27=PAGE_SHIFT<<2 |
221 | ;; | 221 | ;; |