Print this page
arm: implement getfp
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/arm/ml/arm_subr.s
+++ new/usr/src/uts/arm/ml/arm_subr.s
1 1 /*
2 2 * This file and its contents are supplied under the terms of the
3 3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 4 * You may only use this file in accordance with the terms of version
5 5 * 1.0 of the CDDL.
6 6 *
7 7 * A full copy of the text of the CDDL should have accompanied this
8 8 * source. A copy of the CDDL is also available via the Internet at
9 9 * http://www.illumos.org/license/CDDL.
10 10 */
11 11
12 12 /*
13 13 * Copyright 2013 (c) Joyent, Inc. All rights reserved.
14 14 */
15 15
16 16 /*
17 17 * This file contains various ARM subroutines that are generic across all ARM
18 18 * platforms.
19 19 */
20 20
21 21 #include <sys/asm_linkage.h>
22 22
23 23 #if defined(__lint)
24 24 #include <sys/thread.h>
25 25 #endif /* __lint */
26 26
27 27 #if defined(__lint)
28 28
29 29 /*
30 30 * Return the current kernel thread that's running. Note that this is also
31 31 * available as an inline function.
32 32 */
33 33 kthread_id_t
34 34 threadp(void)
35 35 { return ((kthread_id_t)0); }
36 36
37 37 #else /* __lint */
38 38
39 39 ENTRY(threadp)
40 40 mrc p15, 0, r0, c13, c0, 4
41 41 bx lr
42 42 SET_SIZE(threadp)
43 43
44 44 #endif /* __lint */
45 45
46 46 #if defined(__lint)
47 47
48 48 /*
49 49 * Subroutine used to spin for a little bit
50 50 */
51 51
52 52 void
53 53 arm_smt_pause(void)
↓ open down ↓ |
53 lines elided |
↑ open up ↑ |
54 54 {}
55 55
56 56 #else /* __lint */
57 57
58 58 ENTRY(arm_smt_pause)
59 59 yield
60 60 bx lr
61 61 SET_SIZE(arm_smt_pause)
62 62
63 63 #endif /* __lint */
64 +
65 + ENTRY(getfp)
66 + mov r0, r9
67 + bx lr
68 + SET_SIZE(getfp)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX