setup.h 686 B

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