blob: 6a0b32202d4e0ee901b3c93f44dcd87d7761a738 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * This is set up by the setup-routine at boot-time
3 */
Adrian Bunk7d1362c2006-12-06 20:40:38 -08004
5#define COMMAND_LINE_SIZE 512
6
7#ifdef __KERNEL__
8
Linus Torvalds1da177e2005-04-16 15:20:36 -07009#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 Torvalds1da177e2005-04-16 15:20:36 -070026#define RAMDISK_IMAGE_START_MASK (0x07FF)
27#define RAMDISK_PROMPT_FLAG (0x8000)
28#define RAMDISK_LOAD_FLAG (0x4000)
29
Linus Torvalds1da177e2005-04-16 15:20:36 -070030extern unsigned long memory_start;
31extern unsigned long memory_end;
32
Adrian Bunk7d1362c2006-12-06 20:40:38 -080033#endif /* __KERNEL__ */
34