Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This is set up by the setup-routine at boot-time |
| 3 | */ |
Adrian Bunk | 7d1362c | 2006-12-06 20:40:38 -0800 | [diff] [blame] | 4 | |
| 5 | #define COMMAND_LINE_SIZE 512 |
| 6 | |
| 7 | #ifdef __KERNEL__ |
| 8 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | #define PARAM ((unsigned char *)empty_zero_page) |
| 10 | |
| 11 | #define MOUNT_ROOT_RDONLY (*(unsigned long *) (PARAM+0x000)) |
| 12 | #define RAMDISK_FLAGS (*(unsigned long *) (PARAM+0x004)) |
| 13 | #define ORIG_ROOT_DEV (*(unsigned long *) (PARAM+0x008)) |
| 14 | #define LOADER_TYPE (*(unsigned long *) (PARAM+0x00c)) |
| 15 | #define INITRD_START (*(unsigned long *) (PARAM+0x010)) |
| 16 | #define INITRD_SIZE (*(unsigned long *) (PARAM+0x014)) |
| 17 | |
| 18 | #define M32R_CPUCLK (*(unsigned long *) (PARAM+0x018)) |
| 19 | #define M32R_BUSCLK (*(unsigned long *) (PARAM+0x01c)) |
| 20 | #define M32R_TIMER_DIVIDE (*(unsigned long *) (PARAM+0x020)) |
| 21 | |
| 22 | #define COMMAND_LINE ((char *) (PARAM+0x100)) |
| 23 | |
| 24 | #define SCREEN_INFO (*(struct screen_info *) (PARAM+0x200)) |
| 25 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | #define RAMDISK_IMAGE_START_MASK (0x07FF) |
| 27 | #define RAMDISK_PROMPT_FLAG (0x8000) |
| 28 | #define RAMDISK_LOAD_FLAG (0x4000) |
| 29 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | extern unsigned long memory_start; |
| 31 | extern unsigned long memory_end; |
| 32 | |
Adrian Bunk | 7d1362c | 2006-12-06 20:40:38 -0800 | [diff] [blame] | 33 | #endif /* __KERNEL__ */ |
| 34 | |