diff options
author | Luis Alves <ljalvs@gmail.com> | 2012-12-04 18:04:49 -0500 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2012-12-04 19:48:47 -0500 |
commit | 99e083747df366eb4689a550c4344bae63082de8 (patch) | |
tree | b043ac0eecbbb27dddc72605cfd560c7cae2b019 /arch/m68k | |
parent | b69f0859dc8e633c5d8c06845811588fe17e68b3 (diff) |
m68knommu: platform code merge for 68000 core cpus
This patch merges all 68000 core cpus into one directory.
There is a lot of common code in the 68328, 68EZ328 and 68VZ328 directories.
This will also facilitate easy development of support for original stand
alone MC68000 CPU machines.
Signed-off-by: Luis Alves <ljalvs@gmail.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/Makefile | 6 | ||||
-rw-r--r-- | arch/m68k/platform/68000/Makefile | 18 | ||||
-rw-r--r-- | arch/m68k/platform/68000/bootlogo-vz.h (renamed from arch/m68k/platform/68VZ328/bootlogo.h) | 0 | ||||
-rw-r--r-- | arch/m68k/platform/68000/bootlogo.h (renamed from arch/m68k/platform/68328/bootlogo.h) | 0 | ||||
-rw-r--r-- | arch/m68k/platform/68000/entry.S (renamed from arch/m68k/platform/68328/entry.S) | 0 | ||||
-rw-r--r-- | arch/m68k/platform/68000/head.S | 240 | ||||
-rw-r--r-- | arch/m68k/platform/68000/ints.c (renamed from arch/m68k/platform/68328/ints.c) | 2 | ||||
-rw-r--r-- | arch/m68k/platform/68000/m68328.c (renamed from arch/m68k/platform/68328/config.c) | 2 | ||||
-rw-r--r-- | arch/m68k/platform/68000/m68EZ328.c (renamed from arch/m68k/platform/68EZ328/config.c) | 2 | ||||
-rw-r--r-- | arch/m68k/platform/68000/m68VZ328.c (renamed from arch/m68k/platform/68VZ328/config.c) | 4 | ||||
-rw-r--r-- | arch/m68k/platform/68000/romvec.S (renamed from arch/m68k/platform/68328/romvec.S) | 2 | ||||
-rw-r--r-- | arch/m68k/platform/68000/timers.c (renamed from arch/m68k/platform/68328/timers.c) | 2 | ||||
-rw-r--r-- | arch/m68k/platform/68328/Makefile | 21 | ||||
-rw-r--r-- | arch/m68k/platform/68328/head-de2.S | 128 | ||||
-rw-r--r-- | arch/m68k/platform/68328/head-pilot.S | 207 | ||||
-rw-r--r-- | arch/m68k/platform/68328/head-ram.S | 141 | ||||
-rw-r--r-- | arch/m68k/platform/68328/head-rom.S | 105 | ||||
-rw-r--r-- | arch/m68k/platform/68EZ328/Makefile | 5 | ||||
-rw-r--r-- | arch/m68k/platform/68VZ328/Makefile | 5 |
19 files changed, 267 insertions, 623 deletions
diff --git a/arch/m68k/Makefile b/arch/m68k/Makefile index 7636751f2f87..2f02acfb8edf 100644 --- a/arch/m68k/Makefile +++ b/arch/m68k/Makefile | |||
@@ -92,7 +92,7 @@ endif | |||
92 | head-y := arch/m68k/kernel/head.o | 92 | head-y := arch/m68k/kernel/head.o |
93 | head-$(CONFIG_SUN3) := arch/m68k/kernel/sun3-head.o | 93 | head-$(CONFIG_SUN3) := arch/m68k/kernel/sun3-head.o |
94 | head-$(CONFIG_M68360) := arch/m68k/platform/68360/head.o | 94 | head-$(CONFIG_M68360) := arch/m68k/platform/68360/head.o |
95 | head-$(CONFIG_M68000) := arch/m68k/platform/68328/head.o | 95 | head-$(CONFIG_M68000) := arch/m68k/platform/68000/head.o |
96 | head-$(CONFIG_COLDFIRE) := arch/m68k/platform/coldfire/head.o | 96 | head-$(CONFIG_COLDFIRE) := arch/m68k/platform/coldfire/head.o |
97 | 97 | ||
98 | core-y += arch/m68k/kernel/ arch/m68k/mm/ | 98 | core-y += arch/m68k/kernel/ arch/m68k/mm/ |
@@ -114,9 +114,7 @@ core-$(CONFIG_M68040) += arch/m68k/fpsp040/ | |||
114 | core-$(CONFIG_M68060) += arch/m68k/ifpsp060/ | 114 | core-$(CONFIG_M68060) += arch/m68k/ifpsp060/ |
115 | core-$(CONFIG_M68KFPU_EMU) += arch/m68k/math-emu/ | 115 | core-$(CONFIG_M68KFPU_EMU) += arch/m68k/math-emu/ |
116 | core-$(CONFIG_M68360) += arch/m68k/platform/68360/ | 116 | core-$(CONFIG_M68360) += arch/m68k/platform/68360/ |
117 | core-$(CONFIG_M68000) += arch/m68k/platform/68328/ | 117 | core-$(CONFIG_M68000) += arch/m68k/platform/68000/ |
118 | core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ | ||
119 | core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ | ||
120 | core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ | 118 | core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ |
121 | 119 | ||
122 | 120 | ||
diff --git a/arch/m68k/platform/68000/Makefile b/arch/m68k/platform/68000/Makefile new file mode 100644 index 000000000000..1eab70c7194b --- /dev/null +++ b/arch/m68k/platform/68000/Makefile | |||
@@ -0,0 +1,18 @@ | |||
1 | ################################################## | ||
2 | # | ||
3 | # Makefile for 68000 core based cpus | ||
4 | # | ||
5 | # 2012.10.21, Luis Alves <ljalvs@gmail.com> | ||
6 | # Merged all 68000 based cpu's config | ||
7 | # files into a single directory. | ||
8 | # | ||
9 | |||
10 | # 68328, 68EZ328, 68VZ328 | ||
11 | |||
12 | obj-y += entry.o ints.o timers.o | ||
13 | obj-$(CONFIG_M68328) += m68328.o | ||
14 | obj-$(CONFIG_M68EZ328) += m68EZ328.o | ||
15 | obj-$(CONFIG_M68VZ328) += m68VZ328.o | ||
16 | obj-$(CONFIG_ROM) += romvec.o | ||
17 | |||
18 | extra-y := head.o | ||
diff --git a/arch/m68k/platform/68VZ328/bootlogo.h b/arch/m68k/platform/68000/bootlogo-vz.h index b38e2b255142..b38e2b255142 100644 --- a/arch/m68k/platform/68VZ328/bootlogo.h +++ b/arch/m68k/platform/68000/bootlogo-vz.h | |||
diff --git a/arch/m68k/platform/68328/bootlogo.h b/arch/m68k/platform/68000/bootlogo.h index b896c933fafc..b896c933fafc 100644 --- a/arch/m68k/platform/68328/bootlogo.h +++ b/arch/m68k/platform/68000/bootlogo.h | |||
diff --git a/arch/m68k/platform/68328/entry.S b/arch/m68k/platform/68000/entry.S index 7f91c2fde509..7f91c2fde509 100644 --- a/arch/m68k/platform/68328/entry.S +++ b/arch/m68k/platform/68000/entry.S | |||
diff --git a/arch/m68k/platform/68000/head.S b/arch/m68k/platform/68000/head.S new file mode 100644 index 000000000000..536ef9616dad --- /dev/null +++ b/arch/m68k/platform/68000/head.S | |||
@@ -0,0 +1,240 @@ | |||
1 | /* | ||
2 | * head.S - Common startup code for 68000 core based CPU's | ||
3 | * | ||
4 | * 2012.10.21, Luis Alves <ljalvs@gmail.com>, Single head.S file for all | ||
5 | * 68000 core based CPU's. Based on the sources from: | ||
6 | * Coldfire by Greg Ungerer <gerg@snapgear.com> | ||
7 | * 68328 by D. Jeff Dionne <jeff@ryeham.ee.ryerson.ca>, | ||
8 | * Kenneth Albanowski <kjahds@kjahds.com>, | ||
9 | * The Silver Hammer Group, Ltd. | ||
10 | * | ||
11 | */ | ||
12 | |||
13 | #include <linux/linkage.h> | ||
14 | #include <linux/init.h> | ||
15 | #include <asm/asm-offsets.h> | ||
16 | #include <asm/thread_info.h> | ||
17 | |||
18 | |||
19 | /***************************************************************************** | ||
20 | * UCSIMM and UCDIMM use CONFIG_MEMORY_RESERVE to reserve some RAM | ||
21 | *****************************************************************************/ | ||
22 | #ifdef CONFIG_MEMORY_RESERVE | ||
23 | #define RAMEND (CONFIG_RAMBASE+CONFIG_RAMSIZE)-(CONFIG_MEMORY_RESERVE*0x100000) | ||
24 | #else | ||
25 | #define RAMEND (CONFIG_RAMBASE+CONFIG_RAMSIZE) | ||
26 | #endif | ||
27 | /*****************************************************************************/ | ||
28 | |||
29 | .global _start | ||
30 | .global _rambase | ||
31 | .global _ramvec | ||
32 | .global _ramstart | ||
33 | .global _ramend | ||
34 | |||
35 | #if defined(CONFIG_PILOT) || defined(CONFIG_INIT_LCD) | ||
36 | .global bootlogo_bits | ||
37 | #endif | ||
38 | |||
39 | /* Defining DEBUG_HEAD_CODE, serial port in 68x328 is inited */ | ||
40 | /* #define DEBUG_HEAD_CODE */ | ||
41 | #undef DEBUG_HEAD_CODE | ||
42 | |||
43 | .data | ||
44 | |||
45 | /***************************************************************************** | ||
46 | * RAM setup pointers. Used by the kernel to determine RAM location and size. | ||
47 | *****************************************************************************/ | ||
48 | |||
49 | _rambase: | ||
50 | .long 0 | ||
51 | _ramvec: | ||
52 | .long 0 | ||
53 | _ramstart: | ||
54 | .long 0 | ||
55 | _ramend: | ||
56 | .long 0 | ||
57 | |||
58 | __HEAD | ||
59 | |||
60 | /***************************************************************************** | ||
61 | * Entry point, where all begins! | ||
62 | *****************************************************************************/ | ||
63 | |||
64 | _start: | ||
65 | |||
66 | /* Pilot need this specific signature at the start of ROM */ | ||
67 | #ifdef CONFIG_PILOT | ||
68 | .byte 0x4e, 0xfa, 0x00, 0x0a /* bra opcode (jmp 10 bytes) */ | ||
69 | .byte 'b', 'o', 'o', 't' | ||
70 | .word 10000 | ||
71 | nop | ||
72 | moveq #0, %d0 | ||
73 | movew %d0, 0xfffff618 /* Watchdog off */ | ||
74 | movel #0x00011f07, 0xfffff114 /* CS A1 Mask */ | ||
75 | #endif /* CONFIG_PILOT */ | ||
76 | |||
77 | movew #0x2700, %sr /* disable all interrupts */ | ||
78 | |||
79 | /***************************************************************************** | ||
80 | * Setup PLL and wait for it to settle (in 68x328 cpu's). | ||
81 | * Also, if enabled, init serial port. | ||
82 | *****************************************************************************/ | ||
83 | #if defined(CONFIG_M68328) || \ | ||
84 | defined(CONFIG_M68EZ328) || \ | ||
85 | defined(CONFIG_M68VZ328) | ||
86 | |||
87 | /* Serial port setup. Should only be needed if debugging this startup code. */ | ||
88 | #ifdef DEBUG_HEAD_CODE | ||
89 | movew #0x0800, 0xfffff906 /* Ignore CTS */ | ||
90 | movew #0x010b, 0xfffff902 /* BAUD to 9600 */ | ||
91 | movew #0xe100, 0xfffff900 /* enable */ | ||
92 | #endif /* DEBUG_HEAD */ | ||
93 | |||
94 | #ifdef CONFIG_PILOT | ||
95 | movew #0x2410, 0xfffff200 /* PLLCR */ | ||
96 | #else | ||
97 | movew #0x2400, 0xfffff200 /* PLLCR */ | ||
98 | #endif | ||
99 | movew #0x0123, 0xfffff202 /* PLLFSR */ | ||
100 | moveq #0, %d0 | ||
101 | movew #16384, %d0 /* PLL settle wait loop */ | ||
102 | _pll_settle: | ||
103 | subw #1, %d0 | ||
104 | bne _pll_settle | ||
105 | #endif /* CONFIG_M68x328 */ | ||
106 | |||
107 | |||
108 | /***************************************************************************** | ||
109 | * If running kernel from ROM some specific initialization has to be done. | ||
110 | * (Assuming that everything is already init'ed when running from RAM) | ||
111 | *****************************************************************************/ | ||
112 | #ifdef CONFIG_ROMKERNEL | ||
113 | |||
114 | /***************************************************************************** | ||
115 | * Init chip registers (uCsimm specific) | ||
116 | *****************************************************************************/ | ||
117 | #ifdef CONFIG_UCSIMM | ||
118 | moveb #0x00, 0xfffffb0b /* Watchdog off */ | ||
119 | moveb #0x10, 0xfffff000 /* SCR */ | ||
120 | moveb #0x00, 0xfffff40b /* enable chip select */ | ||
121 | moveb #0x00, 0xfffff423 /* enable /DWE */ | ||
122 | moveb #0x08, 0xfffffd0d /* disable hardmap */ | ||
123 | moveb #0x07, 0xfffffd0e /* level 7 interrupt clear */ | ||
124 | movew #0x8600, 0xfffff100 /* FLASH at 0x10c00000 */ | ||
125 | movew #0x018b, 0xfffff110 /* 2Meg, enable, 0ws */ | ||
126 | movew #0x8f00, 0xfffffc00 /* DRAM configuration */ | ||
127 | movew #0x9667, 0xfffffc02 /* DRAM control */ | ||
128 | movew #0x0000, 0xfffff106 /* DRAM at 0x00000000 */ | ||
129 | movew #0x068f, 0xfffff116 /* 8Meg, enable, 0ws */ | ||
130 | moveb #0x40, 0xfffff300 /* IVR */ | ||
131 | movel #0x007FFFFF, %d0 /* IMR */ | ||
132 | movel %d0, 0xfffff304 | ||
133 | moveb 0xfffff42b, %d0 | ||
134 | andb #0xe0, %d0 | ||
135 | moveb %d0, 0xfffff42b | ||
136 | #endif | ||
137 | |||
138 | /***************************************************************************** | ||
139 | * Init LCD controller. | ||
140 | * (Assuming that LCD controller is already init'ed when running from RAM) | ||
141 | *****************************************************************************/ | ||
142 | #ifdef CONFIG_INIT_LCD | ||
143 | #ifdef CONFIG_PILOT | ||
144 | moveb #0, 0xfffffA27 /* LCKCON */ | ||
145 | movel #_start, 0xfffffA00 /* LSSA */ | ||
146 | moveb #0xa, 0xfffffA05 /* LVPW */ | ||
147 | movew #0x9f, 0xFFFFFa08 /* LXMAX */ | ||
148 | movew #0x9f, 0xFFFFFa0a /* LYMAX */ | ||
149 | moveb #9, 0xfffffa29 /* LBAR */ | ||
150 | moveb #0, 0xfffffa25 /* LPXCD */ | ||
151 | moveb #0x04, 0xFFFFFa20 /* LPICF */ | ||
152 | moveb #0x58, 0xfffffA27 /* LCKCON */ | ||
153 | moveb #0x85, 0xfffff429 /* PFDATA */ | ||
154 | moveb #0xd8, 0xfffffA27 /* LCKCON */ | ||
155 | moveb #0xc5, 0xfffff429 /* PFDATA */ | ||
156 | moveb #0xd5, 0xfffff429 /* PFDATA */ | ||
157 | movel #bootlogo_bits, 0xFFFFFA00 /* LSSA */ | ||
158 | moveb #10, 0xFFFFFA05 /* LVPW */ | ||
159 | movew #160, 0xFFFFFA08 /* LXMAX */ | ||
160 | movew #160, 0xFFFFFA0A /* LYMAX */ | ||
161 | #else /* CONFIG_PILOT */ | ||
162 | movel #bootlogo_bits, 0xfffffA00 /* LSSA */ | ||
163 | moveb #0x28, 0xfffffA05 /* LVPW */ | ||
164 | movew #0x280, 0xFFFFFa08 /* LXMAX */ | ||
165 | movew #0x1df, 0xFFFFFa0a /* LYMAX */ | ||
166 | moveb #0, 0xfffffa29 /* LBAR */ | ||
167 | moveb #0, 0xfffffa25 /* LPXCD */ | ||
168 | moveb #0x08, 0xFFFFFa20 /* LPICF */ | ||
169 | moveb #0x01, 0xFFFFFA21 /* -ve pol */ | ||
170 | moveb #0x81, 0xfffffA27 /* LCKCON */ | ||
171 | movew #0xff00, 0xfffff412 /* LCD pins */ | ||
172 | #endif /* CONFIG_PILOT */ | ||
173 | #endif /* CONFIG_INIT_LCD */ | ||
174 | |||
175 | /***************************************************************************** | ||
176 | * Kernel is running from FLASH/ROM (XIP) | ||
177 | * Copy init text & data to RAM | ||
178 | *****************************************************************************/ | ||
179 | moveal #_etext, %a0 | ||
180 | moveal #_sdata, %a1 | ||
181 | moveal #__bss_start, %a2 | ||
182 | _copy_initmem: | ||
183 | movel %a0@+, %a1@+ | ||
184 | cmpal %a1, %a2 | ||
185 | bhi _copy_initmem | ||
186 | #endif /* CONFIG_ROMKERNEL */ | ||
187 | |||
188 | /***************************************************************************** | ||
189 | * Setup basic memory information for kernel | ||
190 | *****************************************************************************/ | ||
191 | movel #CONFIG_VECTORBASE,_ramvec /* set vector base location */ | ||
192 | movel #CONFIG_RAMBASE,_rambase /* set the base of RAM */ | ||
193 | movel #RAMEND, _ramend /* set end ram addr */ | ||
194 | lea __bss_stop,%a1 | ||
195 | movel %a1,_ramstart | ||
196 | |||
197 | /***************************************************************************** | ||
198 | * If the kernel is in RAM, move romfs to right above bss and | ||
199 | * adjust _ramstart to where romfs ends. | ||
200 | * | ||
201 | * (Do this only if CONFIG_MTD_UCLINUX is true) | ||
202 | *****************************************************************************/ | ||
203 | |||
204 | #if defined(CONFIG_ROMFS_FS) && defined(CONFIG_RAMKERNEL) && \ | ||
205 | defined(CONFIG_MTD_UCLINUX) | ||
206 | lea __bss_start, %a0 /* get start of bss */ | ||
207 | lea __bss_stop, %a1 /* set up destination */ | ||
208 | movel %a0, %a2 /* copy of bss start */ | ||
209 | |||
210 | movel 8(%a0), %d0 /* get size of ROMFS */ | ||
211 | addql #8, %d0 /* allow for rounding */ | ||
212 | andl #0xfffffffc, %d0 /* whole words */ | ||
213 | |||
214 | addl %d0, %a0 /* copy from end */ | ||
215 | addl %d0, %a1 /* copy from end */ | ||
216 | movel %a1, _ramstart /* set start of ram */ | ||
217 | _copy_romfs: | ||
218 | movel -(%a0), -(%a1) /* copy dword */ | ||
219 | cmpl %a0, %a2 /* check if at end */ | ||
220 | bne _copy_romfs | ||
221 | #endif /* CONFIG_ROMFS_FS && CONFIG_RAMKERNEL && CONFIG_MTD_UCLINUX */ | ||
222 | |||
223 | /***************************************************************************** | ||
224 | * Clear bss region | ||
225 | *****************************************************************************/ | ||
226 | lea __bss_start, %a0 /* get start of bss */ | ||
227 | lea __bss_stop, %a1 /* get end of bss */ | ||
228 | _clear_bss: | ||
229 | movel #0, (%a0)+ /* clear each word */ | ||
230 | cmpl %a0, %a1 /* check if at end */ | ||
231 | bne _clear_bss | ||
232 | |||
233 | /***************************************************************************** | ||
234 | * Load the current task pointer and stack. | ||
235 | *****************************************************************************/ | ||
236 | lea init_thread_union,%a0 | ||
237 | lea THREAD_SIZE(%a0),%sp | ||
238 | jsr start_kernel /* start Linux kernel */ | ||
239 | _exit: | ||
240 | jmp _exit /* should never get here */ | ||
diff --git a/arch/m68k/platform/68328/ints.c b/arch/m68k/platform/68000/ints.c index b3810febb3e3..cda49b12d7be 100644 --- a/arch/m68k/platform/68328/ints.c +++ b/arch/m68k/platform/68000/ints.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/m68knommu/platform/68328/ints.c | 2 | * ints.c - Generic interrupt controller support |
3 | * | 3 | * |
4 | * This file is subject to the terms and conditions of the GNU General Public | 4 | * This file is subject to the terms and conditions of the GNU General Public |
5 | * License. See the file COPYING in the main directory of this archive | 5 | * License. See the file COPYING in the main directory of this archive |
diff --git a/arch/m68k/platform/68328/config.c b/arch/m68k/platform/68000/m68328.c index 8c20e891e981..a86eb66835aa 100644 --- a/arch/m68k/platform/68328/config.c +++ b/arch/m68k/platform/68000/m68328.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /***************************************************************************/ | 1 | /***************************************************************************/ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * linux/arch/m68knommu/platform/68328/config.c | 4 | * m68328.c - 68328 specific config |
5 | * | 5 | * |
6 | * Copyright (C) 1993 Hamish Macdonald | 6 | * Copyright (C) 1993 Hamish Macdonald |
7 | * Copyright (C) 1999 D. Jeff Dionne | 7 | * Copyright (C) 1999 D. Jeff Dionne |
diff --git a/arch/m68k/platform/68EZ328/config.c b/arch/m68k/platform/68000/m68EZ328.c index 4f158d551f02..a6eb72d75008 100644 --- a/arch/m68k/platform/68EZ328/config.c +++ b/arch/m68k/platform/68000/m68EZ328.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /***************************************************************************/ | 1 | /***************************************************************************/ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * linux/arch/m68knommu/platform/68EZ328/config.c | 4 | * m68EZ328.c - 68EZ328 specific config |
5 | * | 5 | * |
6 | * Copyright (C) 1993 Hamish Macdonald | 6 | * Copyright (C) 1993 Hamish Macdonald |
7 | * Copyright (C) 1999 D. Jeff Dionne | 7 | * Copyright (C) 1999 D. Jeff Dionne |
diff --git a/arch/m68k/platform/68VZ328/config.c b/arch/m68k/platform/68000/m68VZ328.c index 2ed8dc305e42..eb6964fbec09 100644 --- a/arch/m68k/platform/68VZ328/config.c +++ b/arch/m68k/platform/68000/m68VZ328.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /***************************************************************************/ | 1 | /***************************************************************************/ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * linux/arch/m68knommu/platform/68VZ328/config.c | 4 | * m68VZ328.c - 68VZ328 specific config |
5 | * | 5 | * |
6 | * Copyright (C) 1993 Hamish Macdonald | 6 | * Copyright (C) 1993 Hamish Macdonald |
7 | * Copyright (C) 1999 D. Jeff Dionne | 7 | * Copyright (C) 1999 D. Jeff Dionne |
@@ -28,7 +28,7 @@ | |||
28 | #include <asm/bootstd.h> | 28 | #include <asm/bootstd.h> |
29 | 29 | ||
30 | #ifdef CONFIG_INIT_LCD | 30 | #ifdef CONFIG_INIT_LCD |
31 | #include "bootlogo.h" | 31 | #include "bootlogo-vz.h" |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | /***************************************************************************/ | 34 | /***************************************************************************/ |
diff --git a/arch/m68k/platform/68328/romvec.S b/arch/m68k/platform/68000/romvec.S index 31084466eae8..15c70cd6453f 100644 --- a/arch/m68k/platform/68328/romvec.S +++ b/arch/m68k/platform/68000/romvec.S | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/m68knommu/platform/68328/romvec.S | 2 | * romvec.S - Vector table for 68000 cpus |
3 | * | 3 | * |
4 | * This file is subject to the terms and conditions of the GNU General Public | 4 | * This file is subject to the terms and conditions of the GNU General Public |
5 | * License. See the file COPYING in the main directory of this archive | 5 | * License. See the file COPYING in the main directory of this archive |
diff --git a/arch/m68k/platform/68328/timers.c b/arch/m68k/platform/68000/timers.c index f4dc9b295609..ec30acbfe6db 100644 --- a/arch/m68k/platform/68328/timers.c +++ b/arch/m68k/platform/68000/timers.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /***************************************************************************/ | 1 | /***************************************************************************/ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * linux/arch/m68knommu/platform/68328/timers.c | 4 | * timers.c - Generic hardware timer support. |
5 | * | 5 | * |
6 | * Copyright (C) 1993 Hamish Macdonald | 6 | * Copyright (C) 1993 Hamish Macdonald |
7 | * Copyright (C) 1999 D. Jeff Dionne | 7 | * Copyright (C) 1999 D. Jeff Dionne |
diff --git a/arch/m68k/platform/68328/Makefile b/arch/m68k/platform/68328/Makefile deleted file mode 100644 index ee61bf84d4a0..000000000000 --- a/arch/m68k/platform/68328/Makefile +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | # | ||
2 | # Makefile for arch/m68knommu/platform/68328. | ||
3 | # | ||
4 | |||
5 | model-y := ram | ||
6 | model-$(CONFIG_ROMKERNEL) := rom | ||
7 | |||
8 | head-y = head-$(model-y).o | ||
9 | head-$(CONFIG_PILOT) = head-pilot.o | ||
10 | head-$(CONFIG_DRAGEN2) = head-de2.o | ||
11 | |||
12 | obj-y += entry.o ints.o timers.o | ||
13 | obj-$(CONFIG_M68328) += config.o | ||
14 | obj-$(CONFIG_ROM) += romvec.o | ||
15 | |||
16 | extra-y := head.o | ||
17 | |||
18 | $(obj)/head.o: $(obj)/$(head-y) | ||
19 | ln -sf $(head-y) $(obj)/head.o | ||
20 | |||
21 | clean-files := $(obj)/head.o $(head-y) | ||
diff --git a/arch/m68k/platform/68328/head-de2.S b/arch/m68k/platform/68328/head-de2.S deleted file mode 100644 index 537d3245b539..000000000000 --- a/arch/m68k/platform/68328/head-de2.S +++ /dev/null | |||
@@ -1,128 +0,0 @@ | |||
1 | |||
2 | #define MEM_END 0x00800000 /* Memory size 8Mb */ | ||
3 | |||
4 | #undef CRT_DEBUG | ||
5 | |||
6 | .macro PUTC CHAR | ||
7 | #ifdef CRT_DEBUG | ||
8 | moveq #\CHAR, %d7 | ||
9 | jsr putc | ||
10 | #endif | ||
11 | .endm | ||
12 | |||
13 | .global _start | ||
14 | .global _rambase | ||
15 | .global _ramvec | ||
16 | .global _ramstart | ||
17 | .global _ramend | ||
18 | |||
19 | .data | ||
20 | |||
21 | /* | ||
22 | * Set up the usable of RAM stuff | ||
23 | */ | ||
24 | _rambase: | ||
25 | .long 0 | ||
26 | _ramvec: | ||
27 | .long 0 | ||
28 | _ramstart: | ||
29 | .long 0 | ||
30 | _ramend: | ||
31 | .long 0 | ||
32 | |||
33 | .text | ||
34 | |||
35 | _start: | ||
36 | |||
37 | /* | ||
38 | * Setup initial stack | ||
39 | */ | ||
40 | /* disable all interrupts */ | ||
41 | movew #0x2700, %sr | ||
42 | movel #-1, 0xfffff304 | ||
43 | movel #MEM_END-4, %sp | ||
44 | |||
45 | PUTC '\r' | ||
46 | PUTC '\n' | ||
47 | PUTC 'A' | ||
48 | PUTC 'B' | ||
49 | |||
50 | /* | ||
51 | * Determine end of RAM | ||
52 | */ | ||
53 | |||
54 | movel #MEM_END, %a0 | ||
55 | movel %a0, _ramend | ||
56 | |||
57 | PUTC 'C' | ||
58 | |||
59 | /* | ||
60 | * Move ROM filesystem above bss :-) | ||
61 | */ | ||
62 | |||
63 | moveal #__bss_start, %a0 /* romfs at the start of bss */ | ||
64 | moveal #__bss_stop, %a1 /* Set up destination */ | ||
65 | movel %a0, %a2 /* Copy of bss start */ | ||
66 | |||
67 | movel 8(%a0), %d1 /* Get size of ROMFS */ | ||
68 | addql #8, %d1 /* Allow for rounding */ | ||
69 | andl #0xfffffffc, %d1 /* Whole words */ | ||
70 | |||
71 | addl %d1, %a0 /* Copy from end */ | ||
72 | addl %d1, %a1 /* Copy from end */ | ||
73 | movel %a1, _ramstart /* Set start of ram */ | ||
74 | |||
75 | 1: | ||
76 | movel -(%a0), %d0 /* Copy dword */ | ||
77 | movel %d0, -(%a1) | ||
78 | cmpl %a0, %a2 /* Check if at end */ | ||
79 | bne 1b | ||
80 | |||
81 | PUTC 'D' | ||
82 | |||
83 | /* | ||
84 | * Initialize BSS segment to 0 | ||
85 | */ | ||
86 | |||
87 | lea __bss_start, %a0 | ||
88 | lea __bss_stop, %a1 | ||
89 | |||
90 | /* Copy 0 to %a0 until %a0 == %a1 */ | ||
91 | 2: cmpal %a0, %a1 | ||
92 | beq 1f | ||
93 | clrl (%a0)+ | ||
94 | bra 2b | ||
95 | 1: | ||
96 | |||
97 | PUTC 'E' | ||
98 | |||
99 | /* | ||
100 | * Load the current task pointer and stack | ||
101 | */ | ||
102 | |||
103 | lea init_thread_union, %a0 | ||
104 | lea 0x2000(%a0), %sp | ||
105 | |||
106 | PUTC 'F' | ||
107 | PUTC '\r' | ||
108 | PUTC '\n' | ||
109 | |||
110 | /* | ||
111 | * Go | ||
112 | */ | ||
113 | |||
114 | jmp start_kernel | ||
115 | |||
116 | /* | ||
117 | * Local functions | ||
118 | */ | ||
119 | |||
120 | #ifdef CRT_DEBUG | ||
121 | putc: | ||
122 | moveb %d7, 0xfffff907 | ||
123 | 1: | ||
124 | movew 0xfffff906, %d7 | ||
125 | andw #0x2000, %d7 | ||
126 | beq 1b | ||
127 | rts | ||
128 | #endif | ||
diff --git a/arch/m68k/platform/68328/head-pilot.S b/arch/m68k/platform/68328/head-pilot.S deleted file mode 100644 index 45a9dad29e3d..000000000000 --- a/arch/m68k/platform/68328/head-pilot.S +++ /dev/null | |||
@@ -1,207 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/m68knommu/platform/68328/head-pilot.S | ||
3 | * - A startup file for the MC68328 | ||
4 | * | ||
5 | * Copyright (C) 1998 D. Jeff Dionne <jeff@ryeham.ee.ryerson.ca>, | ||
6 | * Kenneth Albanowski <kjahds@kjahds.com>, | ||
7 | * The Silver Hammer Group, Ltd. | ||
8 | * | ||
9 | * (c) 1995, Dionne & Associates | ||
10 | * (c) 1995, DKG Display Tech. | ||
11 | */ | ||
12 | |||
13 | #define ASSEMBLY | ||
14 | |||
15 | #define IMMED # | ||
16 | #define DBG_PUTC(x) moveb IMMED x, 0xfffff907 | ||
17 | |||
18 | |||
19 | .global _stext | ||
20 | .global _start | ||
21 | |||
22 | .global _rambase | ||
23 | .global _ramvec | ||
24 | .global _ramstart | ||
25 | .global _ramend | ||
26 | |||
27 | .global bootlogo_bits | ||
28 | |||
29 | /*****************************************************************************/ | ||
30 | |||
31 | .data | ||
32 | |||
33 | /* | ||
34 | * Set up the usable of RAM stuff. Size of RAM is determined then | ||
35 | * an initial stack set up at the end. | ||
36 | */ | ||
37 | .align 4 | ||
38 | _ramvec: | ||
39 | .long 0 | ||
40 | _rambase: | ||
41 | .long 0 | ||
42 | _ramstart: | ||
43 | .long 0 | ||
44 | _ramend: | ||
45 | .long 0 | ||
46 | |||
47 | .text | ||
48 | |||
49 | _start: | ||
50 | _stext: | ||
51 | |||
52 | |||
53 | #ifdef CONFIG_M68328 | ||
54 | |||
55 | #ifdef CONFIG_PILOT | ||
56 | .byte 0x4e, 0xfa, 0x00, 0x0a /* Jmp +X bytes */ | ||
57 | .byte 'b', 'o', 'o', 't' | ||
58 | .word 10000 | ||
59 | |||
60 | nop | ||
61 | #endif | ||
62 | |||
63 | moveq #0, %d0 | ||
64 | movew %d0, 0xfffff618 /* Watchdog off */ | ||
65 | movel #0x00011f07, 0xfffff114 /* CS A1 Mask */ | ||
66 | |||
67 | movew #0x0800, 0xfffff906 /* Ignore CTS */ | ||
68 | movew #0x010b, 0xfffff902 /* BAUD to 9600 */ | ||
69 | |||
70 | movew #0x2410, 0xfffff200 /* PLLCR */ | ||
71 | movew #0x123, 0xfffff202 /* PLLFSR */ | ||
72 | |||
73 | #ifdef CONFIG_PILOT | ||
74 | moveb #0, 0xfffffA27 /* LCKCON */ | ||
75 | movel #_start, 0xfffffA00 /* LSSA */ | ||
76 | moveb #0xa, 0xfffffA05 /* LVPW */ | ||
77 | movew #0x9f, 0xFFFFFa08 /* LXMAX */ | ||
78 | movew #0x9f, 0xFFFFFa0a /* LYMAX */ | ||
79 | moveb #9, 0xfffffa29 /* LBAR */ | ||
80 | moveb #0, 0xfffffa25 /* LPXCD */ | ||
81 | moveb #0x04, 0xFFFFFa20 /* LPICF */ | ||
82 | moveb #0x58, 0xfffffA27 /* LCKCON */ | ||
83 | moveb #0x85, 0xfffff429 /* PFDATA */ | ||
84 | moveb #0xd8, 0xfffffA27 /* LCKCON */ | ||
85 | moveb #0xc5, 0xfffff429 /* PFDATA */ | ||
86 | moveb #0xd5, 0xfffff429 /* PFDATA */ | ||
87 | |||
88 | moveal #0x00100000, %a3 | ||
89 | moveal #0x100ffc00, %a4 | ||
90 | #endif /* CONFIG_PILOT */ | ||
91 | |||
92 | #endif /* CONFIG_M68328 */ | ||
93 | |||
94 | movew #0x2700, %sr | ||
95 | lea %a4@(-4), %sp | ||
96 | |||
97 | DBG_PUTC('\r') | ||
98 | DBG_PUTC('\n') | ||
99 | DBG_PUTC('A') | ||
100 | |||
101 | moveq #0,%d0 | ||
102 | movew #16384, %d0 /* PLL settle wait loop */ | ||
103 | L0: | ||
104 | subw #1, %d0 | ||
105 | bne L0 | ||
106 | |||
107 | DBG_PUTC('B') | ||
108 | |||
109 | /* Copy command line from beginning of RAM (+16) to end of bss */ | ||
110 | movel #CONFIG_VECTORBASE, %d7 | ||
111 | addl #16, %d7 | ||
112 | moveal %d7, %a0 | ||
113 | moveal #__bss_stop, %a1 | ||
114 | lea %a1@(512), %a2 | ||
115 | |||
116 | DBG_PUTC('C') | ||
117 | |||
118 | /* Copy %a0 to %a1 until %a1 == %a2 */ | ||
119 | L2: | ||
120 | movel %a0@+, %d0 | ||
121 | movel %d0, %a1@+ | ||
122 | cmpal %a1, %a2 | ||
123 | bhi L2 | ||
124 | |||
125 | /* Copy data+init segment from ROM to RAM */ | ||
126 | moveal #_etext, %a0 | ||
127 | moveal #_sdata, %a1 | ||
128 | moveal #__init_end, %a2 | ||
129 | |||
130 | DBG_PUTC('D') | ||
131 | |||
132 | /* Copy %a0 to %a1 until %a1 == %a2 */ | ||
133 | LD1: | ||
134 | movel %a0@+, %d0 | ||
135 | movel %d0, %a1@+ | ||
136 | cmpal %a1, %a2 | ||
137 | bhi LD1 | ||
138 | |||
139 | DBG_PUTC('E') | ||
140 | |||
141 | moveal #__bss_start, %a0 | ||
142 | moveal #__bss_stop, %a1 | ||
143 | |||
144 | /* Copy 0 to %a0 until %a0 == %a1 */ | ||
145 | L1: | ||
146 | movel #0, %a0@+ | ||
147 | cmpal %a0, %a1 | ||
148 | bhi L1 | ||
149 | |||
150 | DBG_PUTC('F') | ||
151 | |||
152 | /* Copy command line from end of bss to command line */ | ||
153 | moveal #__bss_stop, %a0 | ||
154 | moveal #command_line, %a1 | ||
155 | lea %a1@(512), %a2 | ||
156 | |||
157 | DBG_PUTC('G') | ||
158 | |||
159 | /* Copy %a0 to %a1 until %a1 == %a2 */ | ||
160 | L3: | ||
161 | movel %a0@+, %d0 | ||
162 | movel %d0, %a1@+ | ||
163 | cmpal %a1, %a2 | ||
164 | bhi L3 | ||
165 | |||
166 | movel #_sdata, %d0 | ||
167 | movel %d0, _rambase | ||
168 | movel #__bss_stop, %d0 | ||
169 | movel %d0, _ramstart | ||
170 | |||
171 | movel %a4, %d0 | ||
172 | subl #4096, %d0 /* Reserve 4K of stack */ | ||
173 | moveq #79, %d7 | ||
174 | movel %d0, _ramend | ||
175 | |||
176 | pea 0 | ||
177 | pea env | ||
178 | pea %sp@(4) | ||
179 | pea 0 | ||
180 | |||
181 | DBG_PUTC('H') | ||
182 | |||
183 | #ifdef CONFIG_PILOT | ||
184 | movel #bootlogo_bits, 0xFFFFFA00 | ||
185 | moveb #10, 0xFFFFFA05 | ||
186 | movew #160, 0xFFFFFA08 | ||
187 | movew #160, 0xFFFFFA0A | ||
188 | #endif /* CONFIG_PILOT */ | ||
189 | |||
190 | DBG_PUTC('I') | ||
191 | |||
192 | lea init_thread_union, %a0 | ||
193 | lea 0x2000(%a0), %sp | ||
194 | |||
195 | DBG_PUTC('J') | ||
196 | DBG_PUTC('\r') | ||
197 | DBG_PUTC('\n') | ||
198 | |||
199 | jsr start_kernel | ||
200 | _exit: | ||
201 | |||
202 | jmp _exit | ||
203 | |||
204 | |||
205 | .data | ||
206 | env: | ||
207 | .long 0 | ||
diff --git a/arch/m68k/platform/68328/head-ram.S b/arch/m68k/platform/68328/head-ram.S deleted file mode 100644 index 5189ef926098..000000000000 --- a/arch/m68k/platform/68328/head-ram.S +++ /dev/null | |||
@@ -1,141 +0,0 @@ | |||
1 | |||
2 | .global __main | ||
3 | .global __rom_start | ||
4 | |||
5 | .global _rambase | ||
6 | .global _ramstart | ||
7 | |||
8 | .global splash_bits | ||
9 | .global _start | ||
10 | .global _stext | ||
11 | .global _edata | ||
12 | |||
13 | #define DEBUG | ||
14 | #define ROM_OFFSET 0x10C00000 | ||
15 | #define STACK_GAURD 0x10 | ||
16 | |||
17 | .text | ||
18 | |||
19 | _start: | ||
20 | _stext: | ||
21 | movew #0x2700, %sr /* Exceptions off! */ | ||
22 | |||
23 | #if 0 | ||
24 | /* Init chip registers. uCsimm specific */ | ||
25 | moveb #0x00, 0xfffffb0b /* Watchdog off */ | ||
26 | moveb #0x10, 0xfffff000 /* SCR */ | ||
27 | |||
28 | movew #0x2400, 0xfffff200 /* PLLCR */ | ||
29 | movew #0x0123, 0xfffff202 /* PLLFSR */ | ||
30 | |||
31 | moveb #0x00, 0xfffff40b /* enable chip select */ | ||
32 | moveb #0x00, 0xfffff423 /* enable /DWE */ | ||
33 | moveb #0x08, 0xfffffd0d /* disable hardmap */ | ||
34 | moveb #0x07, 0xfffffd0e /* level 7 interrupt clear */ | ||
35 | |||
36 | movew #0x8600, 0xfffff100 /* FLASH at 0x10c00000 */ | ||
37 | movew #0x018b, 0xfffff110 /* 2Meg, enable, 0ws */ | ||
38 | |||
39 | movew #0x8f00, 0xfffffc00 /* DRAM configuration */ | ||
40 | movew #0x9667, 0xfffffc02 /* DRAM control */ | ||
41 | movew #0x0000, 0xfffff106 /* DRAM at 0x00000000 */ | ||
42 | movew #0x068f, 0xfffff116 /* 8Meg, enable, 0ws */ | ||
43 | |||
44 | moveb #0x40, 0xfffff300 /* IVR */ | ||
45 | movel #0x007FFFFF, %d0 /* IMR */ | ||
46 | movel %d0, 0xfffff304 | ||
47 | |||
48 | moveb 0xfffff42b, %d0 | ||
49 | andb #0xe0, %d0 | ||
50 | moveb %d0, 0xfffff42b | ||
51 | |||
52 | moveb #0x08, 0xfffff907 /* Ignore CTS */ | ||
53 | movew #0x010b, 0xfffff902 /* BAUD to 9600 */ | ||
54 | movew #0xe100, 0xfffff900 /* enable */ | ||
55 | #endif | ||
56 | |||
57 | movew #16384, %d0 /* PLL settle wait loop */ | ||
58 | L0: | ||
59 | subw #1, %d0 | ||
60 | bne L0 | ||
61 | #ifdef DEBUG | ||
62 | moveq #70, %d7 /* 'F' */ | ||
63 | moveb %d7,0xfffff907 /* No absolute addresses */ | ||
64 | pclp1: | ||
65 | movew 0xfffff906, %d7 | ||
66 | andw #0x2000, %d7 | ||
67 | beq pclp1 | ||
68 | #endif /* DEBUG */ | ||
69 | |||
70 | #ifdef DEBUG | ||
71 | moveq #82, %d7 /* 'R' */ | ||
72 | moveb %d7,0xfffff907 /* No absolute addresses */ | ||
73 | pclp3: | ||
74 | movew 0xfffff906, %d7 | ||
75 | andw #0x2000, %d7 | ||
76 | beq pclp3 | ||
77 | #endif /* DEBUG */ | ||
78 | moveal #0x007ffff0, %ssp | ||
79 | moveal #__bss_start, %a0 | ||
80 | moveal #__bss_stop, %a1 | ||
81 | |||
82 | /* Copy 0 to %a0 until %a0 >= %a1 */ | ||
83 | L1: | ||
84 | movel #0, %a0@+ | ||
85 | cmpal %a0, %a1 | ||
86 | bhi L1 | ||
87 | |||
88 | #ifdef DEBUG | ||
89 | moveq #67, %d7 /* 'C' */ | ||
90 | jsr putc | ||
91 | #endif /* DEBUG */ | ||
92 | |||
93 | pea 0 | ||
94 | pea env | ||
95 | pea %sp@(4) | ||
96 | pea 0 | ||
97 | |||
98 | #ifdef DEBUG | ||
99 | moveq #70, %d7 /* 'F' */ | ||
100 | jsr putc | ||
101 | #endif /* DEBUG */ | ||
102 | |||
103 | lp: | ||
104 | jsr start_kernel | ||
105 | jmp lp | ||
106 | _exit: | ||
107 | |||
108 | jmp _exit | ||
109 | |||
110 | __main: | ||
111 | /* nothing */ | ||
112 | rts | ||
113 | |||
114 | #ifdef DEBUG | ||
115 | putc: | ||
116 | moveb %d7,0xfffff907 | ||
117 | pclp: | ||
118 | movew 0xfffff906, %d7 | ||
119 | andw #0x2000, %d7 | ||
120 | beq pclp | ||
121 | rts | ||
122 | #endif /* DEBUG */ | ||
123 | |||
124 | .data | ||
125 | |||
126 | /* | ||
127 | * Set up the usable of RAM stuff. Size of RAM is determined then | ||
128 | * an initial stack set up at the end. | ||
129 | */ | ||
130 | .align 4 | ||
131 | _ramvec: | ||
132 | .long 0 | ||
133 | _rambase: | ||
134 | .long 0 | ||
135 | _ramstart: | ||
136 | .long 0 | ||
137 | _ramend: | ||
138 | .long 0 | ||
139 | |||
140 | env: | ||
141 | .long 0 | ||
diff --git a/arch/m68k/platform/68328/head-rom.S b/arch/m68k/platform/68328/head-rom.S deleted file mode 100644 index 3dff98ba2e97..000000000000 --- a/arch/m68k/platform/68328/head-rom.S +++ /dev/null | |||
@@ -1,105 +0,0 @@ | |||
1 | |||
2 | .global _start | ||
3 | .global _stext | ||
4 | |||
5 | .global _rambase | ||
6 | .global _ramvec | ||
7 | .global _ramstart | ||
8 | .global _ramend | ||
9 | |||
10 | #ifdef CONFIG_INIT_LCD | ||
11 | .global bootlogo_bits | ||
12 | #endif | ||
13 | |||
14 | .data | ||
15 | |||
16 | /* | ||
17 | * Set up the usable of RAM stuff. Size of RAM is determined then | ||
18 | * an initial stack set up at the end. | ||
19 | */ | ||
20 | .align 4 | ||
21 | _ramvec: | ||
22 | .long 0 | ||
23 | _rambase: | ||
24 | .long 0 | ||
25 | _ramstart: | ||
26 | .long 0 | ||
27 | _ramend: | ||
28 | .long 0 | ||
29 | |||
30 | #define RAMEND (CONFIG_RAMBASE + CONFIG_RAMSIZE) | ||
31 | |||
32 | .text | ||
33 | _start: | ||
34 | _stext: movew #0x2700,%sr | ||
35 | #ifdef CONFIG_INIT_LCD | ||
36 | movel #bootlogo_bits, 0xfffffA00 /* LSSA */ | ||
37 | moveb #0x28, 0xfffffA05 /* LVPW */ | ||
38 | movew #0x280, 0xFFFFFa08 /* LXMAX */ | ||
39 | movew #0x1df, 0xFFFFFa0a /* LYMAX */ | ||
40 | moveb #0, 0xfffffa29 /* LBAR */ | ||
41 | moveb #0, 0xfffffa25 /* LPXCD */ | ||
42 | moveb #0x08, 0xFFFFFa20 /* LPICF */ | ||
43 | moveb #0x01, 0xFFFFFA21 /* -ve pol */ | ||
44 | moveb #0x81, 0xfffffA27 /* LCKCON */ | ||
45 | movew #0xff00, 0xfffff412 /* LCD pins */ | ||
46 | #endif | ||
47 | moveal #RAMEND-CONFIG_MEMORY_RESERVE*0x100000 - 0x10, %sp | ||
48 | movew #32767, %d0 /* PLL settle wait loop */ | ||
49 | 1: subq #1, %d0 | ||
50 | bne 1b | ||
51 | |||
52 | /* Copy data segment from ROM to RAM */ | ||
53 | moveal #_etext, %a0 | ||
54 | moveal #_sdata, %a1 | ||
55 | moveal #_edata, %a2 | ||
56 | |||
57 | /* Copy %a0 to %a1 until %a1 == %a2 */ | ||
58 | 1: movel %a0@+, %a1@+ | ||
59 | cmpal %a1, %a2 | ||
60 | bhi 1b | ||
61 | |||
62 | moveal #__bss_start, %a0 | ||
63 | moveal #__bss_stop, %a1 | ||
64 | /* Copy 0 to %a0 until %a0 == %a1 */ | ||
65 | |||
66 | 1: | ||
67 | clrl %a0@+ | ||
68 | cmpal %a0, %a1 | ||
69 | bhi 1b | ||
70 | |||
71 | movel #_sdata, %d0 | ||
72 | movel %d0, _rambase | ||
73 | movel #__bss_stop, %d0 | ||
74 | movel %d0, _ramstart | ||
75 | movel #RAMEND-CONFIG_MEMORY_RESERVE*0x100000, %d0 | ||
76 | movel %d0, _ramend | ||
77 | movel #CONFIG_VECTORBASE, %d0 | ||
78 | movel %d0, _ramvec | ||
79 | |||
80 | /* | ||
81 | * load the current task pointer and stack | ||
82 | */ | ||
83 | lea init_thread_union, %a0 | ||
84 | lea 0x2000(%a0), %sp | ||
85 | |||
86 | 1: jsr start_kernel | ||
87 | bra 1b | ||
88 | _exit: | ||
89 | |||
90 | jmp _exit | ||
91 | |||
92 | |||
93 | putc: | ||
94 | moveb %d7,0xfffff907 | ||
95 | 1: | ||
96 | movew 0xfffff906, %d7 | ||
97 | andw #0x2000, %d7 | ||
98 | beq 1b | ||
99 | rts | ||
100 | |||
101 | .data | ||
102 | env: | ||
103 | .long 0 | ||
104 | .text | ||
105 | |||
diff --git a/arch/m68k/platform/68EZ328/Makefile b/arch/m68k/platform/68EZ328/Makefile deleted file mode 100644 index b44d799b1115..000000000000 --- a/arch/m68k/platform/68EZ328/Makefile +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | # | ||
2 | # Makefile for arch/m68knommu/platform/68EZ328. | ||
3 | # | ||
4 | |||
5 | obj-y := config.o | ||
diff --git a/arch/m68k/platform/68VZ328/Makefile b/arch/m68k/platform/68VZ328/Makefile deleted file mode 100644 index 816674164682..000000000000 --- a/arch/m68k/platform/68VZ328/Makefile +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | # | ||
2 | # Makefile for arch/m68k/platform/68VZ328. | ||
3 | # | ||
4 | |||
5 | obj-y := config.o | ||