diff options
-rw-r--r-- | arch/sh/kernel/setup.c | 25 | ||||
-rw-r--r-- | include/asm-sh/setup.h | 14 |
2 files changed, 23 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); |
diff --git a/include/asm-sh/setup.h b/include/asm-sh/setup.h index 586a9711a75d..55a2bd328d99 100644 --- a/include/asm-sh/setup.h +++ b/include/asm-sh/setup.h | |||
@@ -5,6 +5,20 @@ | |||
5 | 5 | ||
6 | #ifdef __KERNEL__ | 6 | #ifdef __KERNEL__ |
7 | 7 | ||
8 | /* | ||
9 | * This is set up by the setup-routine at boot-time | ||
10 | */ | ||
11 | #define PARAM ((unsigned char *)empty_zero_page) | ||
12 | |||
13 | #define MOUNT_ROOT_RDONLY (*(unsigned long *) (PARAM+0x000)) | ||
14 | #define RAMDISK_FLAGS (*(unsigned long *) (PARAM+0x004)) | ||
15 | #define ORIG_ROOT_DEV (*(unsigned long *) (PARAM+0x008)) | ||
16 | #define LOADER_TYPE (*(unsigned long *) (PARAM+0x00c)) | ||
17 | #define INITRD_START (*(unsigned long *) (PARAM+0x010)) | ||
18 | #define INITRD_SIZE (*(unsigned long *) (PARAM+0x014)) | ||
19 | /* ... */ | ||
20 | #define COMMAND_LINE ((char *) (PARAM+0x100)) | ||
21 | |||
8 | int setup_early_printk(char *); | 22 | int setup_early_printk(char *); |
9 | void sh_mv_setup(void); | 23 | void sh_mv_setup(void); |
10 | 24 | ||