blob: 465a22df8fd029baa750e02c47b8ca438e22bd70 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _SH_SETUP_H
2#define _SH_SETUP_H
3
Paul Mundt2b74b852009-06-14 23:27:41 +09004#include <asm-generic/setup.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Adrian Bunk7d1362c2006-12-06 20:40:38 -08006#ifdef __KERNEL__
Paul Mundt69d1ef42007-10-30 17:32:08 +09007/*
8 * This is set up by the setup-routine at boot-time
9 */
10#define PARAM ((unsigned char *)empty_zero_page)
11
12#define MOUNT_ROOT_RDONLY (*(unsigned long *) (PARAM+0x000))
13#define RAMDISK_FLAGS (*(unsigned long *) (PARAM+0x004))
14#define ORIG_ROOT_DEV (*(unsigned long *) (PARAM+0x008))
15#define LOADER_TYPE (*(unsigned long *) (PARAM+0x00c))
16#define INITRD_START (*(unsigned long *) (PARAM+0x010))
17#define INITRD_SIZE (*(unsigned long *) (PARAM+0x014))
18/* ... */
19#define COMMAND_LINE ((char *) (PARAM+0x100))
20
Paul Mundt9655ad02007-05-14 15:59:09 +090021void sh_mv_setup(void);
Paul Mundt4bc277a2010-05-11 13:32:19 +090022void check_for_initrd(void);
David Howellse839ca52012-03-28 18:30:03 +010023void per_cpu_trap_init(void);
Paul Mundta80fd212006-09-27 14:26:53 +090024
Linus Torvalds1da177e2005-04-16 15:20:36 -070025#endif /* __KERNEL__ */
Adrian Bunk7d1362c2006-12-06 20:40:38 -080026
27#endif /* _SH_SETUP_H */