2 * linux/arch/h8300/platform/h8s/edosk2674/crt0_ram.S
4 * Yoshinori Sato <ysato@users.sourceforge.jp>
6 * Platform depend startup
7 * Target Archtecture: EDOSK-2674
13 #include <linux/config.h>
14 #include <asm/linkage.h>
15 #include <asm/regs267x.h>
17 #if !defined(CONFIG_BLKDEV_RESERVE)
18 #if defined(CONFIG_GDB_DEBUG)
19 #define RAMEND (__ramend - 0xc000)
21 #define RAMEND __ramend
24 #define RAMEND CONFIG_BLKDEV_RESERVE_ADDRESS
27 .global SYMBOL_NAME(_start)
28 .global SYMBOL_NAME(_command_line)
29 .global SYMBOL_NAME(_platform_gpio_table)
30 .global SYMBOL_NAME(_target_name)
38 SYMBOL_NAME_LABEL(_start)
43 /* Peripheral Setup */
44 bclr #4,@INTCR:8 /* interrupt mode 2 */
47 bset #1,@ISCRL+1:16 /* IRQ0 Positive Edge */
50 #if defined(CONFIG_MTD_UCLINUX)
51 /* move romfs image */
68 /* copy kernel commandline */
69 mov.l #COMMAND_START,er5
70 mov.l #SYMBOL_NAME(command_line),er6
74 /* uClinux kernel start */
75 ldc #0x90,ccr /* running kernel */
76 mov.l #SYMBOL_NAME(init_thread_union),sp
85 /* I/O port assign information */
86 __platform_gpio_table:
130 .section .bootvec,"ax"
131 jmp @SYMBOL_NAME(_start)