1
2
3
4
5
6
7
8
9
10
11#define ASSEMBLY
12
13#include <asm/linkage.h>
14
15
16
17#define RAMEND (__ramend - 0xc000)
18#else
19#define RAMEND __ramend
20#endif
21#else
22#define RAMEND CONFIG_BLKDEV_RESERVE_ADDRESS
23#endif
24
25 .global SYMBOL_NAME(_start)
26 .global SYMBOL_NAME(command_line)
27 .global SYMBOL_NAME(_platform_gpio_table)
28 .global SYMBOL_NAME(_target_name)
29
30 .h8300h
31
32 .section .text
33 .file "crt0_ram.S"
34
35
36SYMBOL_NAME_LABEL(_start)
37 mov.l
38 ldc
39
40
41
42
43
44 jsr @__move_romfs
45#endif
46
47
48 mov.l
49 mov.l
50 sub.l er5,er4
51 shlr er4
52 shlr er4
53 sub.l er0,er0
541:
55 mov.l er0,@er5
56 adds
57 dec.l
58 bne 1b
59
60
61 mov.l
62 mov.l
63 mov.w
64 eepmov.w
65
66
67 ldc
68 mov.l
69 add.l
70 jsr @_start_kernel
71_exit:
72
73 jmp _exit
74
75 rts
76
77
78__platform_gpio_table:
79 mov.l
80 rts
81
82gpio_table:
83 ;; P1DDR
84 .byte 0xff,0xff
85 ;; P2DDR
86 .byte 0xff,0xff
87 ;; P3DDR
88 .byte 0x00,0x00
89 ;; P4DDR
90 .byte 0x00,0x00
91 ;; P5DDR
92 .byte 0x01,0x01
93 ;; P6DDR
94 .byte 0xf6,0xf6
95 ;; dummy
96 .byte 0x00,0x00
97 ;; P8DDR
98 .byte 0xee,0xee
99 ;; P9DDR
100 .byte 0x00,0x00
101 ;; PADDR
102 .byte 0x00,0x00
103 ;; PBDDR
104 .byte 0x30,0x30
105
106__target_name:
107 .asciz "H8MAX"
108
109 .section .bootvec,"ax"
110 jmp @SYMBOL_NAME(_start)
111