~ubuntu-branches/ubuntu/trusty/apex/trusty

« back to all changes in this revision

Viewing changes to include/asm-arm/glue.h

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2009-11-10 11:55:15 UTC
  • mfrom: (2.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091110115515-6jjsf6rc8py35awe
Tags: 1.6.10ubuntu1
* Merge from debian testing, remaining changes:
  - Move apex VMA address to 4MiB to leave enough space for the ubuntu
  kernel and not overwrite apex in ram when loading.
  - nslu2 configuration: set CONFIG_RAMDISK_SIZE=0x0055FFF0 instead of
  0x005FFFF0 to make enough room for ubuntu initramfs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 */
16
16
#ifdef __KERNEL__
17
17
 
18
 
#include <linux/config.h>
19
18
 
20
19
#ifdef __STDC__
21
20
#define ____glue(name,fn)       name##fn
39
38
 *        v5tej_early   - ARMv5 with Thumb and Java early abort handler
40
39
 *        xscale        - ARMv5 with Thumb with Xscale extensions
41
40
 *        v6_early      - ARMv6 generic early abort handler
 
41
 *        v7_early      - ARMv7 generic early abort handler
42
42
 */
43
 
#undef CPU_ABORT_HANDLER
44
 
#undef MULTI_ABORT
 
43
#undef CPU_DABORT_HANDLER
 
44
#undef MULTI_DABORT
45
45
 
46
46
#if defined(CONFIG_CPU_ARM610)
47
 
# ifdef CPU_ABORT_HANDLER
48
 
#  define MULTI_ABORT 1
 
47
# ifdef CPU_DABORT_HANDLER
 
48
#  define MULTI_DABORT 1
49
49
# else
50
 
#  define CPU_ABORT_HANDLER cpu_arm6_data_abort
 
50
#  define CPU_DABORT_HANDLER cpu_arm6_data_abort
51
51
# endif
52
52
#endif
53
53
 
54
54
#if defined(CONFIG_CPU_ARM710)
55
 
# ifdef CPU_ABORT_HANDLER
56
 
#  define MULTI_ABORT 1
 
55
# ifdef CPU_DABORT_HANDLER
 
56
#  define MULTI_DABORT 1
57
57
# else
58
 
#  define CPU_ABORT_HANDLER cpu_arm7_data_abort
 
58
#  define CPU_DABORT_HANDLER cpu_arm7_data_abort
59
59
# endif
60
60
#endif
61
61
 
62
62
#ifdef CONFIG_CPU_ABRT_LV4T
63
 
# ifdef CPU_ABORT_HANDLER
64
 
#  define MULTI_ABORT 1
 
63
# ifdef CPU_DABORT_HANDLER
 
64
#  define MULTI_DABORT 1
65
65
# else
66
 
#  define CPU_ABORT_HANDLER v4t_late_abort
 
66
#  define CPU_DABORT_HANDLER v4t_late_abort
67
67
# endif
68
68
#endif
69
69
 
70
70
#ifdef CONFIG_CPU_ABRT_EV4
71
 
# ifdef CPU_ABORT_HANDLER
72
 
#  define MULTI_ABORT 1
 
71
# ifdef CPU_DABORT_HANDLER
 
72
#  define MULTI_DABORT 1
73
73
# else
74
 
#  define CPU_ABORT_HANDLER v4_early_abort
 
74
#  define CPU_DABORT_HANDLER v4_early_abort
75
75
# endif
76
76
#endif
77
77
 
78
78
#ifdef CONFIG_CPU_ABRT_EV4T
79
 
# ifdef CPU_ABORT_HANDLER
80
 
#  define MULTI_ABORT 1
 
79
# ifdef CPU_DABORT_HANDLER
 
80
#  define MULTI_DABORT 1
81
81
# else
82
 
#  define CPU_ABORT_HANDLER v4t_early_abort
 
82
#  define CPU_DABORT_HANDLER v4t_early_abort
83
83
# endif
84
84
#endif
85
85
 
86
86
#ifdef CONFIG_CPU_ABRT_EV5TJ
87
 
# ifdef CPU_ABORT_HANDLER
88
 
#  define MULTI_ABORT 1
 
87
# ifdef CPU_DABORT_HANDLER
 
88
#  define MULTI_DABORT 1
89
89
# else
90
 
#  define CPU_ABORT_HANDLER v5tj_early_abort
 
90
#  define CPU_DABORT_HANDLER v5tj_early_abort
91
91
# endif
92
92
#endif
93
93
 
94
94
#ifdef CONFIG_CPU_ABRT_EV5T
95
 
# ifdef CPU_ABORT_HANDLER
96
 
#  define MULTI_ABORT 1
 
95
# ifdef CPU_DABORT_HANDLER
 
96
#  define MULTI_DABORT 1
97
97
# else
98
 
#  define CPU_ABORT_HANDLER v5t_early_abort
 
98
#  define CPU_DABORT_HANDLER v5t_early_abort
99
99
# endif
100
100
#endif
101
101
 
102
102
#ifdef CONFIG_CPU_ABRT_EV6
103
 
# ifdef CPU_ABORT_HANDLER
104
 
#  define MULTI_ABORT 1
105
 
# else
106
 
#  define CPU_ABORT_HANDLER v6_early_abort
107
 
# endif
108
 
#endif
109
 
 
110
 
#ifndef CPU_ABORT_HANDLER
 
103
# ifdef CPU_DABORT_HANDLER
 
104
#  define MULTI_DABORT 1
 
105
# else
 
106
#  define CPU_DABORT_HANDLER v6_early_abort
 
107
# endif
 
108
#endif
 
109
 
 
110
#ifdef CONFIG_CPU_ABRT_EV7
 
111
# ifdef CPU_DABORT_HANDLER
 
112
#  define MULTI_DABORT 1
 
113
# else
 
114
#  define CPU_DABORT_HANDLER v7_early_abort
 
115
# endif
 
116
#endif
 
117
 
 
118
#ifndef CPU_DABORT_HANDLER
111
119
#error Unknown data abort handler type
112
120
#endif
113
121
 
 
122
/*
 
123
 * Prefetch abort handler.  If the CPU has an IFAR use that, otherwise
 
124
 * use the address of the aborted instruction
 
125
 */
 
126
#undef CPU_PABORT_HANDLER
 
127
#undef MULTI_PABORT
 
128
 
 
129
#ifdef CONFIG_CPU_PABRT_IFAR
 
130
# ifdef CPU_PABORT_HANDLER
 
131
#  define MULTI_PABORT 1
 
132
# else
 
133
#  define CPU_PABORT_HANDLER(reg, insn) mrc p15, 0, reg, cr6, cr0, 2
 
134
# endif
 
135
#endif
 
136
 
 
137
#ifdef CONFIG_CPU_PABRT_NOIFAR
 
138
# ifdef CPU_PABORT_HANDLER
 
139
#  define MULTI_PABORT 1
 
140
# else
 
141
#  define CPU_PABORT_HANDLER(reg, insn) mov reg, insn
 
142
# endif
 
143
#endif
 
144
 
 
145
#ifndef CPU_PABORT_HANDLER
 
146
#error Unknown prefetch abort handler type
 
147
#endif
 
148
 
114
149
#endif