aboutsummaryrefslogtreecommitdiffstats
path: root/arch/h8300
diff options
context:
space:
mode:
Diffstat (limited to 'arch/h8300')
-rw-r--r--arch/h8300/Kconfig118
-rw-r--r--arch/h8300/Kconfig.cpu4
-rw-r--r--arch/h8300/boot/compressed/Makefile2
-rw-r--r--arch/h8300/include/asm/Kbuild2
-rw-r--r--arch/h8300/include/asm/barrier.h2
-rw-r--r--arch/h8300/include/asm/linkage.h6
-rw-r--r--arch/h8300/include/asm/tlb.h15
-rw-r--r--arch/h8300/kernel/entry.S118
-rw-r--r--arch/h8300/kernel/syscalls.S648
-rw-r--r--arch/h8300/lib/abs.S4
-rw-r--r--arch/h8300/lib/memcpy.S4
-rw-r--r--arch/h8300/lib/memset.S4
-rw-r--r--arch/h8300/platform/h8300h/aki3068net/crt0_ram.S16
-rw-r--r--arch/h8300/platform/h8300h/generic/crt0_ram.S14
-rw-r--r--arch/h8300/platform/h8300h/generic/crt0_rom.S14
-rw-r--r--arch/h8300/platform/h8300h/h8max/crt0_ram.S16
-rw-r--r--arch/h8300/platform/h8s/edosk2674/crt0_ram.S16
-rw-r--r--arch/h8300/platform/h8s/edosk2674/crt0_rom.S14
-rw-r--r--arch/h8300/platform/h8s/generic/crt0_ram.S16
-rw-r--r--arch/h8300/platform/h8s/generic/crt0_rom.S12
20 files changed, 459 insertions, 586 deletions
diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig
index 303e4f9a79d1..3d6759ee382f 100644
--- a/arch/h8300/Kconfig
+++ b/arch/h8300/Kconfig
@@ -94,126 +94,10 @@ endmenu
94 94
95source "net/Kconfig" 95source "net/Kconfig"
96 96
97source "drivers/base/Kconfig" 97source "drivers/Kconfig"
98
99source "drivers/mtd/Kconfig"
100
101source "drivers/block/Kconfig"
102
103source "drivers/ide/Kconfig"
104 98
105source "arch/h8300/Kconfig.ide" 99source "arch/h8300/Kconfig.ide"
106 100
107source "drivers/net/Kconfig"
108
109#
110# input - input/joystick depends on it. As does USB.
111#
112source "drivers/input/Kconfig"
113
114menu "Character devices"
115
116config VT
117 bool "Virtual terminal"
118 ---help---
119 If you say Y here, you will get support for terminal devices with
120 display and keyboard devices. These are called "virtual" because you
121 can run several virtual terminals (also called virtual consoles) on
122 one physical terminal. This is rather useful, for example one
123 virtual terminal can collect system messages and warnings, another
124 one can be used for a text-mode user session, and a third could run
125 an X session, all in parallel. Switching between virtual terminals
126 is done with certain key combinations, usually Alt-<function key>.
127
128 The setterm command ("man setterm") can be used to change the
129 properties (such as colors or beeping) of a virtual terminal. The
130 man page console_codes(4) ("man console_codes") contains the special
131 character sequences that can be used to change those properties
132 directly. The fonts used on virtual terminals can be changed with
133 the setfont ("man setfont") command and the key bindings are defined
134 with the loadkeys ("man loadkeys") command.
135
136 You need at least one virtual terminal device in order to make use
137 of your keyboard and monitor. Therefore, only people configuring an
138 embedded system would want to say N here in order to save some
139 memory; the only way to log into such a system is then via a serial
140 or network connection.
141
142 If unsure, say Y, or else you won't be able to do much with your new
143 shiny Linux system :-)
144
145config VT_CONSOLE
146 bool "Support for console on virtual terminal"
147 depends on VT
148 ---help---
149 The system console is the device which receives all kernel messages
150 and warnings and which allows logins in single user mode. If you
151 answer Y here, a virtual terminal (the device used to interact with
152 a physical terminal) can be used as system console. This is the most
153 common mode of operations, so you should say Y here unless you want
154 the kernel messages be output only to a serial port (in which case
155 you should say Y to "Console on serial port", below).
156
157 If you do say Y here, by default the currently visible virtual
158 terminal (/dev/tty0) will be used as system console. You can change
159 that with a kernel command line option such as "console=tty3" which
160 would use the third virtual terminal as system console. (Try "man
161 bootparam" or see the documentation of your boot loader (lilo or
162 loadlin) about how to pass options to the kernel at boot time.)
163
164 If unsure, say Y.
165
166config HW_CONSOLE
167 bool
168 depends on VT
169 default y
170
171comment "Unix98 PTY support"
172
173config UNIX98_PTYS
174 bool "Unix98 PTY support"
175 ---help---
176 A pseudo terminal (PTY) is a software device consisting of two
177 halves: a master and a slave. The slave device behaves identical to
178 a physical terminal; the master device is used by a process to
179 read data from and write data to the slave, thereby emulating a
180 terminal. Typical programs for the master side are telnet servers
181 and xterms.
182
183 Linux has traditionally used the BSD-like names /dev/ptyxx for
184 masters and /dev/ttyxx for slaves of pseudo terminals. This scheme
185 has a number of problems. The GNU C library glibc 2.1 and later,
186 however, supports the Unix98 naming standard: in order to acquire a
187 pseudo terminal, a process opens /dev/ptmx; the number of the pseudo
188 terminal is then made available to the process and the pseudo
189 terminal slave can be accessed as /dev/pts/<number>. What was
190 traditionally /dev/ttyp2 will then be /dev/pts/2, for example.
191
192 The entries in /dev/pts/ are created on the fly by a virtual
193 file system; therefore, if you say Y here you should say Y to
194 "/dev/pts file system for Unix98 PTYs" as well.
195
196 If you want to say Y here, you need to have the C library glibc 2.1
197 or later (equal to libc-6.1, check with "ls -l /lib/libc.so.*").
198 Read the instructions in <file:Documentation/Changes> pertaining to
199 pseudo terminals. It's safe to say N.
200
201source "drivers/char/pcmcia/Kconfig"
202
203source "drivers/tty/serial/Kconfig"
204
205source "drivers/i2c/Kconfig"
206
207source "drivers/hwmon/Kconfig"
208
209source "drivers/usb/Kconfig"
210
211source "drivers/uwb/Kconfig"
212
213endmenu
214
215source "drivers/staging/Kconfig"
216
217source "fs/Kconfig" 101source "fs/Kconfig"
218 102
219source "arch/h8300/Kconfig.debug" 103source "arch/h8300/Kconfig.debug"
diff --git a/arch/h8300/Kconfig.cpu b/arch/h8300/Kconfig.cpu
index 321f3922728b..cdee771460ed 100644
--- a/arch/h8300/Kconfig.cpu
+++ b/arch/h8300/Kconfig.cpu
@@ -64,6 +64,7 @@ choice
64 64
65config H83002 65config H83002
66 bool "H8/3001,3002,3003" 66 bool "H8/3001,3002,3003"
67 depends on BROKEN
67 select CPU_H8300H 68 select CPU_H8300H
68 69
69config H83007 70config H83007
@@ -72,6 +73,7 @@ config H83007
72 73
73config H83048 74config H83048
74 bool "H8/3044,3045,3046,3047,3048,3052" 75 bool "H8/3044,3045,3046,3047,3048,3052"
76 depends on BROKEN
75 select CPU_H8300H 77 select CPU_H8300H
76 78
77config H83068 79config H83068
@@ -155,10 +157,12 @@ config H8300_TIMER16_CH
155config H8300_ITU_CH 157config H8300_ITU_CH
156 int "ITU channel" 158 int "ITU channel"
157 depends on H8300_ITU 159 depends on H8300_ITU
160 range 0 4
158 161
159config H8300_TPU_CH 162config H8300_TPU_CH
160 int "TPU channel" 163 int "TPU channel"
161 depends on H8300_TPU 164 depends on H8300_TPU
165 range 0 4
162 166
163source "kernel/Kconfig.preempt" 167source "kernel/Kconfig.preempt"
164 168
diff --git a/arch/h8300/boot/compressed/Makefile b/arch/h8300/boot/compressed/Makefile
index 6745cb1ffb4f..a6c98fe3bbc3 100644
--- a/arch/h8300/boot/compressed/Makefile
+++ b/arch/h8300/boot/compressed/Makefile
@@ -16,7 +16,7 @@ OBJECTS = $(obj)/head.o $(obj)/misc.o
16# 16#
17CONFIG_MEMORY_START ?= 0x00400000 17CONFIG_MEMORY_START ?= 0x00400000
18CONFIG_BOOT_LINK_OFFSET ?= 0x00140000 18CONFIG_BOOT_LINK_OFFSET ?= 0x00140000
19IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET)]) 19IMAGE_OFFSET := $(shell printf "0x%08x" $$(($(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET))))
20 20
21LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -estartup $(obj)/vmlinux.lds 21LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -estartup $(obj)/vmlinux.lds
22 22
diff --git a/arch/h8300/include/asm/Kbuild b/arch/h8300/include/asm/Kbuild
index 995eb47e01bb..8ada3cf0c98d 100644
--- a/arch/h8300/include/asm/Kbuild
+++ b/arch/h8300/include/asm/Kbuild
@@ -1,6 +1,8 @@
1 1
2generic-y += clkdev.h 2generic-y += clkdev.h
3generic-y += exec.h 3generic-y += exec.h
4generic-y += linkage.h
4generic-y += mmu.h 5generic-y += mmu.h
5generic-y += module.h 6generic-y += module.h
6generic-y += trace_clock.h 7generic-y += trace_clock.h
8generic-y += xor.h
diff --git a/arch/h8300/include/asm/barrier.h b/arch/h8300/include/asm/barrier.h
index c7283c343c55..9e0aa9fc195d 100644
--- a/arch/h8300/include/asm/barrier.h
+++ b/arch/h8300/include/asm/barrier.h
@@ -12,6 +12,8 @@
12#define wmb() asm volatile ("" : : :"memory") 12#define wmb() asm volatile ("" : : :"memory")
13#define set_mb(var, value) do { xchg(&var, value); } while (0) 13#define set_mb(var, value) do { xchg(&var, value); } while (0)
14 14
15#define read_barrier_depends() do { } while (0)
16
15#ifdef CONFIG_SMP 17#ifdef CONFIG_SMP
16#define smp_mb() mb() 18#define smp_mb() mb()
17#define smp_rmb() rmb() 19#define smp_rmb() rmb()
diff --git a/arch/h8300/include/asm/linkage.h b/arch/h8300/include/asm/linkage.h
deleted file mode 100644
index 1d81604fb0ad..000000000000
--- a/arch/h8300/include/asm/linkage.h
+++ /dev/null
@@ -1,6 +0,0 @@
1#ifndef _H8300_LINKAGE_H
2#define _H8300_LINKAGE_H
3
4#undef SYMBOL_NAME_LABEL
5#define SYMBOL_NAME_LABEL(_name_) _##_name_##:
6#endif
diff --git a/arch/h8300/include/asm/tlb.h b/arch/h8300/include/asm/tlb.h
index 3dea80ad9e6f..7f0743051ad5 100644
--- a/arch/h8300/include/asm/tlb.h
+++ b/arch/h8300/include/asm/tlb.h
@@ -1,16 +1,3 @@
1/*
2 include/asm-h8300/tlb.h
3*/
4
5#ifndef __H8300_TLB_H__
6#define __H8300_TLB_H__
7
8#define tlb_flush(tlb) do { } while(0)
9
10/*
11 include/asm-h8300/tlb.h
12*/
13
14#ifndef __H8300_TLB_H__ 1#ifndef __H8300_TLB_H__
15#define __H8300_TLB_H__ 2#define __H8300_TLB_H__
16 3
@@ -19,5 +6,3 @@
19#include <asm-generic/tlb.h> 6#include <asm-generic/tlb.h>
20 7
21#endif 8#endif
22
23#endif
diff --git a/arch/h8300/kernel/entry.S b/arch/h8300/kernel/entry.S
index 617a6878787f..94bd30f11df6 100644
--- a/arch/h8300/kernel/entry.S
+++ b/arch/h8300/kernel/entry.S
@@ -87,13 +87,13 @@ INTERRUPTS = 128
87 bne 5f 87 bne 5f
88 88
89 /* user mode */ 89 /* user mode */
90 mov.l sp,@SYMBOL_NAME(sw_usp) 90 mov.l sp,@_sw_usp
91 mov.l @sp,er0 /* restore saved er0 */ 91 mov.l @sp,er0 /* restore saved er0 */
92 orc #0x10,ccr /* switch kernel stack */ 92 orc #0x10,ccr /* switch kernel stack */
93 mov.l @SYMBOL_NAME(sw_ksp),sp 93 mov.l @_sw_ksp,sp
94 sub.l #(LRET-LORIG),sp /* allocate LORIG - LRET */ 94 sub.l #(LRET-LORIG),sp /* allocate LORIG - LRET */
95 SAVEREGS 95 SAVEREGS
96 mov.l @SYMBOL_NAME(sw_usp),er0 96 mov.l @_sw_usp,er0
97 mov.l @(USERRET:16,er0),er1 /* copy the RET addr */ 97 mov.l @(USERRET:16,er0),er1 /* copy the RET addr */
98 mov.l er1,@(LRET-LER3:16,sp) 98 mov.l er1,@(LRET-LER3:16,sp)
99 SAVEEXR 99 SAVEEXR
@@ -128,7 +128,7 @@ INTERRUPTS = 128
128 bne 7f 128 bne 7f
129 129
130 orc #0x80,ccr 130 orc #0x80,ccr
131 mov.l @SYMBOL_NAME(sw_usp),er0 131 mov.l @_sw_usp,er0
132 mov.l @(LER0-LER1:16,sp),er1 /* restore ER0 */ 132 mov.l @(LER0-LER1:16,sp),er1 /* restore ER0 */
133 mov.l er1,@er0 133 mov.l er1,@er0
134 RESTOREEXR 134 RESTOREEXR
@@ -141,7 +141,7 @@ INTERRUPTS = 128
141 141
142 mov.l @sp+,er1 142 mov.l @sp+,er1
143 add.l #(LRET-LER1),sp /* remove LORIG - LRET */ 143 add.l #(LRET-LER1),sp /* remove LORIG - LRET */
144 mov.l sp,@SYMBOL_NAME(sw_ksp) 144 mov.l sp,@_sw_ksp
145 andc #0xef,ccr /* switch to user mode */ 145 andc #0xef,ccr /* switch to user mode */
146 mov.l er0,sp 146 mov.l er0,sp
147 bra 8f 147 bra 8f
@@ -155,20 +155,20 @@ INTERRUPTS = 128
155 rte 155 rte
156 .endm 156 .endm
157 157
158.globl SYMBOL_NAME(system_call) 158.globl _system_call
159.globl SYMBOL_NAME(ret_from_exception) 159.globl _ret_from_exception
160.globl SYMBOL_NAME(ret_from_fork) 160.globl _ret_from_fork
161.globl SYMBOL_NAME(ret_from_kernel_thread) 161.globl _ret_from_kernel_thread
162.globl SYMBOL_NAME(ret_from_interrupt) 162.globl _ret_from_interrupt
163.globl SYMBOL_NAME(interrupt_redirect_table) 163.globl _interrupt_redirect_table
164.globl SYMBOL_NAME(sw_ksp),SYMBOL_NAME(sw_usp) 164.globl _sw_ksp,_sw_usp
165.globl SYMBOL_NAME(resume) 165.globl _resume
166.globl SYMBOL_NAME(interrupt_entry) 166.globl _interrupt_entry
167.globl SYMBOL_NAME(trace_break) 167.globl _trace_break
168 168
169#if defined(CONFIG_ROMKERNEL) 169#if defined(CONFIG_ROMKERNEL)
170 .section .int_redirect,"ax" 170 .section .int_redirect,"ax"
171SYMBOL_NAME_LABEL(interrupt_redirect_table) 171_interrupt_redirect_table:
172#if defined(CONFIG_CPU_H8300H) 172#if defined(CONFIG_CPU_H8300H)
173 .rept 7 173 .rept 7
174 .long 0 174 .long 0
@@ -178,54 +178,54 @@ SYMBOL_NAME_LABEL(interrupt_redirect_table)
178 .rept 5 178 .rept 5
179 .long 0 179 .long 0
180 .endr 180 .endr
181 jmp @SYMBOL_NAME(trace_break) 181 jmp @_trace_break
182 .long 0 182 .long 0
183#endif 183#endif
184 184
185 jsr @SYMBOL_NAME(interrupt_entry) /* NMI */ 185 jsr @_interrupt_entry /* NMI */
186 jmp @SYMBOL_NAME(system_call) /* TRAPA #0 (System call) */ 186 jmp @_system_call /* TRAPA #0 (System call) */
187 .long 0 187 .long 0
188 .long 0 188 .long 0
189 jmp @SYMBOL_NAME(trace_break) /* TRAPA #3 (breakpoint) */ 189 jmp @_trace_break /* TRAPA #3 (breakpoint) */
190 .rept INTERRUPTS-12 190 .rept INTERRUPTS-12
191 jsr @SYMBOL_NAME(interrupt_entry) 191 jsr @_interrupt_entry
192 .endr 192 .endr
193#endif 193#endif
194#if defined(CONFIG_RAMKERNEL) 194#if defined(CONFIG_RAMKERNEL)
195.globl SYMBOL_NAME(interrupt_redirect_table) 195.globl _interrupt_redirect_table
196 .section .bss 196 .section .bss
197SYMBOL_NAME_LABEL(interrupt_redirect_table) 197_interrupt_redirect_table:
198 .space 4 198 .space 4
199#endif 199#endif
200 200
201 .section .text 201 .section .text
202 .align 2 202 .align 2
203SYMBOL_NAME_LABEL(interrupt_entry) 203_interrupt_entry:
204 SAVE_ALL 204 SAVE_ALL
205 mov.l sp,er0 205 mov.l sp,er0
206 add.l #LVEC,er0 206 add.l #LVEC,er0
207 btst #4,r1l 207 btst #4,r1l
208 bne 1f 208 bne 1f
209 /* user LVEC */ 209 /* user LVEC */
210 mov.l @SYMBOL_NAME(sw_usp),er0 210 mov.l @_sw_usp,er0
211 adds #4,er0 211 adds #4,er0
2121: 2121:
213 mov.l @er0,er0 /* LVEC address */ 213 mov.l @er0,er0 /* LVEC address */
214#if defined(CONFIG_ROMKERNEL) 214#if defined(CONFIG_ROMKERNEL)
215 sub.l #SYMBOL_NAME(interrupt_redirect_table),er0 215 sub.l #_interrupt_redirect_table,er0
216#endif 216#endif
217#if defined(CONFIG_RAMKERNEL) 217#if defined(CONFIG_RAMKERNEL)
218 mov.l @SYMBOL_NAME(interrupt_redirect_table),er1 218 mov.l @_interrupt_redirect_table,er1
219 sub.l er1,er0 219 sub.l er1,er0
220#endif 220#endif
221 SHLR2 er0 221 SHLR2 er0
222 dec.l #1,er0 222 dec.l #1,er0
223 mov.l sp,er1 223 mov.l sp,er1
224 subs #4,er1 /* adjust ret_pc */ 224 subs #4,er1 /* adjust ret_pc */
225 jsr @SYMBOL_NAME(do_IRQ) 225 jsr @_do_IRQ
226 jmp @SYMBOL_NAME(ret_from_interrupt) 226 jmp @_ret_from_interrupt
227 227
228SYMBOL_NAME_LABEL(system_call) 228_system_call:
229 subs #4,sp /* dummy LVEC */ 229 subs #4,sp /* dummy LVEC */
230 SAVE_ALL 230 SAVE_ALL
231 andc #0x7f,ccr 231 andc #0x7f,ccr
@@ -233,21 +233,21 @@ SYMBOL_NAME_LABEL(system_call)
233 233
234 /* save top of frame */ 234 /* save top of frame */
235 mov.l sp,er0 235 mov.l sp,er0
236 jsr @SYMBOL_NAME(set_esp0) 236 jsr @_set_esp0
237 mov.l sp,er2 237 mov.l sp,er2
238 and.w #0xe000,r2 238 and.w #0xe000,r2
239 mov.b @((TI_FLAGS+3-(TIF_SYSCALL_TRACE >> 3)):16,er2),r2l 239 mov.b @((TI_FLAGS+3-(TIF_SYSCALL_TRACE >> 3)):16,er2),r2l
240 btst #(TIF_SYSCALL_TRACE & 7),r2l 240 btst #(TIF_SYSCALL_TRACE & 7),r2l
241 beq 1f 241 beq 1f
242 jsr @SYMBOL_NAME(do_syscall_trace) 242 jsr @_do_syscall_trace
2431: 2431:
244 cmp.l #NR_syscalls,er4 244 cmp.l #NR_syscalls,er4
245 bcc badsys 245 bcc badsys
246 SHLL2 er4 246 SHLL2 er4
247 mov.l #SYMBOL_NAME(sys_call_table),er0 247 mov.l #_sys_call_table,er0
248 add.l er4,er0 248 add.l er4,er0
249 mov.l @er0,er4 249 mov.l @er0,er4
250 beq SYMBOL_NAME(ret_from_exception):16 250 beq _ret_from_exception:16
251 mov.l @(LER1:16,sp),er0 251 mov.l @(LER1:16,sp),er0
252 mov.l @(LER2:16,sp),er1 252 mov.l @(LER2:16,sp),er1
253 mov.l @(LER3:16,sp),er2 253 mov.l @(LER3:16,sp),er2
@@ -258,10 +258,10 @@ SYMBOL_NAME_LABEL(system_call)
258 mov.b @((TI_FLAGS+3-(TIF_SYSCALL_TRACE >> 3)):16,er2),r2l 258 mov.b @((TI_FLAGS+3-(TIF_SYSCALL_TRACE >> 3)):16,er2),r2l
259 btst #(TIF_SYSCALL_TRACE & 7),r2l 259 btst #(TIF_SYSCALL_TRACE & 7),r2l
260 beq 2f 260 beq 2f
261 jsr @SYMBOL_NAME(do_syscall_trace) 261 jsr @_do_syscall_trace
2622: 2622:
263#if defined(CONFIG_SYSCALL_PRINT) 263#if defined(CONFIG_SYSCALL_PRINT)
264 jsr @SYMBOL_NAME(syscall_print) 264 jsr @_syscall_print
265#endif 265#endif
266 orc #0x80,ccr 266 orc #0x80,ccr
267 bra resume_userspace 267 bra resume_userspace
@@ -275,11 +275,11 @@ badsys:
275#define resume_kernel restore_all 275#define resume_kernel restore_all
276#endif 276#endif
277 277
278SYMBOL_NAME_LABEL(ret_from_exception) 278_ret_from_exception:
279#if defined(CONFIG_PREEMPT) 279#if defined(CONFIG_PREEMPT)
280 orc #0x80,ccr 280 orc #0x80,ccr
281#endif 281#endif
282SYMBOL_NAME_LABEL(ret_from_interrupt) 282_ret_from_interrupt:
283 mov.b @(LCCR+1:16,sp),r0l 283 mov.b @(LCCR+1:16,sp),r0l
284 btst #4,r0l 284 btst #4,r0l
285 bne resume_kernel:8 /* return from kernel */ 285 bne resume_kernel:8 /* return from kernel */
@@ -296,12 +296,12 @@ work_pending:
296 /* work notifysig */ 296 /* work notifysig */
297 mov.l sp,er0 297 mov.l sp,er0
298 subs #4,er0 /* er0: pt_regs */ 298 subs #4,er0 /* er0: pt_regs */
299 jsr @SYMBOL_NAME(do_notify_resume) 299 jsr @_do_notify_resume
300 bra restore_all:8 300 bra restore_all:8
301work_resched: 301work_resched:
302 mov.l sp,er0 302 mov.l sp,er0
303 jsr @SYMBOL_NAME(set_esp0) 303 jsr @_set_esp0
304 jsr @SYMBOL_NAME(schedule) 304 jsr @_schedule
305 bra resume_userspace:8 305 bra resume_userspace:8
306restore_all: 306restore_all:
307 RESTORE_ALL /* Does RTE */ 307 RESTORE_ALL /* Does RTE */
@@ -320,26 +320,26 @@ need_resched:
320 mov.l er0,@(TI_PRE_COUNT:16,er4) 320 mov.l er0,@(TI_PRE_COUNT:16,er4)
321 andc #0x7f,ccr 321 andc #0x7f,ccr
322 mov.l sp,er0 322 mov.l sp,er0
323 jsr @SYMBOL_NAME(set_esp0) 323 jsr @_set_esp0
324 jsr @SYMBOL_NAME(schedule) 324 jsr @_schedule
325 orc #0x80,ccr 325 orc #0x80,ccr
326 bra need_resched:8 326 bra need_resched:8
327#endif 327#endif
328 328
329SYMBOL_NAME_LABEL(ret_from_fork) 329_ret_from_fork:
330 mov.l er2,er0 330 mov.l er2,er0
331 jsr @SYMBOL_NAME(schedule_tail) 331 jsr @_schedule_tail
332 jmp @SYMBOL_NAME(ret_from_exception) 332 jmp @_ret_from_exception
333 333
334SYMBOL_NAME_LABEL(ret_from_kernel_thread) 334_ret_from_kernel_thread:
335 mov.l er2,er0 335 mov.l er2,er0
336 jsr @SYMBOL_NAME(schedule_tail) 336 jsr @_schedule_tail
337 mov.l @(LER4:16,sp),er0 337 mov.l @(LER4:16,sp),er0
338 mov.l @(LER5:16,sp),er1 338 mov.l @(LER5:16,sp),er1
339 jsr @er1 339 jsr @er1
340 jmp @SYMBOL_NAME(ret_from_exception) 340 jmp @_ret_from_exception
341 341
342SYMBOL_NAME_LABEL(resume) 342_resume:
343 /* 343 /*
344 * Beware - when entering resume, offset of tss is in d1, 344 * Beware - when entering resume, offset of tss is in d1,
345 * prev (the current task) is in a0, next (the new task) 345 * prev (the current task) is in a0, next (the new task)
@@ -355,7 +355,7 @@ SYMBOL_NAME_LABEL(resume)
355 355
356 /* disable interrupts */ 356 /* disable interrupts */
357 orc #0x80,ccr 357 orc #0x80,ccr
358 mov.l @SYMBOL_NAME(sw_usp),er3 358 mov.l @_sw_usp,er3
359 mov.l er3,@(THREAD_USP:16,er0) 359 mov.l er3,@(THREAD_USP:16,er0)
360 mov.l sp,@(THREAD_KSP:16,er0) 360 mov.l sp,@(THREAD_KSP:16,er0)
361 361
@@ -363,7 +363,7 @@ SYMBOL_NAME_LABEL(resume)
363 /* FIXME: what did we hack out of here, this does nothing! */ 363 /* FIXME: what did we hack out of here, this does nothing! */
364 364
365 mov.l @(THREAD_USP:16,er1),er0 365 mov.l @(THREAD_USP:16,er1),er0
366 mov.l er0,@SYMBOL_NAME(sw_usp) 366 mov.l er0,@_sw_usp
367 mov.l @(THREAD_KSP:16,er1),sp 367 mov.l @(THREAD_KSP:16,er1),sp
368 368
369 /* restore status register */ 369 /* restore status register */
@@ -372,15 +372,15 @@ SYMBOL_NAME_LABEL(resume)
372 ldc r3l,ccr 372 ldc r3l,ccr
373 rts 373 rts
374 374
375SYMBOL_NAME_LABEL(trace_break) 375_trace_break:
376 subs #4,sp 376 subs #4,sp
377 SAVE_ALL 377 SAVE_ALL
378 sub.l er1,er1 378 sub.l er1,er1
379 dec.l #1,er1 379 dec.l #1,er1
380 mov.l er1,@(LORIG,sp) 380 mov.l er1,@(LORIG,sp)
381 mov.l sp,er0 381 mov.l sp,er0
382 jsr @SYMBOL_NAME(set_esp0) 382 jsr @_set_esp0
383 mov.l @SYMBOL_NAME(sw_usp),er0 383 mov.l @_sw_usp,er0
384 mov.l @er0,er1 384 mov.l @er0,er1
385 mov.w @(-2:16,er1),r2 385 mov.w @(-2:16,er1),r2
386 cmp.w #0x5730,r2 386 cmp.w #0x5730,r2
@@ -390,13 +390,13 @@ SYMBOL_NAME_LABEL(trace_break)
3901: 3901:
391 and.w #0xff,e1 391 and.w #0xff,e1
392 mov.l er1,er0 392 mov.l er1,er0
393 jsr @SYMBOL_NAME(trace_trap) 393 jsr @_trace_trap
394 jmp @SYMBOL_NAME(ret_from_exception) 394 jmp @_ret_from_exception
395 395
396 .section .bss 396 .section .bss
397SYMBOL_NAME_LABEL(sw_ksp) 397_sw_ksp:
398 .space 4 398 .space 4
399SYMBOL_NAME_LABEL(sw_usp) 399_sw_usp:
400 .space 4 400 .space 4
401 401
402 .end 402 .end
diff --git a/arch/h8300/kernel/syscalls.S b/arch/h8300/kernel/syscalls.S
index 5c2168fb9b9e..c55e0ed270d5 100644
--- a/arch/h8300/kernel/syscalls.S
+++ b/arch/h8300/kernel/syscalls.S
@@ -2,8 +2,10 @@
2#include <linux/sys.h> 2#include <linux/sys.h>
3#include <asm/linkage.h> 3#include <asm/linkage.h>
4#include <asm/unistd.h> 4#include <asm/unistd.h>
5 5
6.globl SYMBOL_NAME(sys_call_table) 6#define CALL(x) .long _ ## x
7
8.globl _sys_call_table
7 9
8#if defined(CONFIG_CPU_H8300H) 10#if defined(CONFIG_CPU_H8300H)
9 .h8300h 11 .h8300h
@@ -13,324 +15,324 @@
13#endif 15#endif
14 .section .text 16 .section .text
15 .align 2 17 .align 2
16SYMBOL_NAME_LABEL(sys_call_table) 18_sys_call_table:
17 .long SYMBOL_NAME(sys_ni_syscall) /* 0 - old "setup()" system call*/ 19 CALL(sys_ni_syscall) /* 0 - old "setup()" system call*/
18 .long SYMBOL_NAME(sys_exit) 20 CALL(sys_exit)
19 .long SYMBOL_NAME(sys_fork) 21 CALL(sys_fork)
20 .long SYMBOL_NAME(sys_read) 22 CALL(sys_read)
21 .long SYMBOL_NAME(sys_write) 23 CALL(sys_write)
22 .long SYMBOL_NAME(sys_open) /* 5 */ 24 CALL(sys_open) /* 5 */
23 .long SYMBOL_NAME(sys_close) 25 CALL(sys_close)
24 .long SYMBOL_NAME(sys_waitpid) 26 CALL(sys_waitpid)
25 .long SYMBOL_NAME(sys_creat) 27 CALL(sys_creat)
26 .long SYMBOL_NAME(sys_link) 28 CALL(sys_link)
27 .long SYMBOL_NAME(sys_unlink) /* 10 */ 29 CALL(sys_unlink) /* 10 */
28 .long SYMBOL_NAME(sys_execve) 30 CALL(sys_execve)
29 .long SYMBOL_NAME(sys_chdir) 31 CALL(sys_chdir)
30 .long SYMBOL_NAME(sys_time) 32 CALL(sys_time)
31 .long SYMBOL_NAME(sys_mknod) 33 CALL(sys_mknod)
32 .long SYMBOL_NAME(sys_chmod) /* 15 */ 34 CALL(sys_chmod) /* 15 */
33 .long SYMBOL_NAME(sys_chown16) 35 CALL(sys_chown16)
34 .long SYMBOL_NAME(sys_ni_syscall) /* old break syscall holder */ 36 CALL(sys_ni_syscall) /* old break syscall holder */
35 .long SYMBOL_NAME(sys_stat) 37 CALL(sys_stat)
36 .long SYMBOL_NAME(sys_lseek) 38 CALL(sys_lseek)
37 .long SYMBOL_NAME(sys_getpid) /* 20 */ 39 CALL(sys_getpid) /* 20 */
38 .long SYMBOL_NAME(sys_mount) 40 CALL(sys_mount)
39 .long SYMBOL_NAME(sys_oldumount) 41 CALL(sys_oldumount)
40 .long SYMBOL_NAME(sys_setuid16) 42 CALL(sys_setuid16)
41 .long SYMBOL_NAME(sys_getuid16) 43 CALL(sys_getuid16)
42 .long SYMBOL_NAME(sys_stime) /* 25 */ 44 CALL(sys_stime) /* 25 */
43 .long SYMBOL_NAME(sys_ptrace) 45 CALL(sys_ptrace)
44 .long SYMBOL_NAME(sys_alarm) 46 CALL(sys_alarm)
45 .long SYMBOL_NAME(sys_fstat) 47 CALL(sys_fstat)
46 .long SYMBOL_NAME(sys_pause) 48 CALL(sys_pause)
47 .long SYMBOL_NAME(sys_utime) /* 30 */ 49 CALL(sys_utime) /* 30 */
48 .long SYMBOL_NAME(sys_ni_syscall) /* old stty syscall holder */ 50 CALL(sys_ni_syscall) /* old stty syscall holder */
49 .long SYMBOL_NAME(sys_ni_syscall) /* old gtty syscall holder */ 51 CALL(sys_ni_syscall) /* old gtty syscall holder */
50 .long SYMBOL_NAME(sys_access) 52 CALL(sys_access)
51 .long SYMBOL_NAME(sys_nice) 53 CALL(sys_nice)
52 .long SYMBOL_NAME(sys_ni_syscall) /* 35 old ftime syscall holder */ 54 CALL(sys_ni_syscall) /* 35 old ftime syscall holder */
53 .long SYMBOL_NAME(sys_sync) 55 CALL(sys_sync)
54 .long SYMBOL_NAME(sys_kill) 56 CALL(sys_kill)
55 .long SYMBOL_NAME(sys_rename) 57 CALL(sys_rename)
56 .long SYMBOL_NAME(sys_mkdir) 58 CALL(sys_mkdir)
57 .long SYMBOL_NAME(sys_rmdir) /* 40 */ 59 CALL(sys_rmdir) /* 40 */
58 .long SYMBOL_NAME(sys_dup) 60 CALL(sys_dup)
59 .long SYMBOL_NAME(sys_pipe) 61 CALL(sys_pipe)
60 .long SYMBOL_NAME(sys_times) 62 CALL(sys_times)
61 .long SYMBOL_NAME(sys_ni_syscall) /* old prof syscall holder */ 63 CALL(sys_ni_syscall) /* old prof syscall holder */
62 .long SYMBOL_NAME(sys_brk) /* 45 */ 64 CALL(sys_brk) /* 45 */
63 .long SYMBOL_NAME(sys_setgid16) 65 CALL(sys_setgid16)
64 .long SYMBOL_NAME(sys_getgid16) 66 CALL(sys_getgid16)
65 .long SYMBOL_NAME(sys_signal) 67 CALL(sys_signal)
66 .long SYMBOL_NAME(sys_geteuid16) 68 CALL(sys_geteuid16)
67 .long SYMBOL_NAME(sys_getegid16) /* 50 */ 69 CALL(sys_getegid16) /* 50 */
68 .long SYMBOL_NAME(sys_acct) 70 CALL(sys_acct)
69 .long SYMBOL_NAME(sys_umount) /* recycled never used phys() */ 71 CALL(sys_umount) /* recycled never used phys() */
70 .long SYMBOL_NAME(sys_ni_syscall) /* old lock syscall holder */ 72 CALL(sys_ni_syscall) /* old lock syscall holder */
71 .long SYMBOL_NAME(sys_ioctl) 73 CALL(sys_ioctl)
72 .long SYMBOL_NAME(sys_fcntl) /* 55 */ 74 CALL(sys_fcntl) /* 55 */
73 .long SYMBOL_NAME(sys_ni_syscall) /* old mpx syscall holder */ 75 CALL(sys_ni_syscall) /* old mpx syscall holder */
74 .long SYMBOL_NAME(sys_setpgid) 76 CALL(sys_setpgid)
75 .long SYMBOL_NAME(sys_ni_syscall) /* old ulimit syscall holder */ 77 CALL(sys_ni_syscall) /* old ulimit syscall holder */
76 .long SYMBOL_NAME(sys_ni_syscall) 78 CALL(sys_ni_syscall)
77 .long SYMBOL_NAME(sys_umask) /* 60 */ 79 CALL(sys_umask) /* 60 */
78 .long SYMBOL_NAME(sys_chroot) 80 CALL(sys_chroot)
79 .long SYMBOL_NAME(sys_ustat) 81 CALL(sys_ustat)
80 .long SYMBOL_NAME(sys_dup2) 82 CALL(sys_dup2)
81 .long SYMBOL_NAME(sys_getppid) 83 CALL(sys_getppid)
82 .long SYMBOL_NAME(sys_getpgrp) /* 65 */ 84 CALL(sys_getpgrp) /* 65 */
83 .long SYMBOL_NAME(sys_setsid) 85 CALL(sys_setsid)
84 .long SYMBOL_NAME(sys_sigaction) 86 CALL(sys_sigaction)
85 .long SYMBOL_NAME(sys_sgetmask) 87 CALL(sys_sgetmask)
86 .long SYMBOL_NAME(sys_ssetmask) 88 CALL(sys_ssetmask)
87 .long SYMBOL_NAME(sys_setreuid16) /* 70 */ 89 CALL(sys_setreuid16) /* 70 */
88 .long SYMBOL_NAME(sys_setregid16) 90 CALL(sys_setregid16)
89 .long SYMBOL_NAME(sys_sigsuspend) 91 CALL(sys_sigsuspend)
90 .long SYMBOL_NAME(sys_sigpending) 92 CALL(sys_sigpending)
91 .long SYMBOL_NAME(sys_sethostname) 93 CALL(sys_sethostname)
92 .long SYMBOL_NAME(sys_setrlimit) /* 75 */ 94 CALL(sys_setrlimit) /* 75 */
93 .long SYMBOL_NAME(sys_old_getrlimit) 95 CALL(sys_old_getrlimit)
94 .long SYMBOL_NAME(sys_getrusage) 96 CALL(sys_getrusage)
95 .long SYMBOL_NAME(sys_gettimeofday) 97 CALL(sys_gettimeofday)
96 .long SYMBOL_NAME(sys_settimeofday) 98 CALL(sys_settimeofday)
97 .long SYMBOL_NAME(sys_getgroups16) /* 80 */ 99 CALL(sys_getgroups16) /* 80 */
98 .long SYMBOL_NAME(sys_setgroups16) 100 CALL(sys_setgroups16)
99 .long SYMBOL_NAME(sys_old_select) 101 CALL(sys_old_select)
100 .long SYMBOL_NAME(sys_symlink) 102 CALL(sys_symlink)
101 .long SYMBOL_NAME(sys_lstat) 103 CALL(sys_lstat)
102 .long SYMBOL_NAME(sys_readlink) /* 85 */ 104 CALL(sys_readlink) /* 85 */
103 .long SYMBOL_NAME(sys_uselib) 105 CALL(sys_uselib)
104 .long SYMBOL_NAME(sys_swapon) 106 CALL(sys_swapon)
105 .long SYMBOL_NAME(sys_reboot) 107 CALL(sys_reboot)
106 .long SYMBOL_NAME(sys_old_readdir) 108 CALL(sys_old_readdir)
107 .long SYMBOL_NAME(sys_old_mmap) /* 90 */ 109 CALL(sys_old_mmap) /* 90 */
108 .long SYMBOL_NAME(sys_munmap) 110 CALL(sys_munmap)
109 .long SYMBOL_NAME(sys_truncate) 111 CALL(sys_truncate)
110 .long SYMBOL_NAME(sys_ftruncate) 112 CALL(sys_ftruncate)
111 .long SYMBOL_NAME(sys_fchmod) 113 CALL(sys_fchmod)
112 .long SYMBOL_NAME(sys_fchown16) /* 95 */ 114 CALL(sys_fchown16) /* 95 */
113 .long SYMBOL_NAME(sys_getpriority) 115 CALL(sys_getpriority)
114 .long SYMBOL_NAME(sys_setpriority) 116 CALL(sys_setpriority)
115 .long SYMBOL_NAME(sys_ni_syscall) /* old profil syscall holder */ 117 CALL(sys_ni_syscall) /* old profil syscall holder */
116 .long SYMBOL_NAME(sys_statfs) 118 CALL(sys_statfs)
117 .long SYMBOL_NAME(sys_fstatfs) /* 100 */ 119 CALL(sys_fstatfs) /* 100 */
118 .long SYMBOL_NAME(sys_ni_syscall) /* ioperm for i386 */ 120 CALL(sys_ni_syscall) /* ioperm for i386 */
119 .long SYMBOL_NAME(sys_socketcall) 121 CALL(sys_socketcall)
120 .long SYMBOL_NAME(sys_syslog) 122 CALL(sys_syslog)
121 .long SYMBOL_NAME(sys_setitimer) 123 CALL(sys_setitimer)
122 .long SYMBOL_NAME(sys_getitimer) /* 105 */ 124 CALL(sys_getitimer) /* 105 */
123 .long SYMBOL_NAME(sys_newstat) 125 CALL(sys_newstat)
124 .long SYMBOL_NAME(sys_newlstat) 126 CALL(sys_newlstat)
125 .long SYMBOL_NAME(sys_newfstat) 127 CALL(sys_newfstat)
126 .long SYMBOL_NAME(sys_ni_syscall) 128 CALL(sys_ni_syscall)
127 .long SYMBOL_NAME(sys_ni_syscall) /* iopl for i386 */ /* 110 */ 129 CALL(sys_ni_syscall) /* iopl for i386 */ /* 110 */
128 .long SYMBOL_NAME(sys_vhangup) 130 CALL(sys_vhangup)
129 .long SYMBOL_NAME(sys_ni_syscall) /* obsolete idle() syscall */ 131 CALL(sys_ni_syscall) /* obsolete idle() syscall */
130 .long SYMBOL_NAME(sys_ni_syscall) /* vm86old for i386 */ 132 CALL(sys_ni_syscall) /* vm86old for i386 */
131 .long SYMBOL_NAME(sys_wait4) 133 CALL(sys_wait4)
132 .long SYMBOL_NAME(sys_swapoff) /* 115 */ 134 CALL(sys_swapoff) /* 115 */
133 .long SYMBOL_NAME(sys_sysinfo) 135 CALL(sys_sysinfo)
134 .long SYMBOL_NAME(sys_ipc) 136 CALL(sys_ipc)
135 .long SYMBOL_NAME(sys_fsync) 137 CALL(sys_fsync)
136 .long SYMBOL_NAME(sys_sigreturn) 138 CALL(sys_sigreturn)
137 .long SYMBOL_NAME(sys_clone) /* 120 */ 139 CALL(sys_clone) /* 120 */
138 .long SYMBOL_NAME(sys_setdomainname) 140 CALL(sys_setdomainname)
139 .long SYMBOL_NAME(sys_newuname) 141 CALL(sys_newuname)
140 .long SYMBOL_NAME(sys_cacheflush) /* modify_ldt for i386 */ 142 CALL(sys_cacheflush) /* modify_ldt for i386 */
141 .long SYMBOL_NAME(sys_adjtimex) 143 CALL(sys_adjtimex)
142 .long SYMBOL_NAME(sys_ni_syscall) /* 125 sys_mprotect */ 144 CALL(sys_ni_syscall) /* 125 sys_mprotect */
143 .long SYMBOL_NAME(sys_sigprocmask) 145 CALL(sys_sigprocmask)
144 .long SYMBOL_NAME(sys_ni_syscall) /* sys_create_module */ 146 CALL(sys_ni_syscall) /* sys_create_module */
145 .long SYMBOL_NAME(sys_init_module) 147 CALL(sys_init_module)
146 .long SYMBOL_NAME(sys_delete_module) 148 CALL(sys_delete_module)
147 .long SYMBOL_NAME(sys_ni_syscall) /* 130 sys_get_kernel_syms */ 149 CALL(sys_ni_syscall) /* 130 sys_get_kernel_syms */
148 .long SYMBOL_NAME(sys_quotactl) 150 CALL(sys_quotactl)
149 .long SYMBOL_NAME(sys_getpgid) 151 CALL(sys_getpgid)
150 .long SYMBOL_NAME(sys_fchdir) 152 CALL(sys_fchdir)
151 .long SYMBOL_NAME(sys_bdflush) 153 CALL(sys_bdflush)
152 .long SYMBOL_NAME(sys_sysfs) /* 135 */ 154 CALL(sys_sysfs) /* 135 */
153 .long SYMBOL_NAME(sys_personality) 155 CALL(sys_personality)
154 .long SYMBOL_NAME(sys_ni_syscall) /* for afs_syscall */ 156 CALL(sys_ni_syscall) /* for afs_syscall */
155 .long SYMBOL_NAME(sys_setfsuid16) 157 CALL(sys_setfsuid16)
156 .long SYMBOL_NAME(sys_setfsgid16) 158 CALL(sys_setfsgid16)
157 .long SYMBOL_NAME(sys_llseek) /* 140 */ 159 CALL(sys_llseek) /* 140 */
158 .long SYMBOL_NAME(sys_getdents) 160 CALL(sys_getdents)
159 .long SYMBOL_NAME(sys_select) 161 CALL(sys_select)
160 .long SYMBOL_NAME(sys_flock) 162 CALL(sys_flock)
161 .long SYMBOL_NAME(sys_ni_syscall) /* sys_msync */ 163 CALL(sys_ni_syscall) /* sys_msync */
162 .long SYMBOL_NAME(sys_readv) /* 145 */ 164 CALL(sys_readv) /* 145 */
163 .long SYMBOL_NAME(sys_writev) 165 CALL(sys_writev)
164 .long SYMBOL_NAME(sys_getsid) 166 CALL(sys_getsid)
165 .long SYMBOL_NAME(sys_fdatasync) 167 CALL(sys_fdatasync)
166 .long SYMBOL_NAME(sys_sysctl) 168 CALL(sys_sysctl)
167 .long SYMBOL_NAME(sys_ni_syscall) /* 150 sys_mlock */ 169 CALL(sys_ni_syscall) /* 150 sys_mlock */
168 .long SYMBOL_NAME(sys_ni_syscall) /* sys_munlock */ 170 CALL(sys_ni_syscall) /* sys_munlock */
169 .long SYMBOL_NAME(sys_ni_syscall) /* sys_mlockall */ 171 CALL(sys_ni_syscall) /* sys_mlockall */
170 .long SYMBOL_NAME(sys_ni_syscall) /* sys_munlockall */ 172 CALL(sys_ni_syscall) /* sys_munlockall */
171 .long SYMBOL_NAME(sys_sched_setparam) 173 CALL(sys_sched_setparam)
172 .long SYMBOL_NAME(sys_sched_getparam) /* 155 */ 174 CALL(sys_sched_getparam) /* 155 */
173 .long SYMBOL_NAME(sys_sched_setscheduler) 175 CALL(sys_sched_setscheduler)
174 .long SYMBOL_NAME(sys_sched_getscheduler) 176 CALL(sys_sched_getscheduler)
175 .long SYMBOL_NAME(sys_sched_yield) 177 CALL(sys_sched_yield)
176 .long SYMBOL_NAME(sys_sched_get_priority_max) 178 CALL(sys_sched_get_priority_max)
177 .long SYMBOL_NAME(sys_sched_get_priority_min) /* 160 */ 179 CALL(sys_sched_get_priority_min) /* 160 */
178 .long SYMBOL_NAME(sys_sched_rr_get_interval) 180 CALL(sys_sched_rr_get_interval)
179 .long SYMBOL_NAME(sys_nanosleep) 181 CALL(sys_nanosleep)
180 .long SYMBOL_NAME(sys_ni_syscall) /* sys_mremap */ 182 CALL(sys_ni_syscall) /* sys_mremap */
181 .long SYMBOL_NAME(sys_setresuid16) 183 CALL(sys_setresuid16)
182 .long SYMBOL_NAME(sys_getresuid16) /* 165 */ 184 CALL(sys_getresuid16) /* 165 */
183 .long SYMBOL_NAME(sys_ni_syscall) /* for vm86 */ 185 CALL(sys_ni_syscall) /* for vm86 */
184 .long SYMBOL_NAME(sys_ni_syscall) /* sys_query_module */ 186 CALL(sys_ni_syscall) /* sys_query_module */
185 .long SYMBOL_NAME(sys_poll) 187 CALL(sys_poll)
186 .long SYMBOL_NAME(sys_ni_syscall) /* old nfsservctl */ 188 CALL(sys_ni_syscall) /* old nfsservctl */
187 .long SYMBOL_NAME(sys_setresgid16) /* 170 */ 189 CALL(sys_setresgid16) /* 170 */
188 .long SYMBOL_NAME(sys_getresgid16) 190 CALL(sys_getresgid16)
189 .long SYMBOL_NAME(sys_prctl) 191 CALL(sys_prctl)
190 .long SYMBOL_NAME(sys_rt_sigreturn) 192 CALL(sys_rt_sigreturn)
191 .long SYMBOL_NAME(sys_rt_sigaction) 193 CALL(sys_rt_sigaction)
192 .long SYMBOL_NAME(sys_rt_sigprocmask) /* 175 */ 194 CALL(sys_rt_sigprocmask) /* 175 */
193 .long SYMBOL_NAME(sys_rt_sigpending) 195 CALL(sys_rt_sigpending)
194 .long SYMBOL_NAME(sys_rt_sigtimedwait) 196 CALL(sys_rt_sigtimedwait)
195 .long SYMBOL_NAME(sys_rt_sigqueueinfo) 197 CALL(sys_rt_sigqueueinfo)
196 .long SYMBOL_NAME(sys_rt_sigsuspend) 198 CALL(sys_rt_sigsuspend)
197 .long SYMBOL_NAME(sys_pread64) /* 180 */ 199 CALL(sys_pread64) /* 180 */
198 .long SYMBOL_NAME(sys_pwrite64) 200 CALL(sys_pwrite64)
199 .long SYMBOL_NAME(sys_lchown16); 201 CALL(sys_lchown16);
200 .long SYMBOL_NAME(sys_getcwd) 202 CALL(sys_getcwd)
201 .long SYMBOL_NAME(sys_capget) 203 CALL(sys_capget)
202 .long SYMBOL_NAME(sys_capset) /* 185 */ 204 CALL(sys_capset) /* 185 */
203 .long SYMBOL_NAME(sys_sigaltstack) 205 CALL(sys_sigaltstack)
204 .long SYMBOL_NAME(sys_sendfile) 206 CALL(sys_sendfile)
205 .long SYMBOL_NAME(sys_ni_syscall) /* streams1 */ 207 CALL(sys_ni_syscall) /* streams1 */
206 .long SYMBOL_NAME(sys_ni_syscall) /* streams2 */ 208 CALL(sys_ni_syscall) /* streams2 */
207 .long SYMBOL_NAME(sys_vfork) /* 190 */ 209 CALL(sys_vfork) /* 190 */
208 .long SYMBOL_NAME(sys_getrlimit) 210 CALL(sys_getrlimit)
209 .long SYMBOL_NAME(sys_mmap_pgoff) 211 CALL(sys_mmap_pgoff)
210 .long SYMBOL_NAME(sys_truncate64) 212 CALL(sys_truncate64)
211 .long SYMBOL_NAME(sys_ftruncate64) 213 CALL(sys_ftruncate64)
212 .long SYMBOL_NAME(sys_stat64) /* 195 */ 214 CALL(sys_stat64) /* 195 */
213 .long SYMBOL_NAME(sys_lstat64) 215 CALL(sys_lstat64)
214 .long SYMBOL_NAME(sys_fstat64) 216 CALL(sys_fstat64)
215 .long SYMBOL_NAME(sys_chown) 217 CALL(sys_chown)
216 .long SYMBOL_NAME(sys_getuid) 218 CALL(sys_getuid)
217 .long SYMBOL_NAME(sys_getgid) /* 200 */ 219 CALL(sys_getgid) /* 200 */
218 .long SYMBOL_NAME(sys_geteuid) 220 CALL(sys_geteuid)
219 .long SYMBOL_NAME(sys_getegid) 221 CALL(sys_getegid)
220 .long SYMBOL_NAME(sys_setreuid) 222 CALL(sys_setreuid)
221 .long SYMBOL_NAME(sys_setregid) 223 CALL(sys_setregid)
222 .long SYMBOL_NAME(sys_getgroups) /* 205 */ 224 CALL(sys_getgroups) /* 205 */
223 .long SYMBOL_NAME(sys_setgroups) 225 CALL(sys_setgroups)
224 .long SYMBOL_NAME(sys_fchown) 226 CALL(sys_fchown)
225 .long SYMBOL_NAME(sys_setresuid) 227 CALL(sys_setresuid)
226 .long SYMBOL_NAME(sys_getresuid) 228 CALL(sys_getresuid)
227 .long SYMBOL_NAME(sys_setresgid) /* 210 */ 229 CALL(sys_setresgid) /* 210 */
228 .long SYMBOL_NAME(sys_getresgid) 230 CALL(sys_getresgid)
229 .long SYMBOL_NAME(sys_lchown) 231 CALL(sys_lchown)
230 .long SYMBOL_NAME(sys_setuid) 232 CALL(sys_setuid)
231 .long SYMBOL_NAME(sys_setgid) 233 CALL(sys_setgid)
232 .long SYMBOL_NAME(sys_setfsuid) /* 215 */ 234 CALL(sys_setfsuid) /* 215 */
233 .long SYMBOL_NAME(sys_setfsgid) 235 CALL(sys_setfsgid)
234 .long SYMBOL_NAME(sys_pivot_root) 236 CALL(sys_pivot_root)
235 .long SYMBOL_NAME(sys_ni_syscall) 237 CALL(sys_ni_syscall)
236 .long SYMBOL_NAME(sys_ni_syscall) 238 CALL(sys_ni_syscall)
237 .long SYMBOL_NAME(sys_getdents64) /* 220 */ 239 CALL(sys_getdents64) /* 220 */
238 .long SYMBOL_NAME(sys_fcntl64) 240 CALL(sys_fcntl64)
239 .long SYMBOL_NAME(sys_ni_syscall) /* reserved TUX */ 241 CALL(sys_ni_syscall) /* reserved TUX */
240 .long SYMBOL_NAME(sys_ni_syscall) /* reserved Security */ 242 CALL(sys_ni_syscall) /* reserved Security */
241 .long SYMBOL_NAME(sys_gettid) 243 CALL(sys_gettid)
242 .long SYMBOL_NAME(sys_readahead) /* 225 */ 244 CALL(sys_readahead) /* 225 */
243 .long SYMBOL_NAME(sys_setxattr) 245 CALL(sys_setxattr)
244 .long SYMBOL_NAME(sys_lsetxattr) 246 CALL(sys_lsetxattr)
245 .long SYMBOL_NAME(sys_fsetxattr) 247 CALL(sys_fsetxattr)
246 .long SYMBOL_NAME(sys_getxattr) 248 CALL(sys_getxattr)
247 .long SYMBOL_NAME(sys_lgetxattr) /* 230 */ 249 CALL(sys_lgetxattr) /* 230 */
248 .long SYMBOL_NAME(sys_fgetxattr) 250 CALL(sys_fgetxattr)
249 .long SYMBOL_NAME(sys_listxattr) 251 CALL(sys_listxattr)
250 .long SYMBOL_NAME(sys_llistxattr) 252 CALL(sys_llistxattr)
251 .long SYMBOL_NAME(sys_flistxattr) 253 CALL(sys_flistxattr)
252 .long SYMBOL_NAME(sys_removexattr) /* 235 */ 254 CALL(sys_removexattr) /* 235 */
253 .long SYMBOL_NAME(sys_lremovexattr) 255 CALL(sys_lremovexattr)
254 .long SYMBOL_NAME(sys_fremovexattr) 256 CALL(sys_fremovexattr)
255 .long SYMBOL_NAME(sys_tkill) 257 CALL(sys_tkill)
256 .long SYMBOL_NAME(sys_sendfile64) 258 CALL(sys_sendfile64)
257 .long SYMBOL_NAME(sys_futex) /* 240 */ 259 CALL(sys_futex) /* 240 */
258 .long SYMBOL_NAME(sys_sched_setaffinity) 260 CALL(sys_sched_setaffinity)
259 .long SYMBOL_NAME(sys_sched_getaffinity) 261 CALL(sys_sched_getaffinity)
260 .long SYMBOL_NAME(sys_ni_syscall) 262 CALL(sys_ni_syscall)
261 .long SYMBOL_NAME(sys_ni_syscall) 263 CALL(sys_ni_syscall)
262 .long SYMBOL_NAME(sys_io_setup) /* 245 */ 264 CALL(sys_io_setup) /* 245 */
263 .long SYMBOL_NAME(sys_io_destroy) 265 CALL(sys_io_destroy)
264 .long SYMBOL_NAME(sys_io_getevents) 266 CALL(sys_io_getevents)
265 .long SYMBOL_NAME(sys_io_submit) 267 CALL(sys_io_submit)
266 .long SYMBOL_NAME(sys_io_cancel) 268 CALL(sys_io_cancel)
267 .long SYMBOL_NAME(sys_fadvise64) /* 250 */ 269 CALL(sys_fadvise64) /* 250 */
268 .long SYMBOL_NAME(sys_ni_syscall) 270 CALL(sys_ni_syscall)
269 .long SYMBOL_NAME(sys_exit_group) 271 CALL(sys_exit_group)
270 .long SYMBOL_NAME(sys_lookup_dcookie) 272 CALL(sys_lookup_dcookie)
271 .long SYMBOL_NAME(sys_epoll_create) 273 CALL(sys_epoll_create)
272 .long SYMBOL_NAME(sys_epoll_ctl) /* 255 */ 274 CALL(sys_epoll_ctl) /* 255 */
273 .long SYMBOL_NAME(sys_epoll_wait) 275 CALL(sys_epoll_wait)
274 .long SYMBOL_NAME(sys_ni_syscall) /* sys_remap_file_pages */ 276 CALL(sys_ni_syscall) /* sys_remap_file_pages */
275 .long SYMBOL_NAME(sys_set_tid_address) 277 CALL(sys_set_tid_address)
276 .long SYMBOL_NAME(sys_timer_create) 278 CALL(sys_timer_create)
277 .long SYMBOL_NAME(sys_timer_settime) /* 260 */ 279 CALL(sys_timer_settime) /* 260 */
278 .long SYMBOL_NAME(sys_timer_gettime) 280 CALL(sys_timer_gettime)
279 .long SYMBOL_NAME(sys_timer_getoverrun) 281 CALL(sys_timer_getoverrun)
280 .long SYMBOL_NAME(sys_timer_delete) 282 CALL(sys_timer_delete)
281 .long SYMBOL_NAME(sys_clock_settime) 283 CALL(sys_clock_settime)
282 .long SYMBOL_NAME(sys_clock_gettime) /* 265 */ 284 CALL(sys_clock_gettime) /* 265 */
283 .long SYMBOL_NAME(sys_clock_getres) 285 CALL(sys_clock_getres)
284 .long SYMBOL_NAME(sys_clock_nanosleep) 286 CALL(sys_clock_nanosleep)
285 .long SYMBOL_NAME(sys_statfs64) 287 CALL(sys_statfs64)
286 .long SYMBOL_NAME(sys_fstatfs64) 288 CALL(sys_fstatfs64)
287 .long SYMBOL_NAME(sys_tgkill) /* 270 */ 289 CALL(sys_tgkill) /* 270 */
288 .long SYMBOL_NAME(sys_utimes) 290 CALL(sys_utimes)
289 .long SYMBOL_NAME(sys_fadvise64_64) 291 CALL(sys_fadvise64_64)
290 .long SYMBOL_NAME(sys_ni_syscall) /* sys_vserver */ 292 CALL(sys_ni_syscall) /* sys_vserver */
291 .long SYMBOL_NAME(sys_ni_syscall) 293 CALL(sys_ni_syscall)
292 .long SYMBOL_NAME(sys_get_mempolicy) /* 275 */ 294 CALL(sys_get_mempolicy) /* 275 */
293 .long SYMBOL_NAME(sys_set_mempolicy) 295 CALL(sys_set_mempolicy)
294 .long SYMBOL_NAME(sys_mq_open) 296 CALL(sys_mq_open)
295 .long SYMBOL_NAME(sys_mq_unlink) 297 CALL(sys_mq_unlink)
296 .long SYMBOL_NAME(sys_mq_timedsend) 298 CALL(sys_mq_timedsend)
297 .long SYMBOL_NAME(sys_mq_timedreceive) /* 280 */ 299 CALL(sys_mq_timedreceive) /* 280 */
298 .long SYMBOL_NAME(sys_mq_notify) 300 CALL(sys_mq_notify)
299 .long SYMBOL_NAME(sys_mq_getsetattr) 301 CALL(sys_mq_getsetattr)
300 .long SYMBOL_NAME(sys_waitid) 302 CALL(sys_waitid)
301 .long SYMBOL_NAME(sys_ni_syscall) /* sys_kexec_load */ 303 CALL(sys_ni_syscall) /* sys_kexec_load */
302 .long SYMBOL_NAME(sys_add_key) /* 285 */ 304 CALL(sys_add_key) /* 285 */
303 .long SYMBOL_NAME(sys_request_key) 305 CALL(sys_request_key)
304 .long SYMBOL_NAME(sys_keyctl) 306 CALL(sys_keyctl)
305 .long SYMBOL_NAME(sys_ioprio_set) 307 CALL(sys_ioprio_set)
306 .long SYMBOL_NAME(sys_ioprio_get) /* 290 */ 308 CALL(sys_ioprio_get) /* 290 */
307 .long SYMBOL_NAME(sys_inotify_init) 309 CALL(sys_inotify_init)
308 .long SYMBOL_NAME(sys_inotify_add_watch) 310 CALL(sys_inotify_add_watch)
309 .long SYMBOL_NAME(sys_inotify_rm_watch) 311 CALL(sys_inotify_rm_watch)
310 .long SYMBOL_NAME(sys_migrate_pages) 312 CALL(sys_migrate_pages)
311 .long SYMBOL_NAME(sys_openat) /* 295 */ 313 CALL(sys_openat) /* 295 */
312 .long SYMBOL_NAME(sys_mkdirat) 314 CALL(sys_mkdirat)
313 .long SYMBOL_NAME(sys_mknodat) 315 CALL(sys_mknodat)
314 .long SYMBOL_NAME(sys_fchownat) 316 CALL(sys_fchownat)
315 .long SYMBOL_NAME(sys_futimesat) 317 CALL(sys_futimesat)
316 .long SYMBOL_NAME(sys_fstatat64) /* 300 */ 318 CALL(sys_fstatat64) /* 300 */
317 .long SYMBOL_NAME(sys_unlinkat) 319 CALL(sys_unlinkat)
318 .long SYMBOL_NAME(sys_renameat) 320 CALL(sys_renameat)
319 .long SYMBOL_NAME(sys_linkat) 321 CALL(sys_linkat)
320 .long SYMBOL_NAME(sys_symlinkat) 322 CALL(sys_symlinkat)
321 .long SYMBOL_NAME(sys_readlinkat) /* 305 */ 323 CALL(sys_readlinkat) /* 305 */
322 .long SYMBOL_NAME(sys_fchmodat) 324 CALL(sys_fchmodat)
323 .long SYMBOL_NAME(sys_faccessat) 325 CALL(sys_faccessat)
324 .long SYMBOL_NAME(sys_ni_syscall) /* sys_pselect6 */ 326 CALL(sys_ni_syscall) /* sys_pselect6 */
325 .long SYMBOL_NAME(sys_ni_syscall) /* sys_ppoll */ 327 CALL(sys_ni_syscall) /* sys_ppoll */
326 .long SYMBOL_NAME(sys_unshare) /* 310 */ 328 CALL(sys_unshare) /* 310 */
327 .long SYMBOL_NAME(sys_set_robust_list) 329 CALL(sys_set_robust_list)
328 .long SYMBOL_NAME(sys_get_robust_list) 330 CALL(sys_get_robust_list)
329 .long SYMBOL_NAME(sys_splice) 331 CALL(sys_splice)
330 .long SYMBOL_NAME(sys_sync_file_range) 332 CALL(sys_sync_file_range)
331 .long SYMBOL_NAME(sys_tee) /* 315 */ 333 CALL(sys_tee) /* 315 */
332 .long SYMBOL_NAME(sys_vmsplice) 334 CALL(sys_vmsplice)
333 .long SYMBOL_NAME(sys_ni_syscall) /* sys_move_pages */ 335 CALL(sys_ni_syscall) /* sys_move_pages */
334 .long SYMBOL_NAME(sys_getcpu) 336 CALL(sys_getcpu)
335 .long SYMBOL_NAME(sys_ni_syscall) /* sys_epoll_pwait */ 337 CALL(sys_ni_syscall) /* sys_epoll_pwait */
336 .long SYMBOL_NAME(sys_setns) /* 320 */ 338 CALL(sys_setns) /* 320 */
diff --git a/arch/h8300/lib/abs.S b/arch/h8300/lib/abs.S
index cabdd46b41db..ddd1fb3d01ad 100644
--- a/arch/h8300/lib/abs.S
+++ b/arch/h8300/lib/abs.S
@@ -9,10 +9,10 @@
9 .h8300s 9 .h8300s
10#endif 10#endif
11 .text 11 .text
12.global SYMBOL_NAME(abs) 12.global _abs
13 13
14;;; int abs(int n) 14;;; int abs(int n)
15SYMBOL_NAME_LABEL(abs) 15_abs:
16 mov.l er0,er0 16 mov.l er0,er0
17 bpl 1f 17 bpl 1f
18 neg.l er0 18 neg.l er0
diff --git a/arch/h8300/lib/memcpy.S b/arch/h8300/lib/memcpy.S
index fdcbc1ee673c..cad325e2c0e8 100644
--- a/arch/h8300/lib/memcpy.S
+++ b/arch/h8300/lib/memcpy.S
@@ -10,10 +10,10 @@
10#endif 10#endif
11 11
12 .text 12 .text
13.global SYMBOL_NAME(memcpy) 13.global _memcpy
14 14
15;;; void *memcpy(void *to, void *from, size_t n) 15;;; void *memcpy(void *to, void *from, size_t n)
16SYMBOL_NAME_LABEL(memcpy) 16_memcpy:
17 mov.l er2,er2 17 mov.l er2,er2
18 bne 1f 18 bne 1f
19 rts 19 rts
diff --git a/arch/h8300/lib/memset.S b/arch/h8300/lib/memset.S
index 59abdf9485a5..4549a64c5b79 100644
--- a/arch/h8300/lib/memset.S
+++ b/arch/h8300/lib/memset.S
@@ -10,13 +10,13 @@
10#endif 10#endif
11 .text 11 .text
12 12
13.global SYMBOL_NAME(memset) 13.global _memset
14 14
15;;void *memset(*ptr, int c, size_t count) 15;;void *memset(*ptr, int c, size_t count)
16;; ptr = er0 16;; ptr = er0
17;; c = er1(r1l) 17;; c = er1(r1l)
18;; count = er2 18;; count = er2
19SYMBOL_NAME_LABEL(memset) 19_memset:
20 btst #0,r0l 20 btst #0,r0l
21 beq 2f 21 beq 2f
22 22
diff --git a/arch/h8300/platform/h8300h/aki3068net/crt0_ram.S b/arch/h8300/platform/h8300h/aki3068net/crt0_ram.S
index ecaeb31ae9a4..b2ad0f2d0417 100644
--- a/arch/h8300/platform/h8300h/aki3068net/crt0_ram.S
+++ b/arch/h8300/platform/h8300h/aki3068net/crt0_ram.S
@@ -22,10 +22,10 @@
22#define RAMEND CONFIG_BLKDEV_RESERVE_ADDRESS 22#define RAMEND CONFIG_BLKDEV_RESERVE_ADDRESS
23#endif 23#endif
24 24
25 .global SYMBOL_NAME(_start) 25 .global __start
26 .global SYMBOL_NAME(command_line) 26 .global _command_line
27 .global SYMBOL_NAME(_platform_gpio_table) 27 .global __platform_gpio_table
28 .global SYMBOL_NAME(_target_name) 28 .global __target_name
29 29
30 .h8300h 30 .h8300h
31 31
@@ -33,7 +33,7 @@
33 .file "crt0_ram.S" 33 .file "crt0_ram.S"
34 34
35 /* CPU Reset entry */ 35 /* CPU Reset entry */
36SYMBOL_NAME_LABEL(_start) 36__start:
37 mov.l #RAMEND,sp 37 mov.l #RAMEND,sp
38 ldc #0x80,ccr 38 ldc #0x80,ccr
39 39
@@ -59,13 +59,13 @@ SYMBOL_NAME_LABEL(_start)
59 59
60 /* copy kernel commandline */ 60 /* copy kernel commandline */
61 mov.l #COMMAND_START,er5 61 mov.l #COMMAND_START,er5
62 mov.l #SYMBOL_NAME(command_line),er6 62 mov.l #_command_line,er6
63 mov.w #512,r4 63 mov.w #512,r4
64 eepmov.w 64 eepmov.w
65 65
66 /* uClinux kernel start */ 66 /* uClinux kernel start */
67 ldc #0x90,ccr /* running kernel */ 67 ldc #0x90,ccr /* running kernel */
68 mov.l #SYMBOL_NAME(init_thread_union),sp 68 mov.l #_init_thread_union,sp
69 add.l #0x2000,sp 69 add.l #0x2000,sp
70 jsr @_start_kernel 70 jsr @_start_kernel
71_exit: 71_exit:
@@ -107,4 +107,4 @@ __target_name:
107 .asciz "AE-3068" 107 .asciz "AE-3068"
108 108
109 .section .bootvec,"ax" 109 .section .bootvec,"ax"
110 jmp @SYMBOL_NAME(_start) 110 jmp @__start
diff --git a/arch/h8300/platform/h8300h/generic/crt0_ram.S b/arch/h8300/platform/h8300h/generic/crt0_ram.S
index 80d0e16a4499..5ab7d9c12910 100644
--- a/arch/h8300/platform/h8300h/generic/crt0_ram.S
+++ b/arch/h8300/platform/h8300h/generic/crt0_ram.S
@@ -22,10 +22,10 @@
22#define RAMEND CONFIG_BLKDEV_RESERVE_ADDRESS 22#define RAMEND CONFIG_BLKDEV_RESERVE_ADDRESS
23#endif 23#endif
24 24
25 .global SYMBOL_NAME(_start) 25 .global __start
26 .global SYMBOL_NAME(command_line) 26 .global _command_line
27 .global SYMBOL_NAME(_platform_gpio_table) 27 .global __platform_gpio_table
28 .global SYMBOL_NAME(_target_name) 28 .global __target_name
29 29
30 .h8300h 30 .h8300h
31 31
@@ -33,7 +33,7 @@
33 .file "crt0_ram.S" 33 .file "crt0_ram.S"
34 34
35 /* CPU Reset entry */ 35 /* CPU Reset entry */
36SYMBOL_NAME_LABEL(_start) 36__start:
37 mov.l #RAMEND,sp 37 mov.l #RAMEND,sp
38 ldc #0x80,ccr 38 ldc #0x80,ccr
39 39
@@ -59,13 +59,13 @@ SYMBOL_NAME_LABEL(_start)
59 59
60 /* copy kernel commandline */ 60 /* copy kernel commandline */
61 mov.l #COMMAND_START,er5 61 mov.l #COMMAND_START,er5
62 mov.l #SYMBOL_NAME(command_line),er6 62 mov.l #_command_line,er6
63 mov.w #512,r4 63 mov.w #512,r4
64 eepmov.w 64 eepmov.w
65 65
66 /* uClinux kernel start */ 66 /* uClinux kernel start */
67 ldc #0x90,ccr /* running kernel */ 67 ldc #0x90,ccr /* running kernel */
68 mov.l #SYMBOL_NAME(init_thread_union),sp 68 mov.l #_init_thread_union,sp
69 add.l #0x2000,sp 69 add.l #0x2000,sp
70 jsr @_start_kernel 70 jsr @_start_kernel
71_exit: 71_exit:
diff --git a/arch/h8300/platform/h8300h/generic/crt0_rom.S b/arch/h8300/platform/h8300h/generic/crt0_rom.S
index 120add7ca832..dda1dfa15a5e 100644
--- a/arch/h8300/platform/h8300h/generic/crt0_rom.S
+++ b/arch/h8300/platform/h8300h/generic/crt0_rom.S
@@ -12,17 +12,17 @@
12 12
13#include <asm/linkage.h> 13#include <asm/linkage.h>
14 14
15 .global SYMBOL_NAME(_start) 15 .global __start
16 .global SYMBOL_NAME(_command_line) 16 .global __command_line
17 .global SYMBOL_NAME(_platform_gpio_table) 17 .global __platform_gpio_table
18 .global SYMBOL_NAME(_target_name) 18 .global __target_name
19 19
20 .h8300h 20 .h8300h
21 .section .text 21 .section .text
22 .file "crt0_rom.S" 22 .file "crt0_rom.S"
23 23
24 /* CPU Reset entry */ 24 /* CPU Reset entry */
25SYMBOL_NAME_LABEL(_start) 25__start:
26 mov.l #__ramend,sp 26 mov.l #__ramend,sp
27 ldc #0x80,ccr 27 ldc #0x80,ccr
28 28
@@ -60,13 +60,13 @@ SYMBOL_NAME_LABEL(_start)
60 60
61 /* copy kernel commandline */ 61 /* copy kernel commandline */
62 mov.l #COMMAND_START,er5 62 mov.l #COMMAND_START,er5
63 mov.l #SYMBOL_NAME(_command_line),er6 63 mov.l #__command_line,er6
64 mov.w #512,r4 64 mov.w #512,r4
65 eepmov.w 65 eepmov.w
66 66
67 /* linux kernel start */ 67 /* linux kernel start */
68 ldc #0x90,ccr /* running kernel */ 68 ldc #0x90,ccr /* running kernel */
69 mov.l #SYMBOL_NAME(init_thread_union),sp 69 mov.l #_init_thread_union,sp
70 add.l #0x2000,sp 70 add.l #0x2000,sp
71 jsr @_start_kernel 71 jsr @_start_kernel
72_exit: 72_exit:
diff --git a/arch/h8300/platform/h8300h/h8max/crt0_ram.S b/arch/h8300/platform/h8300h/h8max/crt0_ram.S
index efcbefb91b67..6a0d4e2d9ec6 100644
--- a/arch/h8300/platform/h8300h/h8max/crt0_ram.S
+++ b/arch/h8300/platform/h8300h/h8max/crt0_ram.S
@@ -22,10 +22,10 @@
22#define RAMEND CONFIG_BLKDEV_RESERVE_ADDRESS 22#define RAMEND CONFIG_BLKDEV_RESERVE_ADDRESS
23#endif 23#endif
24 24
25 .global SYMBOL_NAME(_start) 25 .global __start
26 .global SYMBOL_NAME(command_line) 26 .global _command_line
27 .global SYMBOL_NAME(_platform_gpio_table) 27 .global __platform_gpio_table
28 .global SYMBOL_NAME(_target_name) 28 .global __target_name
29 29
30 .h8300h 30 .h8300h
31 31
@@ -33,7 +33,7 @@
33 .file "crt0_ram.S" 33 .file "crt0_ram.S"
34 34
35 /* CPU Reset entry */ 35 /* CPU Reset entry */
36SYMBOL_NAME_LABEL(_start) 36__start:
37 mov.l #RAMEND,sp 37 mov.l #RAMEND,sp
38 ldc #0x80,ccr 38 ldc #0x80,ccr
39 39
@@ -59,13 +59,13 @@ SYMBOL_NAME_LABEL(_start)
59 59
60 /* copy kernel commandline */ 60 /* copy kernel commandline */
61 mov.l #COMMAND_START,er5 61 mov.l #COMMAND_START,er5
62 mov.l #SYMBOL_NAME(command_line),er6 62 mov.l #_command_line,er6
63 mov.w #512,r4 63 mov.w #512,r4
64 eepmov.w 64 eepmov.w
65 65
66 /* uClinux kernel start */ 66 /* uClinux kernel start */
67 ldc #0x90,ccr /* running kernel */ 67 ldc #0x90,ccr /* running kernel */
68 mov.l #SYMBOL_NAME(init_thread_union),sp 68 mov.l #_init_thread_union,sp
69 add.l #0x2000,sp 69 add.l #0x2000,sp
70 jsr @_start_kernel 70 jsr @_start_kernel
71_exit: 71_exit:
@@ -107,4 +107,4 @@ __target_name:
107 .asciz "H8MAX" 107 .asciz "H8MAX"
108 108
109 .section .bootvec,"ax" 109 .section .bootvec,"ax"
110 jmp @SYMBOL_NAME(_start) 110 jmp @__start
diff --git a/arch/h8300/platform/h8s/edosk2674/crt0_ram.S b/arch/h8300/platform/h8s/edosk2674/crt0_ram.S
index d12b0debe478..5ed191b37cde 100644
--- a/arch/h8300/platform/h8s/edosk2674/crt0_ram.S
+++ b/arch/h8300/platform/h8s/edosk2674/crt0_ram.S
@@ -23,10 +23,10 @@
23#define RAMEND CONFIG_BLKDEV_RESERVE_ADDRESS 23#define RAMEND CONFIG_BLKDEV_RESERVE_ADDRESS
24#endif 24#endif
25 25
26 .global SYMBOL_NAME(_start) 26 .global __start
27 .global SYMBOL_NAME(_command_line) 27 .global __command_line
28 .global SYMBOL_NAME(_platform_gpio_table) 28 .global __platform_gpio_table
29 .global SYMBOL_NAME(_target_name) 29 .global __target_name
30 30
31 .h8300s 31 .h8300s
32 32
@@ -34,7 +34,7 @@
34 .file "crt0_ram.S" 34 .file "crt0_ram.S"
35 35
36 /* CPU Reset entry */ 36 /* CPU Reset entry */
37SYMBOL_NAME_LABEL(_start) 37__start:
38 mov.l #RAMEND,sp 38 mov.l #RAMEND,sp
39 ldc #0x80,ccr 39 ldc #0x80,ccr
40 ldc #0x00,exr 40 ldc #0x00,exr
@@ -66,13 +66,13 @@ SYMBOL_NAME_LABEL(_start)
66 66
67 /* copy kernel commandline */ 67 /* copy kernel commandline */
68 mov.l #COMMAND_START,er5 68 mov.l #COMMAND_START,er5
69 mov.l #SYMBOL_NAME(command_line),er6 69 mov.l #_command_line,er6
70 mov.w #512,r4 70 mov.w #512,r4
71 eepmov.w 71 eepmov.w
72 72
73 /* uClinux kernel start */ 73 /* uClinux kernel start */
74 ldc #0x90,ccr /* running kernel */ 74 ldc #0x90,ccr /* running kernel */
75 mov.l #SYMBOL_NAME(init_thread_union),sp 75 mov.l #_init_thread_union,sp
76 add.l #0x2000,sp 76 add.l #0x2000,sp
77 jsr @_start_kernel 77 jsr @_start_kernel
78_exit: 78_exit:
@@ -127,4 +127,4 @@ __target_name:
127 .asciz "EDOSK-2674" 127 .asciz "EDOSK-2674"
128 128
129 .section .bootvec,"ax" 129 .section .bootvec,"ax"
130 jmp @SYMBOL_NAME(_start) 130 jmp @__start
diff --git a/arch/h8300/platform/h8s/edosk2674/crt0_rom.S b/arch/h8300/platform/h8s/edosk2674/crt0_rom.S
index c03d23c6fe12..06d1d7f324ca 100644
--- a/arch/h8300/platform/h8s/edosk2674/crt0_rom.S
+++ b/arch/h8300/platform/h8s/edosk2674/crt0_rom.S
@@ -13,17 +13,17 @@
13#include <asm/linkage.h> 13#include <asm/linkage.h>
14#include <asm/regs267x.h> 14#include <asm/regs267x.h>
15 15
16 .global SYMBOL_NAME(_start) 16 .global __start
17 .global SYMBOL_NAME(_command_line) 17 .global __command_line
18 .global SYMBOL_NAME(_platform_gpio_table) 18 .global __platform_gpio_table
19 .global SYMBOL_NAME(_target_name) 19 .global __target_name
20 20
21 .h8300s 21 .h8300s
22 .section .text 22 .section .text
23 .file "crt0_rom.S" 23 .file "crt0_rom.S"
24 24
25 /* CPU Reset entry */ 25 /* CPU Reset entry */
26SYMBOL_NAME_LABEL(_start) 26__start:
27 mov.l #__ramend,sp 27 mov.l #__ramend,sp
28 ldc #0x80,ccr 28 ldc #0x80,ccr
29 ldc #0,exr 29 ldc #0,exr
@@ -82,13 +82,13 @@ SYMBOL_NAME_LABEL(_start)
82 82
83 /* copy kernel commandline */ 83 /* copy kernel commandline */
84 mov.l #COMMAND_START,er5 84 mov.l #COMMAND_START,er5
85 mov.l #SYMBOL_NAME(_command_line),er6 85 mov.l #__command_line,er6
86 mov.w #512,r4 86 mov.w #512,r4
87 eepmov.w 87 eepmov.w
88 88
89 /* linux kernel start */ 89 /* linux kernel start */
90 ldc #0x90,ccr /* running kernel */ 90 ldc #0x90,ccr /* running kernel */
91 mov.l #SYMBOL_NAME(init_thread_union),sp 91 mov.l #_init_thread_union,sp
92 add.l #0x2000,sp 92 add.l #0x2000,sp
93 jsr @_start_kernel 93 jsr @_start_kernel
94_exit: 94_exit:
diff --git a/arch/h8300/platform/h8s/generic/crt0_ram.S b/arch/h8300/platform/h8s/generic/crt0_ram.S
index b04541069976..7018915de74f 100644
--- a/arch/h8300/platform/h8s/generic/crt0_ram.S
+++ b/arch/h8300/platform/h8s/generic/crt0_ram.S
@@ -23,10 +23,10 @@
23#define RAMEND CONFIG_BLKDEV_RESERVE_ADDRESS 23#define RAMEND CONFIG_BLKDEV_RESERVE_ADDRESS
24#endif 24#endif
25 25
26 .global SYMBOL_NAME(_start) 26 .global __start
27 .global SYMBOL_NAME(_command_line) 27 .global __command_line
28 .global SYMBOL_NAME(_platform_gpio_table) 28 .global __platform_gpio_table
29 .global SYMBOL_NAME(_target_name) 29 .global __target_name
30 30
31 .h8300s 31 .h8300s
32 32
@@ -34,7 +34,7 @@
34 .file "crt0_ram.S" 34 .file "crt0_ram.S"
35 35
36 /* CPU Reset entry */ 36 /* CPU Reset entry */
37SYMBOL_NAME_LABEL(_start) 37__start:
38 mov.l #RAMEND,sp 38 mov.l #RAMEND,sp
39 ldc #0x80,ccr 39 ldc #0x80,ccr
40 ldc #0x00,exr 40 ldc #0x00,exr
@@ -63,13 +63,13 @@ SYMBOL_NAME_LABEL(_start)
63 63
64 /* copy kernel commandline */ 64 /* copy kernel commandline */
65 mov.l #COMMAND_START,er5 65 mov.l #COMMAND_START,er5
66 mov.l #SYMBOL_NAME(command_line),er6 66 mov.l #_command_line,er6
67 mov.w #512,r4 67 mov.w #512,r4
68 eepmov.w 68 eepmov.w
69 69
70 /* uClinux kernel start */ 70 /* uClinux kernel start */
71 ldc #0x90,ccr /* running kernel */ 71 ldc #0x90,ccr /* running kernel */
72 mov.l #SYMBOL_NAME(init_thread_union),sp 72 mov.l #_init_thread_union,sp
73 add.l #0x2000,sp 73 add.l #0x2000,sp
74 jsr @_start_kernel 74 jsr @_start_kernel
75_exit: 75_exit:
@@ -124,4 +124,4 @@ __target_name:
124 .asciz "generic" 124 .asciz "generic"
125 125
126 .section .bootvec,"ax" 126 .section .bootvec,"ax"
127 jmp @SYMBOL_NAME(_start) 127 jmp @__start
diff --git a/arch/h8300/platform/h8s/generic/crt0_rom.S b/arch/h8300/platform/h8s/generic/crt0_rom.S
index 95b6f2898f52..623ba7828193 100644
--- a/arch/h8300/platform/h8s/generic/crt0_rom.S
+++ b/arch/h8300/platform/h8s/generic/crt0_rom.S
@@ -13,17 +13,17 @@
13#include <asm/linkage.h> 13#include <asm/linkage.h>
14#include <asm/regs267x.h> 14#include <asm/regs267x.h>
15 15
16 .global SYMBOL_NAME(_start) 16 .global __start
17 .global SYMBOL_NAME(_command_line) 17 .global __command_line
18 .global SYMBOL_NAME(_platform_gpio_table) 18 .global __platform_gpio_table
19 .global SYMBOL_NAME(_target_name) 19 .global __target_name
20 20
21 .h8300s 21 .h8300s
22 .section .text 22 .section .text
23 .file "crt0_rom.S" 23 .file "crt0_rom.S"
24 24
25 /* CPU Reset entry */ 25 /* CPU Reset entry */
26SYMBOL_NAME_LABEL(_start) 26__start:
27 mov.l #__ramend,sp 27 mov.l #__ramend,sp
28 ldc #0x80,ccr 28 ldc #0x80,ccr
29 ldc #0,exr 29 ldc #0,exr
@@ -61,7 +61,7 @@ SYMBOL_NAME_LABEL(_start)
61 61
62 /* linux kernel start */ 62 /* linux kernel start */
63 ldc #0x90,ccr /* running kernel */ 63 ldc #0x90,ccr /* running kernel */
64 mov.l #SYMBOL_NAME(init_thread_union),sp 64 mov.l #_init_thread_union,sp
65 add.l #0x2000,sp 65 add.l #0x2000,sp
66 jsr @_start_kernel 66 jsr @_start_kernel
67_exit: 67_exit: