ARM: mxs_defconfig: Select CONFIG_CRYPTO_DEV_MXS_DCP
[deliverable/linux.git] / arch / arm / vfp / entry.S
CommitLineData
1da177e4
LT
1/*
2 * linux/arch/arm/vfp/entry.S
3 *
4 * Copyright (C) 2004 ARM Limited.
5 * Written by Deep Blue Solutions Limited.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
1da177e4 10 */
39ad04cc
CM
11#include <linux/init.h>
12#include <linux/linkage.h>
f2255be8 13#include <asm/thread_info.h>
1da177e4 14#include <asm/vfpmacros.h>
39ad04cc
CM
15#include <asm/assembler.h>
16#include <asm/asm-offsets.h>
1da177e4 17
15ac49b6
RK
18@ VFP entry point.
19@
20@ r0 = instruction opcode (32-bit ARM or two 16-bit Thumb)
21@ r2 = PC value to resume execution after successful emulation
22@ r9 = normal "successful" return address
23@ r10 = this threads thread_info structure
24@ lr = unrecognised instruction return address
25@ IRQs disabled.
26@
93ed3970 27ENTRY(do_vfp)
0b1f68e8 28 inc_preempt_count r10, r4
5d25ac03 29 enable_irq
1da177e4 30 ldr r4, .LCvfp
c6428464 31 ldr r11, [r10, #TI_CPU] @ CPU number
1da177e4
LT
32 add r10, r10, #TI_VFPSTATE @ r10 = workspace
33 ldr pc, [r4] @ call VFP entry point
93ed3970 34ENDPROC(do_vfp)
1da177e4 35
5d4cae5f 36ENTRY(vfp_null_entry)
0b1f68e8 37 dec_preempt_count_ti r10, r4
5d4cae5f
RK
38 mov pc, lr
39ENDPROC(vfp_null_entry)
40
88987ef9 41 .align 2
1da177e4
LT
42.LCvfp:
43 .word vfp_vector
44
45@ This code is called if the VFP does not exist. It needs to flag the
46@ failure to the VFP initialisation code.
47
48 __INIT
93ed3970 49ENTRY(vfp_testing_entry)
0b1f68e8 50 dec_preempt_count_ti r10, r4
1da177e4 51 ldr r0, VFP_arch_address
f27d6e17 52 str r0, [r0] @ set to non-zero value
1da177e4 53 mov pc, r9 @ we have handled the fault
93ed3970 54ENDPROC(vfp_testing_entry)
1da177e4 55
88987ef9 56 .align 2
1da177e4
LT
57VFP_arch_address:
58 .word VFP_arch
59
60 __FINIT
This page took 0.617727 seconds and 5 git commands to generate.