diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/m68knommu/platform/68328/head-rom.S |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/m68knommu/platform/68328/head-rom.S')
-rw-r--r-- | arch/m68knommu/platform/68328/head-rom.S | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/arch/m68knommu/platform/68328/head-rom.S b/arch/m68knommu/platform/68328/head-rom.S new file mode 100644 index 000000000000..2b448a297011 --- /dev/null +++ b/arch/m68knommu/platform/68328/head-rom.S | |||
@@ -0,0 +1,109 @@ | |||
1 | #include <linux/config.h> | ||
2 | |||
3 | .global _start | ||
4 | .global _stext | ||
5 | |||
6 | .global _rambase | ||
7 | .global _ramvec | ||
8 | .global _ramstart | ||
9 | .global _ramend | ||
10 | |||
11 | #ifdef CONFIG_INIT_LCD | ||
12 | .global splash_bits | ||
13 | #endif | ||
14 | |||
15 | .data | ||
16 | |||
17 | /* | ||
18 | * Set up the usable of RAM stuff. Size of RAM is determined then | ||
19 | * an initial stack set up at the end. | ||
20 | */ | ||
21 | .align 4 | ||
22 | _ramvec: | ||
23 | .long 0 | ||
24 | _rambase: | ||
25 | .long 0 | ||
26 | _ramstart: | ||
27 | .long 0 | ||
28 | _ramend: | ||
29 | .long 0 | ||
30 | |||
31 | #ifdef CONFIG_INIT_LCD | ||
32 | splash_bits: | ||
33 | #include "bootlogo.rh" | ||
34 | #endif | ||
35 | |||
36 | .text | ||
37 | _start: | ||
38 | _stext: movew #0x2700,%sr | ||
39 | #ifdef CONFIG_INIT_LCD | ||
40 | movel #splash_bits, 0xfffffA00 /* LSSA */ | ||
41 | moveb #0x28, 0xfffffA05 /* LVPW */ | ||
42 | movew #0x280, 0xFFFFFa08 /* LXMAX */ | ||
43 | movew #0x1df, 0xFFFFFa0a /* LYMAX */ | ||
44 | moveb #0, 0xfffffa29 /* LBAR */ | ||
45 | moveb #0, 0xfffffa25 /* LPXCD */ | ||
46 | moveb #0x08, 0xFFFFFa20 /* LPICF */ | ||
47 | moveb #0x01, 0xFFFFFA21 /* -ve pol */ | ||
48 | moveb #0x81, 0xfffffA27 /* LCKCON */ | ||
49 | movew #0xff00, 0xfffff412 /* LCD pins */ | ||
50 | #endif | ||
51 | moveal #__ramend-CONFIG_MEMORY_RESERVE*0x100000 - 0x10, %sp | ||
52 | movew #32767, %d0 /* PLL settle wait loop */ | ||
53 | 1: subq #1, %d0 | ||
54 | bne 1b | ||
55 | |||
56 | /* Copy data segment from ROM to RAM */ | ||
57 | moveal #_etext, %a0 | ||
58 | moveal #_sdata, %a1 | ||
59 | moveal #_edata, %a2 | ||
60 | |||
61 | /* Copy %a0 to %a1 until %a1 == %a2 */ | ||
62 | 1: movel %a0@+, %a1@+ | ||
63 | cmpal %a1, %a2 | ||
64 | bhi 1b | ||
65 | |||
66 | moveal #_sbss, %a0 | ||
67 | moveal #_ebss, %a1 | ||
68 | /* Copy 0 to %a0 until %a0 == %a1 */ | ||
69 | |||
70 | 1: | ||
71 | clrl %a0@+ | ||
72 | cmpal %a0, %a1 | ||
73 | bhi 1b | ||
74 | |||
75 | movel #_sdata, %d0 | ||
76 | movel %d0, _rambase | ||
77 | movel #_ebss, %d0 | ||
78 | movel %d0, _ramstart | ||
79 | movel #__ramend-CONFIG_MEMORY_RESERVE*0x100000, %d0 | ||
80 | movel %d0, _ramend | ||
81 | movel #__ramvec, %d0 | ||
82 | movel %d0, _ramvec | ||
83 | |||
84 | /* | ||
85 | * load the current task pointer and stack | ||
86 | */ | ||
87 | lea init_thread_union, %a0 | ||
88 | lea 0x2000(%a0), %sp | ||
89 | |||
90 | 1: jsr start_kernel | ||
91 | bra 1b | ||
92 | _exit: | ||
93 | |||
94 | jmp _exit | ||
95 | |||
96 | |||
97 | putc: | ||
98 | moveb %d7,0xfffff907 | ||
99 | 1: | ||
100 | movew 0xfffff906, %d7 | ||
101 | andw #0x2000, %d7 | ||
102 | beq 1b | ||
103 | rts | ||
104 | |||
105 | .data | ||
106 | env: | ||
107 | .long 0 | ||
108 | .text | ||
109 | |||