From 36c30fe2e7d96ec6b8fba8e08a63e473fd8cccfe Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Tue, 22 Nov 2005 01:24:10 +0000 Subject: [PATCH] 2005-11-21 Till Straumann * new-exceptions/cpu_asm.S: the book says a context synchronizing instruction (isync) is necessary after flipping certain bits (e.g, MSR_FP) in msr -- since this could happen as part of a context switch I added 'isync'. --- c/src/lib/libcpu/powerpc/ChangeLog | 7 +++++++ c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S | 2 ++ 2 files changed, 9 insertions(+) diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog index 37b1c5ac59..2add15fb80 100644 --- a/c/src/lib/libcpu/powerpc/ChangeLog +++ b/c/src/lib/libcpu/powerpc/ChangeLog @@ -1,3 +1,10 @@ +2005-11-21 Till Straumann + + * new-exceptions/cpu_asm.S: the book says a context + synchronizing instruction (isync) is necessary after flipping + certain bits (e.g, MSR_FP) in msr -- since this could happen as + part of a context switch I added 'isync'. + 2005-11-07 Ralf Corsepius * mpc6xx/mmu/pte121.c: Eliminate unsigned32. diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S b/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S index f4cb804eff..b1bc2b9648 100644 --- a/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S +++ b/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S @@ -352,6 +352,7 @@ PROC (_CPU_Context_switch): mtcrf 255, r6 mtlr r7 mtmsr r8 + isync blr @@ -375,6 +376,7 @@ PROC (_CPU_Context_restore): mtcrf 255, r5 mtlr r6 mtmsr r7 + isync lwz r1, GP_1(r3) lwz r2, GP_2(r3) #if (PPC_USE_MULTIPLE == 1)