2 * linux/arch/h8300/platform/h8300h/h8max/crt0_ram.S
4 * Yoshinori Sato <ysato@users.sourceforge.jp>
6 * Platform depend startup for uClinux-2.4.x
7 * Target Archtecture: H8MAX
13 #include <linux/config.h>
14 #include <asm/linkage.h>
16 .global SYMBOL_NAME(_start)
17 .global SYMBOL_NAME(command_line)
18 .global SYMBOL_NAME(_platform_gpio_table)
19 .global SYMBOL_NAME(_target_name)
27 SYMBOL_NAME_LABEL(_start)
31 /* Peripheral Setup */
46 /* copy kernel commandline */
47 mov.l #COMMAND_START,er5
48 mov.l #SYMBOL_NAME(command_line),er6
52 /* RAM Interrupt Vector Table Setup */
53 #if defined(CONFIG_GDB_DEBUG)
54 mov.l @SYMBOL_NAME(interrupt_redirect_table)+11*4,er0
56 mov.l #SYMBOL_NAME(_vector_lma),er5
57 mov.l #SYMBOL_NAME(interrupt_redirect_table),er6
60 #if defined(CONFIG_GDB_DEBUG)
61 mov.l er0,@SYMBOL_NAME(interrupt_redirect_table)+11*4
64 /* uClinux kernel start */
65 ldc #0x90,ccr /* running kernel */
66 mov.l #SYMBOL_NAME(init_task_union),sp
67 mov.l sp,@SYMBOL_NAME(_current_task)
76 /* I/O port assign information */
77 __platform_gpio_table:
108 .section .bootvec,"ax"
109 jmp @SYMBOL_NAME(_start)