diff options
author | Michael Neuling <mikey@neuling.org> | 2008-06-25 00:07:18 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-06-30 21:28:45 -0400 |
commit | 6f3d8e6947ec98e358514fc0f7b2e37fe88a21bb (patch) | |
tree | b91f2832c61b80bce0137473f6dca6e7df36b7d8 /arch/powerpc/kernel/head_32.S | |
parent | 10e343925ab5d9f6c651ad808f2e413e3cc053b3 (diff) |
powerpc: Make load_up_fpu and load_up_altivec callable
Make load_up_fpu and load_up_altivec callable so they can be reused by
the VSX code.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/head_32.S')
-rw-r--r-- | arch/powerpc/kernel/head_32.S | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S index 785af9b56591..99ee2f0f0f2b 100644 --- a/arch/powerpc/kernel/head_32.S +++ b/arch/powerpc/kernel/head_32.S | |||
@@ -421,8 +421,10 @@ BEGIN_FTR_SECTION | |||
421 | b ProgramCheck | 421 | b ProgramCheck |
422 | END_FTR_SECTION_IFSET(CPU_FTR_FPU_UNAVAILABLE) | 422 | END_FTR_SECTION_IFSET(CPU_FTR_FPU_UNAVAILABLE) |
423 | EXCEPTION_PROLOG | 423 | EXCEPTION_PROLOG |
424 | bne load_up_fpu /* if from user, just load it up */ | 424 | beq 1f |
425 | addi r3,r1,STACK_FRAME_OVERHEAD | 425 | bl load_up_fpu /* if from user, just load it up */ |
426 | b fast_exception_return | ||
427 | 1: addi r3,r1,STACK_FRAME_OVERHEAD | ||
426 | EXC_XFER_EE_LITE(0x800, kernel_fp_unavailable_exception) | 428 | EXC_XFER_EE_LITE(0x800, kernel_fp_unavailable_exception) |
427 | 429 | ||
428 | /* Decrementer */ | 430 | /* Decrementer */ |