diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/arm/vfp/entry.S |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/arm/vfp/entry.S')
-rw-r--r-- | arch/arm/vfp/entry.S | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/arm/vfp/entry.S b/arch/arm/vfp/entry.S new file mode 100644 index 000000000000..e73c8deca592 --- /dev/null +++ b/arch/arm/vfp/entry.S | |||
@@ -0,0 +1,45 @@ | |||
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. | ||
10 | * | ||
11 | * Basic entry code, called from the kernel's undefined instruction trap. | ||
12 | * r0 = faulted instruction | ||
13 | * r5 = faulted PC+4 | ||
14 | * r9 = successful return | ||
15 | * r10 = thread_info structure | ||
16 | * lr = failure return | ||
17 | */ | ||
18 | #include <linux/linkage.h> | ||
19 | #include <linux/init.h> | ||
20 | #include <asm/constants.h> | ||
21 | #include <asm/vfpmacros.h> | ||
22 | |||
23 | .globl do_vfp | ||
24 | do_vfp: | ||
25 | ldr r4, .LCvfp | ||
26 | add r10, r10, #TI_VFPSTATE @ r10 = workspace | ||
27 | ldr pc, [r4] @ call VFP entry point | ||
28 | |||
29 | .LCvfp: | ||
30 | .word vfp_vector | ||
31 | |||
32 | @ This code is called if the VFP does not exist. It needs to flag the | ||
33 | @ failure to the VFP initialisation code. | ||
34 | |||
35 | __INIT | ||
36 | .globl vfp_testing_entry | ||
37 | vfp_testing_entry: | ||
38 | ldr r0, VFP_arch_address | ||
39 | str r5, [r0] @ known non-zero value | ||
40 | mov pc, r9 @ we have handled the fault | ||
41 | |||
42 | VFP_arch_address: | ||
43 | .word VFP_arch | ||
44 | |||
45 | __FINIT | ||