Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _SH_SETUP_H |
| 2 | #define _SH_SETUP_H |
| 3 | |
David Howells | 0a9426d | 2012-10-09 09:47:37 +0100 | [diff] [blame^] | 4 | #include <uapi/asm/setup.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
Paul Mundt | 69d1ef4 | 2007-10-30 17:32:08 +0900 | [diff] [blame] | 6 | /* |
| 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 Mundt | 9655ad0 | 2007-05-14 15:59:09 +0900 | [diff] [blame] | 20 | void sh_mv_setup(void); |
Paul Mundt | 4bc277a | 2010-05-11 13:32:19 +0900 | [diff] [blame] | 21 | void check_for_initrd(void); |
David Howells | e839ca5 | 2012-03-28 18:30:03 +0100 | [diff] [blame] | 22 | void per_cpu_trap_init(void); |
Paul Mundt | a80fd21 | 2006-09-27 14:26:53 +0900 | [diff] [blame] | 23 | |
Adrian Bunk | 7d1362c | 2006-12-06 20:40:38 -0800 | [diff] [blame] | 24 | #endif /* _SH_SETUP_H */ |