diff options
author | Kumar Gala <galak@freescale.com> | 2005-09-09 16:02:25 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-18 19:38:49 -0400 |
commit | 5f7c690728ace1404f72d74972dcc261674c0dd4 (patch) | |
tree | d2fea77e39c2103be9ae41b9b849dce949cd9efd /arch/ppc/kernel/head.S | |
parent | 0a1e1222b77b9b02457d8126f598e3713559d5c7 (diff) |
[PATCH] powerpc: Merged ppc_asm.h
Merged ppc_asm.h between ppc32 & ppc64. The majority of the file is
common between the two architectures excluding how a single GPR is
saved/restored and which GPRs are non-volatile.
Additionally, moved the ASM_CONST macro used on ppc64 into ppc_asm.h.
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/kernel/head.S')
-rw-r--r-- | arch/ppc/kernel/head.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ppc/kernel/head.S b/arch/ppc/kernel/head.S index 1960fb8c259c..d05509f197d0 100644 --- a/arch/ppc/kernel/head.S +++ b/arch/ppc/kernel/head.S | |||
@@ -804,7 +804,7 @@ load_up_altivec: | |||
804 | beq 1f | 804 | beq 1f |
805 | add r4,r4,r6 | 805 | add r4,r4,r6 |
806 | addi r4,r4,THREAD /* want THREAD of last_task_used_altivec */ | 806 | addi r4,r4,THREAD /* want THREAD of last_task_used_altivec */ |
807 | SAVE_32VR(0,r10,r4) | 807 | SAVE_32VRS(0,r10,r4) |
808 | mfvscr vr0 | 808 | mfvscr vr0 |
809 | li r10,THREAD_VSCR | 809 | li r10,THREAD_VSCR |
810 | stvx vr0,r10,r4 | 810 | stvx vr0,r10,r4 |
@@ -824,7 +824,7 @@ load_up_altivec: | |||
824 | stw r4,THREAD_USED_VR(r5) | 824 | stw r4,THREAD_USED_VR(r5) |
825 | lvx vr0,r10,r5 | 825 | lvx vr0,r10,r5 |
826 | mtvscr vr0 | 826 | mtvscr vr0 |
827 | REST_32VR(0,r10,r5) | 827 | REST_32VRS(0,r10,r5) |
828 | #ifndef CONFIG_SMP | 828 | #ifndef CONFIG_SMP |
829 | subi r4,r5,THREAD | 829 | subi r4,r5,THREAD |
830 | sub r4,r4,r6 | 830 | sub r4,r4,r6 |
@@ -870,7 +870,7 @@ giveup_altivec: | |||
870 | addi r3,r3,THREAD /* want THREAD of task */ | 870 | addi r3,r3,THREAD /* want THREAD of task */ |
871 | lwz r5,PT_REGS(r3) | 871 | lwz r5,PT_REGS(r3) |
872 | cmpwi 0,r5,0 | 872 | cmpwi 0,r5,0 |
873 | SAVE_32VR(0, r4, r3) | 873 | SAVE_32VRS(0, r4, r3) |
874 | mfvscr vr0 | 874 | mfvscr vr0 |
875 | li r4,THREAD_VSCR | 875 | li r4,THREAD_VSCR |
876 | stvx vr0,r4,r3 | 876 | stvx vr0,r4,r3 |