From 8dc2e7bd7e27f16a461ae7c488a5682ff7811838 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 18 Nov 2013 14:34:13 +0100 Subject: powerpc: Do not validate reserved XER bits --- cpukit/score/cpu/powerpc/ppc-context-validate.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit') diff --git a/cpukit/score/cpu/powerpc/ppc-context-validate.S b/cpukit/score/cpu/powerpc/ppc-context-validate.S index 65f78c594c..ecf84d6eb8 100644 --- a/cpukit/score/cpu/powerpc/ppc-context-validate.S +++ b/cpukit/score/cpu/powerpc/ppc-context-validate.S @@ -82,7 +82,7 @@ _CPU_Context_validate: mtlr r4 addi r4, r3, 26 mtctr r4 - addi r4, r3, 27 + rlwinm r4, r3, 0, 25, 2 mtxer r4 addi r0, r3, 28 @@ -215,7 +215,7 @@ check: mfctr r5 cmpw r4, r5 bne restore - addi r4, r3, 27 + rlwinm r4, r3, 0, 25, 2 mfxer r5 cmpw r4, r5 bne restore -- cgit v1.2.3