diff options
Diffstat (limited to 'arch/v850')
-rw-r--r-- | arch/v850/Kconfig | 36 | ||||
-rw-r--r-- | arch/v850/kernel/v850_ksyms.c | 2 | ||||
-rw-r--r-- | arch/v850/kernel/vmlinux.lds.S | 1 | ||||
-rw-r--r-- | arch/v850/lib/checksum.c | 26 |
4 files changed, 37 insertions, 28 deletions
diff --git a/arch/v850/Kconfig b/arch/v850/Kconfig index 37ec644603ab..f0d4d72e560f 100644 --- a/arch/v850/Kconfig +++ b/arch/v850/Kconfig | |||
@@ -38,6 +38,14 @@ config TIME_LOW_RES | |||
38 | bool | 38 | bool |
39 | default y | 39 | default y |
40 | 40 | ||
41 | config ARCH_HAS_ILOG2_U32 | ||
42 | bool | ||
43 | default n | ||
44 | |||
45 | config ARCH_HAS_ILOG2_U64 | ||
46 | bool | ||
47 | default n | ||
48 | |||
41 | # Turn off some random 386 crap that can affect device config | 49 | # Turn off some random 386 crap that can affect device config |
42 | config ISA | 50 | config ISA |
43 | bool | 51 | bool |
@@ -97,17 +105,17 @@ menu "Processor type and features" | |||
97 | # currently support | 105 | # currently support |
98 | config V850E_MA1 | 106 | config V850E_MA1 |
99 | bool | 107 | bool |
100 | depends RTE_CB_MA1 | 108 | depends on RTE_CB_MA1 |
101 | default y | 109 | default y |
102 | # Similarly for the RTE-V850E/NB85E-CB - V850E/TEG | 110 | # Similarly for the RTE-V850E/NB85E-CB - V850E/TEG |
103 | config V850E_TEG | 111 | config V850E_TEG |
104 | bool | 112 | bool |
105 | depends RTE_CB_NB85E | 113 | depends on RTE_CB_NB85E |
106 | default y | 114 | default y |
107 | # ... and the RTE-V850E/ME2-CB - V850E/ME2 | 115 | # ... and the RTE-V850E/ME2-CB - V850E/ME2 |
108 | config V850E_ME2 | 116 | config V850E_ME2 |
109 | bool | 117 | bool |
110 | depends RTE_CB_ME2 | 118 | depends on RTE_CB_ME2 |
111 | default y | 119 | default y |
112 | 120 | ||
113 | 121 | ||
@@ -115,7 +123,7 @@ menu "Processor type and features" | |||
115 | 123 | ||
116 | config V850E2_SIM85E2 | 124 | config V850E2_SIM85E2 |
117 | bool | 125 | bool |
118 | depends V850E2_SIM85E2C || V850E2_SIM85E2S | 126 | depends on V850E2_SIM85E2C || V850E2_SIM85E2S |
119 | default y | 127 | default y |
120 | 128 | ||
121 | 129 | ||
@@ -124,7 +132,7 @@ menu "Processor type and features" | |||
124 | # V850E2 processors | 132 | # V850E2 processors |
125 | config V850E2 | 133 | config V850E2 |
126 | bool | 134 | bool |
127 | depends V850E2_SIM85E2 || V850E2_FPGA85E2C || V850E2_ANNA | 135 | depends on V850E2_SIM85E2 || V850E2_FPGA85E2C || V850E2_ANNA |
128 | default y | 136 | default y |
129 | 137 | ||
130 | 138 | ||
@@ -133,7 +141,7 @@ menu "Processor type and features" | |||
133 | # Boards in the RTE-x-CB series | 141 | # Boards in the RTE-x-CB series |
134 | config RTE_CB | 142 | config RTE_CB |
135 | bool | 143 | bool |
136 | depends RTE_CB_MA1 || RTE_CB_NB85E || RTE_CB_ME2 | 144 | depends on RTE_CB_MA1 || RTE_CB_NB85E || RTE_CB_ME2 |
137 | default y | 145 | default y |
138 | 146 | ||
139 | config RTE_CB_MULTI | 147 | config RTE_CB_MULTI |
@@ -141,28 +149,28 @@ menu "Processor type and features" | |||
141 | # RTE_CB_NB85E can either have multi ROM support or not, but | 149 | # RTE_CB_NB85E can either have multi ROM support or not, but |
142 | # other platforms (currently only RTE_CB_MA1) require it. | 150 | # other platforms (currently only RTE_CB_MA1) require it. |
143 | prompt "Multi monitor ROM support" if RTE_CB_NB85E | 151 | prompt "Multi monitor ROM support" if RTE_CB_NB85E |
144 | depends RTE_CB_MA1 || RTE_CB_NB85E | 152 | depends on RTE_CB_MA1 || RTE_CB_NB85E |
145 | default y | 153 | default y |
146 | 154 | ||
147 | config RTE_CB_MULTI_DBTRAP | 155 | config RTE_CB_MULTI_DBTRAP |
148 | bool "Pass illegal insn trap / dbtrap to kernel" | 156 | bool "Pass illegal insn trap / dbtrap to kernel" |
149 | depends RTE_CB_MULTI | 157 | depends on RTE_CB_MULTI |
150 | default n | 158 | default n |
151 | 159 | ||
152 | config RTE_CB_MA1_KSRAM | 160 | config RTE_CB_MA1_KSRAM |
153 | bool "Kernel in SRAM (limits size of kernel)" | 161 | bool "Kernel in SRAM (limits size of kernel)" |
154 | depends RTE_CB_MA1 && RTE_CB_MULTI | 162 | depends on RTE_CB_MA1 && RTE_CB_MULTI |
155 | default n | 163 | default n |
156 | 164 | ||
157 | config RTE_MB_A_PCI | 165 | config RTE_MB_A_PCI |
158 | bool "Mother-A PCI support" | 166 | bool "Mother-A PCI support" |
159 | depends RTE_CB | 167 | depends on RTE_CB |
160 | default y | 168 | default y |
161 | 169 | ||
162 | # The GBUS is used to talk to the RTE-MOTHER-A board | 170 | # The GBUS is used to talk to the RTE-MOTHER-A board |
163 | config RTE_GBUS_INT | 171 | config RTE_GBUS_INT |
164 | bool | 172 | bool |
165 | depends RTE_MB_A_PCI | 173 | depends on RTE_MB_A_PCI |
166 | default y | 174 | default y |
167 | 175 | ||
168 | # The only PCI bus we support is on the RTE-MOTHER-A board | 176 | # The only PCI bus we support is on the RTE-MOTHER-A board |
@@ -201,7 +209,7 @@ menu "Processor type and features" | |||
201 | 209 | ||
202 | config ROM_KERNEL | 210 | config ROM_KERNEL |
203 | bool "Kernel in ROM" | 211 | bool "Kernel in ROM" |
204 | depends V850E2_ANNA || V850E_AS85EP1 || RTE_CB_ME2 | 212 | depends on V850E2_ANNA || V850E_AS85EP1 || RTE_CB_ME2 |
205 | 213 | ||
206 | # Some platforms pre-zero memory, in which case the kernel doesn't need to | 214 | # Some platforms pre-zero memory, in which case the kernel doesn't need to |
207 | config ZERO_BSS | 215 | config ZERO_BSS |
@@ -217,10 +225,10 @@ menu "Processor type and features" | |||
217 | 225 | ||
218 | config V850E_HIGHRES_TIMER | 226 | config V850E_HIGHRES_TIMER |
219 | bool "High resolution timer support" | 227 | bool "High resolution timer support" |
220 | depends V850E_TIMER_D | 228 | depends on V850E_TIMER_D |
221 | config TIME_BOOTUP | 229 | config TIME_BOOTUP |
222 | bool "Time bootup" | 230 | bool "Time bootup" |
223 | depends V850E_HIGHRES_TIMER | 231 | depends on V850E_HIGHRES_TIMER |
224 | 232 | ||
225 | config RESET_GUARD | 233 | config RESET_GUARD |
226 | bool "Reset Guard" | 234 | bool "Reset Guard" |
diff --git a/arch/v850/kernel/v850_ksyms.c b/arch/v850/kernel/v850_ksyms.c index 67bc48e57c60..93575fdc874d 100644 --- a/arch/v850/kernel/v850_ksyms.c +++ b/arch/v850/kernel/v850_ksyms.c | |||
@@ -24,7 +24,7 @@ EXPORT_SYMBOL (kernel_thread); | |||
24 | EXPORT_SYMBOL (__bug); | 24 | EXPORT_SYMBOL (__bug); |
25 | 25 | ||
26 | /* Networking helper routines. */ | 26 | /* Networking helper routines. */ |
27 | EXPORT_SYMBOL (csum_partial_copy); | 27 | EXPORT_SYMBOL (csum_partial_copy_nocheck); |
28 | EXPORT_SYMBOL (csum_partial_copy_from_user); | 28 | EXPORT_SYMBOL (csum_partial_copy_from_user); |
29 | EXPORT_SYMBOL (ip_compute_csum); | 29 | EXPORT_SYMBOL (ip_compute_csum); |
30 | EXPORT_SYMBOL (ip_fast_csum); | 30 | EXPORT_SYMBOL (ip_fast_csum); |
diff --git a/arch/v850/kernel/vmlinux.lds.S b/arch/v850/kernel/vmlinux.lds.S index 88d087f527c9..3a5fd07fe064 100644 --- a/arch/v850/kernel/vmlinux.lds.S +++ b/arch/v850/kernel/vmlinux.lds.S | |||
@@ -90,6 +90,7 @@ | |||
90 | 90 | ||
91 | /* Kernel text segment, and some constant data areas. */ | 91 | /* Kernel text segment, and some constant data areas. */ |
92 | #define TEXT_CONTENTS \ | 92 | #define TEXT_CONTENTS \ |
93 | _text = .; \ | ||
93 | __stext = . ; \ | 94 | __stext = . ; \ |
94 | *(.text) \ | 95 | *(.text) \ |
95 | SCHED_TEXT \ | 96 | SCHED_TEXT \ |
diff --git a/arch/v850/lib/checksum.c b/arch/v850/lib/checksum.c index fa5872633075..042158dfe17a 100644 --- a/arch/v850/lib/checksum.c +++ b/arch/v850/lib/checksum.c | |||
@@ -88,32 +88,32 @@ out: | |||
88 | * This is a version of ip_compute_csum() optimized for IP headers, | 88 | * This is a version of ip_compute_csum() optimized for IP headers, |
89 | * which always checksum on 4 octet boundaries. | 89 | * which always checksum on 4 octet boundaries. |
90 | */ | 90 | */ |
91 | unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl) | 91 | __sum16 ip_fast_csum(const void *iph, unsigned int ihl) |
92 | { | 92 | { |
93 | return ~do_csum(iph,ihl*4); | 93 | return (__force __sum16)~do_csum(iph,ihl*4); |
94 | } | 94 | } |
95 | 95 | ||
96 | /* | 96 | /* |
97 | * this routine is used for miscellaneous IP-like checksums, mainly | 97 | * this routine is used for miscellaneous IP-like checksums, mainly |
98 | * in icmp.c | 98 | * in icmp.c |
99 | */ | 99 | */ |
100 | unsigned short ip_compute_csum(const unsigned char * buff, int len) | 100 | __sum16 ip_compute_csum(const void *buff, int len) |
101 | { | 101 | { |
102 | return ~do_csum(buff,len); | 102 | return (__force __sum16)~do_csum(buff,len); |
103 | } | 103 | } |
104 | 104 | ||
105 | /* | 105 | /* |
106 | * computes a partial checksum, e.g. for TCP/UDP fragments | 106 | * computes a partial checksum, e.g. for TCP/UDP fragments |
107 | */ | 107 | */ |
108 | unsigned int csum_partial(const unsigned char *buff, int len, unsigned int sum) | 108 | __wsum csum_partial(const void *buff, int len, __wsum sum) |
109 | { | 109 | { |
110 | unsigned int result = do_csum(buff, len); | 110 | unsigned int result = do_csum(buff, len); |
111 | 111 | ||
112 | /* add in old sum, and carry.. */ | 112 | /* add in old sum, and carry.. */ |
113 | result += sum; | 113 | result += (__force u32)sum; |
114 | if(sum > result) | 114 | if ((__force u32)sum > result) |
115 | result += 1; | 115 | result += 1; |
116 | return result; | 116 | return (__force __wsum)result; |
117 | } | 117 | } |
118 | 118 | ||
119 | EXPORT_SYMBOL(csum_partial); | 119 | EXPORT_SYMBOL(csum_partial); |
@@ -121,8 +121,8 @@ EXPORT_SYMBOL(csum_partial); | |||
121 | /* | 121 | /* |
122 | * copy while checksumming, otherwise like csum_partial | 122 | * copy while checksumming, otherwise like csum_partial |
123 | */ | 123 | */ |
124 | unsigned int csum_partial_copy(const unsigned char *src, unsigned char *dst, | 124 | __wsum csum_partial_copy_nocheck(const void *src, void *dst, |
125 | int len, unsigned int sum) | 125 | int len, __wsum sum) |
126 | { | 126 | { |
127 | /* | 127 | /* |
128 | * It's 2:30 am and I don't feel like doing it real ... | 128 | * It's 2:30 am and I don't feel like doing it real ... |
@@ -138,9 +138,9 @@ unsigned int csum_partial_copy(const unsigned char *src, unsigned char *dst, | |||
138 | * Copy from userspace and compute checksum. If we catch an exception | 138 | * Copy from userspace and compute checksum. If we catch an exception |
139 | * then zero the rest of the buffer. | 139 | * then zero the rest of the buffer. |
140 | */ | 140 | */ |
141 | unsigned int csum_partial_copy_from_user (const unsigned char *src, | 141 | __wsum csum_partial_copy_from_user (const void *src, |
142 | unsigned char *dst, | 142 | void *dst, |
143 | int len, unsigned int sum, | 143 | int len, __wsum sum, |
144 | int *err_ptr) | 144 | int *err_ptr) |
145 | { | 145 | { |
146 | int missing; | 146 | int missing; |