diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2011-01-04 06:39:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-04 22:25:04 -0500 |
commit | b2a39b0d8ec2ce2bdcff4e01572b4e885220254d (patch) | |
tree | 94ff9af8e41ecd030237043fef8acdf2d690d0c6 /arch/sparc | |
parent | e405ae76af19cd2c85335b842f880a2bc98ba785 (diff) |
sparc: use _start for the start entry (like 64 bit does)
We use "_start" in 64 bit - do the same in 32 bit.
It is always good to be consistent.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/boot/piggyback_32.c | 6 | ||||
-rw-r--r-- | arch/sparc/kernel/head_32.S | 3 | ||||
-rw-r--r-- | arch/sparc/mm/sun4c.c | 8 |
3 files changed, 7 insertions, 10 deletions
diff --git a/arch/sparc/boot/piggyback_32.c b/arch/sparc/boot/piggyback_32.c index cfd95ec01f18..5c86a7d03b6f 100644 --- a/arch/sparc/boot/piggyback_32.c +++ b/arch/sparc/boot/piggyback_32.c | |||
@@ -73,9 +73,9 @@ static void usage(void) | |||
73 | 73 | ||
74 | static int start_line(const char *line) | 74 | static int start_line(const char *line) |
75 | { | 75 | { |
76 | if (strcmp(line + 8, " T start\n") == 0) | 76 | if (strcmp(line + 8, " T _start\n") == 0) |
77 | return 1; | 77 | return 1; |
78 | else if (strcmp(line + 16, " T start\n") == 0) | 78 | else if (strcmp(line + 16, " T _start\n") == 0) |
79 | return 1; | 79 | return 1; |
80 | return 0; | 80 | return 0; |
81 | } | 81 | } |
@@ -92,7 +92,7 @@ static int end_line(const char *line) | |||
92 | /* | 92 | /* |
93 | * Find address for start and end in System.map. | 93 | * Find address for start and end in System.map. |
94 | * The file looks like this: | 94 | * The file looks like this: |
95 | * f0004000 T start | 95 | * f0004000 T _start |
96 | * f0379f79 A _end | 96 | * f0379f79 A _end |
97 | * 1234567890123456 | 97 | * 1234567890123456 |
98 | * ^coloumn 1 | 98 | * ^coloumn 1 |
diff --git a/arch/sparc/kernel/head_32.S b/arch/sparc/kernel/head_32.S index 21bb2590d4ae..59423491cef8 100644 --- a/arch/sparc/kernel/head_32.S +++ b/arch/sparc/kernel/head_32.S | |||
@@ -73,12 +73,11 @@ sun4e_notsup: | |||
73 | 73 | ||
74 | /* The Sparc trap table, bootloader gives us control at _start. */ | 74 | /* The Sparc trap table, bootloader gives us control at _start. */ |
75 | __HEAD | 75 | __HEAD |
76 | .globl start, _stext, _start, __stext | 76 | .globl _stext, _start, __stext |
77 | .globl trapbase | 77 | .globl trapbase |
78 | _start: /* danger danger */ | 78 | _start: /* danger danger */ |
79 | __stext: | 79 | __stext: |
80 | _stext: | 80 | _stext: |
81 | start: | ||
82 | trapbase: | 81 | trapbase: |
83 | #ifdef CONFIG_SMP | 82 | #ifdef CONFIG_SMP |
84 | trapbase_cpu0: | 83 | trapbase_cpu0: |
diff --git a/arch/sparc/mm/sun4c.c b/arch/sparc/mm/sun4c.c index ddd0d86e508e..b5137cc2aba3 100644 --- a/arch/sparc/mm/sun4c.c +++ b/arch/sparc/mm/sun4c.c | |||
@@ -435,16 +435,14 @@ void __init sun4c_probe_memerr_reg(void) | |||
435 | 435 | ||
436 | static inline void sun4c_init_ss2_cache_bug(void) | 436 | static inline void sun4c_init_ss2_cache_bug(void) |
437 | { | 437 | { |
438 | extern unsigned long start; | ||
439 | |||
440 | if ((idprom->id_machtype == (SM_SUN4C | SM_4C_SS2)) || | 438 | if ((idprom->id_machtype == (SM_SUN4C | SM_4C_SS2)) || |
441 | (idprom->id_machtype == (SM_SUN4C | SM_4C_IPX)) || | 439 | (idprom->id_machtype == (SM_SUN4C | SM_4C_IPX)) || |
442 | (idprom->id_machtype == (SM_SUN4C | SM_4C_ELC))) { | 440 | (idprom->id_machtype == (SM_SUN4C | SM_4C_ELC))) { |
443 | /* Whee.. */ | 441 | /* Whee.. */ |
444 | printk("SS2 cache bug detected, uncaching trap table page\n"); | 442 | printk("SS2 cache bug detected, uncaching trap table page\n"); |
445 | sun4c_flush_page((unsigned int) &start); | 443 | sun4c_flush_page((unsigned int) &_start); |
446 | sun4c_put_pte(((unsigned long) &start), | 444 | sun4c_put_pte(((unsigned long) &_start), |
447 | (sun4c_get_pte((unsigned long) &start) | _SUN4C_PAGE_NOCACHE)); | 445 | (sun4c_get_pte((unsigned long) &_start) | _SUN4C_PAGE_NOCACHE)); |
448 | } | 446 | } |
449 | } | 447 | } |
450 | 448 | ||