]> err.no Git - linux-2.6/commitdiff
sh: Kill off legacy embedded ramdisk section.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 30 Oct 2007 08:25:29 +0000 (17:25 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 30 Oct 2007 08:25:29 +0000 (17:25 +0900)
When the SH kernel used to support embedding a ramdisk in the
pre-initramfs days it was placed in a special section and made to
look like a regular initrd. Since that was removed ages ago, kill
off the remaining cruft that was missed.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/setup.c
arch/sh/kernel/vmlinux.lds.S

index a031c6773906071acc689bed99cfaa1528233375..c439a7ecd0595291440b76434a9e42ea84f8b59d 100644 (file)
 #include <asm/clock.h>
 #include <asm/mmu_context.h>
 
-extern void * __rd_start, * __rd_end;
-
-/*
- * Machine setup..
- */
-
 /*
  * Initialize loops_per_jiffy as 10000000 (1000MIPS).
  * This value will be used at the very early stage of serial setup.
@@ -194,14 +188,7 @@ void __init setup_bootmem_allocator(unsigned long free_pfn)
        sparse_memory_present_with_active_regions(0);
 
 #ifdef CONFIG_BLK_DEV_INITRD
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR, 0);
-       if (&__rd_start != &__rd_end) {
-               LOADER_TYPE = 1;
-               INITRD_START = PHYSADDR((unsigned long)&__rd_start) -
-                                       __MEMORY_START;
-               INITRD_SIZE = (unsigned long)&__rd_end -
-                             (unsigned long)&__rd_start;
-       }
+       ROOT_DEV = Root_RAM0;
 
        if (LOADER_TYPE && INITRD_START) {
                if (INITRD_START + INITRD_SIZE <= (max_low_pfn << PAGE_SHIFT)) {
index 6d5abba2ee271a8147be2f56b2502ccd75600859..081147c401b6c2d3664db9887335ce2ea299e795 100644 (file)
@@ -43,14 +43,6 @@ SECTIONS
 
   .data : {                    /* Data */
        DATA_DATA
-
-        /* Align the initial ramdisk image (INITRD) on page boundaries. */
-        . = ALIGN(PAGE_SIZE);
-        __rd_start = .;
-        *(.initrd)
-        . = ALIGN(PAGE_SIZE);
-        __rd_end = .;
-
        CONSTRUCTORS
        }