Skip to content

Commit

Permalink
m68knommu: use generic section names in setup code
Browse files Browse the repository at this point in the history
We should be including and using sections.h to get at the extern
definitions of the linker sections in the m68knommu startup code.
Not defining them locally.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Greg Ungerer committed Oct 18, 2011
1 parent 144077e commit c06e9bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/m68k/include/asm/sections.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@

#include <asm-generic/sections.h>

extern char _sbss[], _ebss[];

#endif /* _ASM_M68K_SECTIONS_H */
2 changes: 1 addition & 1 deletion arch/m68k/kernel/setup_no.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <asm/irq.h>
#include <asm/machdep.h>
#include <asm/pgtable.h>
#include <asm/sections.h>

unsigned long memory_start;
unsigned long memory_end;
Expand Down Expand Up @@ -80,7 +81,6 @@ void (*mach_power_off)(void);
#define CPU_INSTR_PER_JIFFY 16
#endif

extern int _stext, _etext, _sdata, _edata, _sbss, _ebss, _end;
extern int _ramstart, _ramend;

#if defined(CONFIG_UBOOT)
Expand Down

0 comments on commit c06e9bb

Please sign in to comment.