blob: 99238108e7a51b6af6815e42a6e34f1799a0bc99 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _SH_SETUP_H
2#define _SH_SETUP_H
3
David Howells0a9426d2012-10-09 09:47:37 +01004#include <uapi/asm/setup.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Paul Mundt69d1ef42007-10-30 17:32:08 +09006/*
7 * This is set up by the setup-routine at boot-time
8 */
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 COMMAND_LINE ((char *) (PARAM+0x100))
19
Paul Mundt9655ad02007-05-14 15:59:09 +090020void sh_mv_setup(void);
Paul Mundt4bc277a2010-05-11 13:32:19 +090021void check_for_initrd(void);
David Howellse839ca52012-03-28 18:30:03 +010022void per_cpu_trap_init(void);
Paul Mundta80fd212006-09-27 14:26:53 +090023
Adrian Bunk7d1362c2006-12-06 20:40:38 -080024#endif /* _SH_SETUP_H */