/arch/sh/include/asm/setup.h

http://github.com/mirrors/linux · C Header · 25 lines · 15 code · 5 blank · 5 comment · 0 complexity · f3b3dc12a8eb7e8ea2962204b4cb8c78 MD5 · raw file

  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _SH_SETUP_H
  3. #define _SH_SETUP_H
  4. #include <uapi/asm/setup.h>
  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 /* _SH_SETUP_H */