setup.h 732 B

12345678910111213141516171819202122232425262728
  1. #ifndef _SH_SETUP_H
  2. #define _SH_SETUP_H
  3. #include <asm-generic/setup.h>
  4. #ifdef __KERNEL__
  5. /*
  6. * This is set up by the setup-routine at boot-time
  7. */
  8. #define PARAM ((unsigned char *)empty_zero_page)
  9. #define MOUNT_ROOT_RDONLY (*(unsigned long *) (PARAM+0x000))
  10. #define RAMDISK_FLAGS (*(unsigned long *) (PARAM+0x004))
  11. #define ORIG_ROOT_DEV (*(unsigned long *) (PARAM+0x008))
  12. #define LOADER_TYPE (*(unsigned long *) (PARAM+0x00c))
  13. #define INITRD_START (*(unsigned long *) (PARAM+0x010))
  14. #define INITRD_SIZE (*(unsigned long *) (PARAM+0x014))
  15. /* ... */
  16. #define COMMAND_LINE ((char *) (PARAM+0x100))
  17. void sh_mv_setup(void);
  18. void check_for_initrd(void);
  19. void per_cpu_trap_init(void);
  20. #endif /* __KERNEL__ */
  21. #endif /* _SH_SETUP_H */