diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2012-05-31 15:46:03 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2012-06-27 03:59:43 -0400 |
commit | dc0610518f9f01814783f14ba476b41c6ffb27cb (patch) | |
tree | 26d1616551683c2997fab819d68d7a2dd350dc42 /arch | |
parent | 363737d66427c18edb321a06933ac999d9ce5d7f (diff) |
m68k: Replace m68k-specific _[se]bss by generic __bss_{start,stop}
BSS_SECTION() provides the __bss_{start,stop} symbols, so there's no need
to wrap our own _[se]bss around it.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Greg Ungerer<gerg@uclinux.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/include/asm/sections.h | 2 | ||||
-rw-r--r-- | arch/m68k/kernel/setup_no.c | 4 | ||||
-rw-r--r-- | arch/m68k/kernel/vmlinux-nommu.lds | 2 | ||||
-rw-r--r-- | arch/m68k/kernel/vmlinux-std.lds | 2 | ||||
-rw-r--r-- | arch/m68k/kernel/vmlinux-sun3.lds | 2 | ||||
-rw-r--r-- | arch/m68k/mm/init_mm.c | 2 | ||||
-rw-r--r-- | arch/m68k/mm/init_no.c | 2 | ||||
-rw-r--r-- | arch/m68k/platform/68328/head-de2.S | 8 | ||||
-rw-r--r-- | arch/m68k/platform/68328/head-pilot.S | 10 | ||||
-rw-r--r-- | arch/m68k/platform/68328/head-ram.S | 4 | ||||
-rw-r--r-- | arch/m68k/platform/68328/head-rom.S | 6 | ||||
-rw-r--r-- | arch/m68k/platform/68360/head-ram.S | 6 | ||||
-rw-r--r-- | arch/m68k/platform/68360/head-rom.S | 8 | ||||
-rw-r--r-- | arch/m68k/platform/coldfire/head.S | 10 |
14 files changed, 30 insertions, 38 deletions
diff --git a/arch/m68k/include/asm/sections.h b/arch/m68k/include/asm/sections.h index 5277e52715ec..d64967ecfec6 100644 --- a/arch/m68k/include/asm/sections.h +++ b/arch/m68k/include/asm/sections.h | |||
@@ -3,6 +3,4 @@ | |||
3 | 3 | ||
4 | #include <asm-generic/sections.h> | 4 | #include <asm-generic/sections.h> |
5 | 5 | ||
6 | extern char _sbss[], _ebss[]; | ||
7 | |||
8 | #endif /* _ASM_M68K_SECTIONS_H */ | 6 | #endif /* _ASM_M68K_SECTIONS_H */ |
diff --git a/arch/m68k/kernel/setup_no.c b/arch/m68k/kernel/setup_no.c index 8a624ecf86b8..71fb29938dba 100644 --- a/arch/m68k/kernel/setup_no.c +++ b/arch/m68k/kernel/setup_no.c | |||
@@ -219,9 +219,9 @@ void __init setup_arch(char **cmdline_p) | |||
219 | #endif | 219 | #endif |
220 | 220 | ||
221 | pr_debug("KERNEL -> TEXT=0x%p-0x%p DATA=0x%p-0x%p BSS=0x%p-0x%p\n", | 221 | pr_debug("KERNEL -> TEXT=0x%p-0x%p DATA=0x%p-0x%p BSS=0x%p-0x%p\n", |
222 | _stext, _etext, _sdata, _edata, _sbss, _ebss); | 222 | _stext, _etext, _sdata, _edata, __bss_start, __bss_stop); |
223 | pr_debug("MEMORY -> ROMFS=0x%p-0x%06lx MEM=0x%06lx-0x%06lx\n ", | 223 | pr_debug("MEMORY -> ROMFS=0x%p-0x%06lx MEM=0x%06lx-0x%06lx\n ", |
224 | _ebss, memory_start, memory_start, memory_end); | 224 | __bss_stop, memory_start, memory_start, memory_end); |
225 | 225 | ||
226 | /* Keep a copy of command line */ | 226 | /* Keep a copy of command line */ |
227 | *cmdline_p = &command_line[0]; | 227 | *cmdline_p = &command_line[0]; |
diff --git a/arch/m68k/kernel/vmlinux-nommu.lds b/arch/m68k/kernel/vmlinux-nommu.lds index 40e02d9c38b4..06a763f49fd3 100644 --- a/arch/m68k/kernel/vmlinux-nommu.lds +++ b/arch/m68k/kernel/vmlinux-nommu.lds | |||
@@ -78,9 +78,7 @@ SECTIONS { | |||
78 | __init_end = .; | 78 | __init_end = .; |
79 | } | 79 | } |
80 | 80 | ||
81 | _sbss = .; | ||
82 | BSS_SECTION(0, 0, 0) | 81 | BSS_SECTION(0, 0, 0) |
83 | _ebss = .; | ||
84 | 82 | ||
85 | _end = .; | 83 | _end = .; |
86 | 84 | ||
diff --git a/arch/m68k/kernel/vmlinux-std.lds b/arch/m68k/kernel/vmlinux-std.lds index 63407c836826..d0993594f558 100644 --- a/arch/m68k/kernel/vmlinux-std.lds +++ b/arch/m68k/kernel/vmlinux-std.lds | |||
@@ -31,9 +31,7 @@ SECTIONS | |||
31 | 31 | ||
32 | RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE) | 32 | RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE) |
33 | 33 | ||
34 | _sbss = .; | ||
35 | BSS_SECTION(0, 0, 0) | 34 | BSS_SECTION(0, 0, 0) |
36 | _ebss = .; | ||
37 | 35 | ||
38 | _edata = .; /* End of data section */ | 36 | _edata = .; /* End of data section */ |
39 | 37 | ||
diff --git a/arch/m68k/kernel/vmlinux-sun3.lds b/arch/m68k/kernel/vmlinux-sun3.lds index ad0f46d64c0b..8080469ee6c1 100644 --- a/arch/m68k/kernel/vmlinux-sun3.lds +++ b/arch/m68k/kernel/vmlinux-sun3.lds | |||
@@ -44,9 +44,7 @@ __init_begin = .; | |||
44 | . = ALIGN(PAGE_SIZE); | 44 | . = ALIGN(PAGE_SIZE); |
45 | __init_end = .; | 45 | __init_end = .; |
46 | 46 | ||
47 | _sbss = .; | ||
48 | BSS_SECTION(0, 0, 0) | 47 | BSS_SECTION(0, 0, 0) |
49 | _ebss = .; | ||
50 | 48 | ||
51 | _end = . ; | 49 | _end = . ; |
52 | 50 | ||
diff --git a/arch/m68k/mm/init_mm.c b/arch/m68k/mm/init_mm.c index f77f258dce3a..282f9de68966 100644 --- a/arch/m68k/mm/init_mm.c +++ b/arch/m68k/mm/init_mm.c | |||
@@ -104,7 +104,7 @@ void __init print_memmap(void) | |||
104 | MLK_ROUNDUP(__init_begin, __init_end), | 104 | MLK_ROUNDUP(__init_begin, __init_end), |
105 | MLK_ROUNDUP(_stext, _etext), | 105 | MLK_ROUNDUP(_stext, _etext), |
106 | MLK_ROUNDUP(_sdata, _edata), | 106 | MLK_ROUNDUP(_sdata, _edata), |
107 | MLK_ROUNDUP(_sbss, _ebss)); | 107 | MLK_ROUNDUP(__bss_start, __bss_stop)); |
108 | } | 108 | } |
109 | 109 | ||
110 | void __init mem_init(void) | 110 | void __init mem_init(void) |
diff --git a/arch/m68k/mm/init_no.c b/arch/m68k/mm/init_no.c index 345ec0d83e3d..688e3664aea0 100644 --- a/arch/m68k/mm/init_no.c +++ b/arch/m68k/mm/init_no.c | |||
@@ -91,7 +91,7 @@ void __init mem_init(void) | |||
91 | totalram_pages = free_all_bootmem(); | 91 | totalram_pages = free_all_bootmem(); |
92 | 92 | ||
93 | codek = (_etext - _stext) >> 10; | 93 | codek = (_etext - _stext) >> 10; |
94 | datak = (_ebss - _sdata) >> 10; | 94 | datak = (__bss_stop - _sdata) >> 10; |
95 | initk = (__init_begin - __init_end) >> 10; | 95 | initk = (__init_begin - __init_end) >> 10; |
96 | 96 | ||
97 | tmp = nr_free_pages() << PAGE_SHIFT; | 97 | tmp = nr_free_pages() << PAGE_SHIFT; |
diff --git a/arch/m68k/platform/68328/head-de2.S b/arch/m68k/platform/68328/head-de2.S index f632fdcb93e9..537d3245b539 100644 --- a/arch/m68k/platform/68328/head-de2.S +++ b/arch/m68k/platform/68328/head-de2.S | |||
@@ -60,8 +60,8 @@ _start: | |||
60 | * Move ROM filesystem above bss :-) | 60 | * Move ROM filesystem above bss :-) |
61 | */ | 61 | */ |
62 | 62 | ||
63 | moveal #_sbss, %a0 /* romfs at the start of bss */ | 63 | moveal #__bss_start, %a0 /* romfs at the start of bss */ |
64 | moveal #_ebss, %a1 /* Set up destination */ | 64 | moveal #__bss_stop, %a1 /* Set up destination */ |
65 | movel %a0, %a2 /* Copy of bss start */ | 65 | movel %a0, %a2 /* Copy of bss start */ |
66 | 66 | ||
67 | movel 8(%a0), %d1 /* Get size of ROMFS */ | 67 | movel 8(%a0), %d1 /* Get size of ROMFS */ |
@@ -84,8 +84,8 @@ _start: | |||
84 | * Initialize BSS segment to 0 | 84 | * Initialize BSS segment to 0 |
85 | */ | 85 | */ |
86 | 86 | ||
87 | lea _sbss, %a0 | 87 | lea __bss_start, %a0 |
88 | lea _ebss, %a1 | 88 | lea __bss_stop, %a1 |
89 | 89 | ||
90 | /* Copy 0 to %a0 until %a0 == %a1 */ | 90 | /* Copy 0 to %a0 until %a0 == %a1 */ |
91 | 2: cmpal %a0, %a1 | 91 | 2: cmpal %a0, %a1 |
diff --git a/arch/m68k/platform/68328/head-pilot.S b/arch/m68k/platform/68328/head-pilot.S index 2ebfd6420818..45a9dad29e3d 100644 --- a/arch/m68k/platform/68328/head-pilot.S +++ b/arch/m68k/platform/68328/head-pilot.S | |||
@@ -110,7 +110,7 @@ L0: | |||
110 | movel #CONFIG_VECTORBASE, %d7 | 110 | movel #CONFIG_VECTORBASE, %d7 |
111 | addl #16, %d7 | 111 | addl #16, %d7 |
112 | moveal %d7, %a0 | 112 | moveal %d7, %a0 |
113 | moveal #_ebss, %a1 | 113 | moveal #__bss_stop, %a1 |
114 | lea %a1@(512), %a2 | 114 | lea %a1@(512), %a2 |
115 | 115 | ||
116 | DBG_PUTC('C') | 116 | DBG_PUTC('C') |
@@ -138,8 +138,8 @@ LD1: | |||
138 | 138 | ||
139 | DBG_PUTC('E') | 139 | DBG_PUTC('E') |
140 | 140 | ||
141 | moveal #_sbss, %a0 | 141 | moveal #__bss_start, %a0 |
142 | moveal #_ebss, %a1 | 142 | moveal #__bss_stop, %a1 |
143 | 143 | ||
144 | /* Copy 0 to %a0 until %a0 == %a1 */ | 144 | /* Copy 0 to %a0 until %a0 == %a1 */ |
145 | L1: | 145 | L1: |
@@ -150,7 +150,7 @@ L1: | |||
150 | DBG_PUTC('F') | 150 | DBG_PUTC('F') |
151 | 151 | ||
152 | /* Copy command line from end of bss to command line */ | 152 | /* Copy command line from end of bss to command line */ |
153 | moveal #_ebss, %a0 | 153 | moveal #__bss_stop, %a0 |
154 | moveal #command_line, %a1 | 154 | moveal #command_line, %a1 |
155 | lea %a1@(512), %a2 | 155 | lea %a1@(512), %a2 |
156 | 156 | ||
@@ -165,7 +165,7 @@ L3: | |||
165 | 165 | ||
166 | movel #_sdata, %d0 | 166 | movel #_sdata, %d0 |
167 | movel %d0, _rambase | 167 | movel %d0, _rambase |
168 | movel #_ebss, %d0 | 168 | movel #__bss_stop, %d0 |
169 | movel %d0, _ramstart | 169 | movel %d0, _ramstart |
170 | 170 | ||
171 | movel %a4, %d0 | 171 | movel %a4, %d0 |
diff --git a/arch/m68k/platform/68328/head-ram.S b/arch/m68k/platform/68328/head-ram.S index 7f1aeeacb219..5189ef926098 100644 --- a/arch/m68k/platform/68328/head-ram.S +++ b/arch/m68k/platform/68328/head-ram.S | |||
@@ -76,8 +76,8 @@ pclp3: | |||
76 | beq pclp3 | 76 | beq pclp3 |
77 | #endif /* DEBUG */ | 77 | #endif /* DEBUG */ |
78 | moveal #0x007ffff0, %ssp | 78 | moveal #0x007ffff0, %ssp |
79 | moveal #_sbss, %a0 | 79 | moveal #__bss_start, %a0 |
80 | moveal #_ebss, %a1 | 80 | moveal #__bss_stop, %a1 |
81 | 81 | ||
82 | /* Copy 0 to %a0 until %a0 >= %a1 */ | 82 | /* Copy 0 to %a0 until %a0 >= %a1 */ |
83 | L1: | 83 | L1: |
diff --git a/arch/m68k/platform/68328/head-rom.S b/arch/m68k/platform/68328/head-rom.S index a5ff96d0295f..3dff98ba2e97 100644 --- a/arch/m68k/platform/68328/head-rom.S +++ b/arch/m68k/platform/68328/head-rom.S | |||
@@ -59,8 +59,8 @@ _stext: movew #0x2700,%sr | |||
59 | cmpal %a1, %a2 | 59 | cmpal %a1, %a2 |
60 | bhi 1b | 60 | bhi 1b |
61 | 61 | ||
62 | moveal #_sbss, %a0 | 62 | moveal #__bss_start, %a0 |
63 | moveal #_ebss, %a1 | 63 | moveal #__bss_stop, %a1 |
64 | /* Copy 0 to %a0 until %a0 == %a1 */ | 64 | /* Copy 0 to %a0 until %a0 == %a1 */ |
65 | 65 | ||
66 | 1: | 66 | 1: |
@@ -70,7 +70,7 @@ _stext: movew #0x2700,%sr | |||
70 | 70 | ||
71 | movel #_sdata, %d0 | 71 | movel #_sdata, %d0 |
72 | movel %d0, _rambase | 72 | movel %d0, _rambase |
73 | movel #_ebss, %d0 | 73 | movel #__bss_stop, %d0 |
74 | movel %d0, _ramstart | 74 | movel %d0, _ramstart |
75 | movel #RAMEND-CONFIG_MEMORY_RESERVE*0x100000, %d0 | 75 | movel #RAMEND-CONFIG_MEMORY_RESERVE*0x100000, %d0 |
76 | movel %d0, _ramend | 76 | movel %d0, _ramend |
diff --git a/arch/m68k/platform/68360/head-ram.S b/arch/m68k/platform/68360/head-ram.S index 8eb94fb6b971..acd213170d80 100644 --- a/arch/m68k/platform/68360/head-ram.S +++ b/arch/m68k/platform/68360/head-ram.S | |||
@@ -219,8 +219,8 @@ LD1: | |||
219 | cmp.l #_edata, %a1 | 219 | cmp.l #_edata, %a1 |
220 | blt LD1 | 220 | blt LD1 |
221 | 221 | ||
222 | moveal #_sbss, %a0 | 222 | moveal #__bss_start, %a0 |
223 | moveal #_ebss, %a1 | 223 | moveal #__bss_stop, %a1 |
224 | 224 | ||
225 | /* Copy 0 to %a0 until %a0 == %a1 */ | 225 | /* Copy 0 to %a0 until %a0 == %a1 */ |
226 | L1: | 226 | L1: |
@@ -234,7 +234,7 @@ load_quicc: | |||
234 | store_ram_size: | 234 | store_ram_size: |
235 | /* Set ram size information */ | 235 | /* Set ram size information */ |
236 | move.l #_sdata, _rambase | 236 | move.l #_sdata, _rambase |
237 | move.l #_ebss, _ramstart | 237 | move.l #__bss_stop, _ramstart |
238 | move.l #RAMEND, %d0 | 238 | move.l #RAMEND, %d0 |
239 | sub.l #0x1000, %d0 /* Reserve 4K for stack space.*/ | 239 | sub.l #0x1000, %d0 /* Reserve 4K for stack space.*/ |
240 | move.l %d0, _ramend /* Different from RAMEND.*/ | 240 | move.l %d0, _ramend /* Different from RAMEND.*/ |
diff --git a/arch/m68k/platform/68360/head-rom.S b/arch/m68k/platform/68360/head-rom.S index 97510e55b802..dfc756d99886 100644 --- a/arch/m68k/platform/68360/head-rom.S +++ b/arch/m68k/platform/68360/head-rom.S | |||
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | .global _stext | 15 | .global _stext |
16 | .global _sbss | 16 | .global __bss_start |
17 | .global _start | 17 | .global _start |
18 | 18 | ||
19 | .global _rambase | 19 | .global _rambase |
@@ -229,8 +229,8 @@ LD1: | |||
229 | cmp.l #_edata, %a1 | 229 | cmp.l #_edata, %a1 |
230 | blt LD1 | 230 | blt LD1 |
231 | 231 | ||
232 | moveal #_sbss, %a0 | 232 | moveal #__bss_start, %a0 |
233 | moveal #_ebss, %a1 | 233 | moveal #__bss_stop, %a1 |
234 | 234 | ||
235 | /* Copy 0 to %a0 until %a0 == %a1 */ | 235 | /* Copy 0 to %a0 until %a0 == %a1 */ |
236 | L1: | 236 | L1: |
@@ -244,7 +244,7 @@ load_quicc: | |||
244 | store_ram_size: | 244 | store_ram_size: |
245 | /* Set ram size information */ | 245 | /* Set ram size information */ |
246 | move.l #_sdata, _rambase | 246 | move.l #_sdata, _rambase |
247 | move.l #_ebss, _ramstart | 247 | move.l #__bss_stop, _ramstart |
248 | move.l #RAMEND, %d0 | 248 | move.l #RAMEND, %d0 |
249 | sub.l #0x1000, %d0 /* Reserve 4K for stack space.*/ | 249 | sub.l #0x1000, %d0 /* Reserve 4K for stack space.*/ |
250 | move.l %d0, _ramend /* Different from RAMEND.*/ | 250 | move.l %d0, _ramend /* Different from RAMEND.*/ |
diff --git a/arch/m68k/platform/coldfire/head.S b/arch/m68k/platform/coldfire/head.S index c3db70ed33b3..7e16562ec1f4 100644 --- a/arch/m68k/platform/coldfire/head.S +++ b/arch/m68k/platform/coldfire/head.S | |||
@@ -230,8 +230,8 @@ _vstart: | |||
230 | /* | 230 | /* |
231 | * Move ROM filesystem above bss :-) | 231 | * Move ROM filesystem above bss :-) |
232 | */ | 232 | */ |
233 | lea _sbss,%a0 /* get start of bss */ | 233 | lea __bss_start,%a0 /* get start of bss */ |
234 | lea _ebss,%a1 /* set up destination */ | 234 | lea __bss_stop,%a1 /* set up destination */ |
235 | movel %a0,%a2 /* copy of bss start */ | 235 | movel %a0,%a2 /* copy of bss start */ |
236 | 236 | ||
237 | movel 8(%a0),%d0 /* get size of ROMFS */ | 237 | movel 8(%a0),%d0 /* get size of ROMFS */ |
@@ -249,7 +249,7 @@ _copy_romfs: | |||
249 | bne _copy_romfs | 249 | bne _copy_romfs |
250 | 250 | ||
251 | #else /* CONFIG_ROMFS_FS */ | 251 | #else /* CONFIG_ROMFS_FS */ |
252 | lea _ebss,%a1 | 252 | lea __bss_stop,%a1 |
253 | movel %a1,_ramstart | 253 | movel %a1,_ramstart |
254 | #endif /* CONFIG_ROMFS_FS */ | 254 | #endif /* CONFIG_ROMFS_FS */ |
255 | 255 | ||
@@ -257,8 +257,8 @@ _copy_romfs: | |||
257 | /* | 257 | /* |
258 | * Zero out the bss region. | 258 | * Zero out the bss region. |
259 | */ | 259 | */ |
260 | lea _sbss,%a0 /* get start of bss */ | 260 | lea __bss_start,%a0 /* get start of bss */ |
261 | lea _ebss,%a1 /* get end of bss */ | 261 | lea __bss_stop,%a1 /* get end of bss */ |
262 | clrl %d0 /* set value */ | 262 | clrl %d0 /* set value */ |
263 | _clear_bss: | 263 | _clear_bss: |
264 | movel %d0,(%a0)+ /* clear each word */ | 264 | movel %d0,(%a0)+ /* clear each word */ |