aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/setup.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index c439a7ecd059..0b8c45d53a47 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -57,28 +57,21 @@ struct screen_info screen_info;
57 57
58extern int root_mountflags; 58extern int root_mountflags;
59 59
60/*
61 * This is set up by the setup-routine at boot-time
62 */
63#define PARAM ((unsigned char *)empty_zero_page)
64
65#define MOUNT_ROOT_RDONLY (*(unsigned long *) (PARAM+0x000))
66#define RAMDISK_FLAGS (*(unsigned long *) (PARAM+0x004))
67#define ORIG_ROOT_DEV (*(unsigned long *) (PARAM+0x008))
68#define LOADER_TYPE (*(unsigned long *) (PARAM+0x00c))
69#define INITRD_START (*(unsigned long *) (PARAM+0x010))
70#define INITRD_SIZE (*(unsigned long *) (PARAM+0x014))
71/* ... */
72#define COMMAND_LINE ((char *) (PARAM+0x100))
73
74#define RAMDISK_IMAGE_START_MASK 0x07FF 60#define RAMDISK_IMAGE_START_MASK 0x07FF
75#define RAMDISK_PROMPT_FLAG 0x8000 61#define RAMDISK_PROMPT_FLAG 0x8000
76#define RAMDISK_LOAD_FLAG 0x4000 62#define RAMDISK_LOAD_FLAG 0x4000
77 63
78static char __initdata command_line[COMMAND_LINE_SIZE] = { 0, }; 64static char __initdata command_line[COMMAND_LINE_SIZE] = { 0, };
79 65
80static struct resource code_resource = { .name = "Kernel code", }; 66static struct resource code_resource = {
81static struct resource data_resource = { .name = "Kernel data", }; 67 .name = "Kernel code",
68 .flags = IORESOURCE_BUSY | IORESOURCE_MEM,
69};
70
71static struct resource data_resource = {
72 .name = "Kernel data",
73 .flags = IORESOURCE_BUSY | IORESOURCE_MEM,
74};
82 75
83unsigned long memory_start; 76unsigned long memory_start;
84EXPORT_SYMBOL(memory_start); 77EXPORT_SYMBOL(memory_start);