diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-10-30 04:32:08 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-10-30 04:32:08 -0400 |
commit | 69d1ef4caf77da7164d3e392bf0a8057b42cf26e (patch) | |
tree | fe668f08b4f4cdbfdd17768a4b92dd5d76f19658 /arch | |
parent | 2278caa3c850c8f0aac4e1db7649a2c90cdaa9e9 (diff) |
sh: Move zero page param defs somewhere sensible.
Follows s390 and others.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/setup.c | 25 |
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 | ||
58 | extern int root_mountflags; | 58 | extern 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 | ||
78 | static char __initdata command_line[COMMAND_LINE_SIZE] = { 0, }; | 64 | static char __initdata command_line[COMMAND_LINE_SIZE] = { 0, }; |
79 | 65 | ||
80 | static struct resource code_resource = { .name = "Kernel code", }; | 66 | static struct resource code_resource = { |
81 | static struct resource data_resource = { .name = "Kernel data", }; | 67 | .name = "Kernel code", |
68 | .flags = IORESOURCE_BUSY | IORESOURCE_MEM, | ||
69 | }; | ||
70 | |||
71 | static struct resource data_resource = { | ||
72 | .name = "Kernel data", | ||
73 | .flags = IORESOURCE_BUSY | IORESOURCE_MEM, | ||
74 | }; | ||
82 | 75 | ||
83 | unsigned long memory_start; | 76 | unsigned long memory_start; |
84 | EXPORT_SYMBOL(memory_start); | 77 | EXPORT_SYMBOL(memory_start); |