Commit 01f7e673 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] m68knommu: use Kconfig RAM config options in 68328 startup code

Switch to using the new RAM Kconfig settings, instead of linker defined
regions in ROM specific 68328 startup code.
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f5c7726f
...@@ -28,6 +28,8 @@ _ramstart: ...@@ -28,6 +28,8 @@ _ramstart:
_ramend: _ramend:
.long 0 .long 0
#define RAMEND (CONFIG_RAMBASE + CONFIG_RAMSIZE)
#ifdef CONFIG_INIT_LCD #ifdef CONFIG_INIT_LCD
splash_bits: splash_bits:
#include "bootlogo.rh" #include "bootlogo.rh"
...@@ -48,7 +50,7 @@ _stext: movew #0x2700,%sr ...@@ -48,7 +50,7 @@ _stext: movew #0x2700,%sr
moveb #0x81, 0xfffffA27 /* LCKCON */ moveb #0x81, 0xfffffA27 /* LCKCON */
movew #0xff00, 0xfffff412 /* LCD pins */ movew #0xff00, 0xfffff412 /* LCD pins */
#endif #endif
moveal #__ramend-CONFIG_MEMORY_RESERVE*0x100000 - 0x10, %sp moveal #RAMEND-CONFIG_MEMORY_RESERVE*0x100000 - 0x10, %sp
movew #32767, %d0 /* PLL settle wait loop */ movew #32767, %d0 /* PLL settle wait loop */
1: subq #1, %d0 1: subq #1, %d0
bne 1b bne 1b
...@@ -73,13 +75,13 @@ _stext: movew #0x2700,%sr ...@@ -73,13 +75,13 @@ _stext: movew #0x2700,%sr
bhi 1b bhi 1b
movel #_sdata, %d0 movel #_sdata, %d0
movel %d0, _rambase movel %d0, _rambase
movel #_ebss, %d0 movel #_ebss, %d0
movel %d0, _ramstart movel %d0, _ramstart
movel #__ramend-CONFIG_MEMORY_RESERVE*0x100000, %d0 movel #RAMEND-CONFIG_MEMORY_RESERVE*0x100000, %d0
movel %d0, _ramend movel %d0, _ramend
movel #__ramvec, %d0 movel #CONFIG_VECTORBASE, %d0
movel %d0, _ramvec movel %d0, _ramvec
/* /*
* load the current task pointer and stack * load the current task pointer and stack
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment