Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1f91bbb58413e0bce9726cd6d12bf4b95c343a7f
Commit:     1f91bbb58413e0bce9726cd6d12bf4b95c343a7f
Parent:     e71cf2b63c861bdcbe13d0a67d5007b5933c61a5
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Mon Sep 24 18:11:27 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Mon Sep 24 18:11:27 2007 +0900

    sh: Define _ebss for uClinux MTD map driver.
    
    The uClinux MTD device uses _ebss, add the symbol and corresponding
    export.
    
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
---
 arch/sh/kernel/sh_ksyms.c    |    3 ++-
 arch/sh/kernel/vmlinux.lds.S |    1 +
 include/asm-sh/sections.h    |    1 +
 3 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/arch/sh/kernel/sh_ksyms.c b/arch/sh/kernel/sh_ksyms.c
index cac7380..548e428 100644
--- a/arch/sh/kernel/sh_ksyms.c
+++ b/arch/sh/kernel/sh_ksyms.c
@@ -8,7 +8,7 @@
 #include <linux/vmalloc.h>
 #include <linux/pci.h>
 #include <linux/irq.h>
-
+#include <asm/sections.h>
 #include <asm/semaphore.h>
 #include <asm/processor.h>
 #include <asm/uaccess.h>
@@ -149,3 +149,4 @@ EXPORT_SYMBOL(csum_ipv6_magic);
 #endif
 EXPORT_SYMBOL(clear_page);
 EXPORT_SYMBOL(__clear_user);
+EXPORT_SYMBOL(_ebss);
diff --git a/arch/sh/kernel/vmlinux.lds.S b/arch/sh/kernel/vmlinux.lds.S
index 9cb95af..84a203b 100644
--- a/arch/sh/kernel/vmlinux.lds.S
+++ b/arch/sh/kernel/vmlinux.lds.S
@@ -107,6 +107,7 @@ SECTIONS
        *(.bss.page_aligned)
        *(.bss)
        . = ALIGN(4);
+       _ebss = .;                      /* uClinux MTD sucks */
        _end = . ;
   }
 
diff --git a/include/asm-sh/sections.h b/include/asm-sh/sections.h
index 2a696b8..bd9cbc9 100644
--- a/include/asm-sh/sections.h
+++ b/include/asm-sh/sections.h
@@ -4,6 +4,7 @@
 #include <asm-generic/sections.h>
 
 extern long __machvec_start, __machvec_end;
+extern char _ebss[];
 
 #endif /* __ASM_SH_SECTIONS_H */
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to