1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
From 87ea76988875856dc1c3657b27ac792d2f0311e9 Mon Sep 17 00:00:00 2001
From: Kurt Mahan <kmahan@freescale.com>
Date: Tue, 24 Jun 2008 22:12:17 -0600
Subject: [PATCH] Move BSS initialization after mmu setup.
LTIBName: mcfv4e-bss-clear-move
Signed-off-by: Kurt Mahan <kmahan@freescale.com>
---
arch/m68k/coldfire/head.S | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
--- a/arch/m68k/coldfire/head.S
+++ b/arch/m68k/coldfire/head.S
@@ -326,16 +326,6 @@ ENTRY(__start)
movec %d0, %acr3
nop
-#ifdef CONFIG_COLDFIRE
-/* zero bss */
- lea _sbss,%a0
- lea _ebss,%a1
- clrl %d0
-_loop_bss:
- movel %d0,(%a0)+
- cmpl %a0,%a1
- bne _loop_bss
-#endif
/* If you change the memory size to another value make a matching
change in paging_init(cf-mmu.c) to zones_size[]. */
@@ -564,6 +554,15 @@ ENTRY(__running_high)
addl #PAGE_OFFSET,%a1
movel %a1,%a0@
+/* zero bss */
+ lea _sbss,%a0
+ lea _ebss,%a1
+ clrl %d0
+_loop_bss:
+ movel %d0,(%a0)+
+ cmpl %a0,%a1
+ bne _loop_bss
+
/* Unmap unity mappings */
#if CONFIG_SDRAM_BASE != PAGE_OFFSET
#if defined(CONFIG_M5445X)
|