setup.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _ASM_M32R_SETUP_H
  2. #define _ASM_M32R_SETUP_H
  3. /*
  4. * This is set up by the setup-routine at boot-time
  5. */
  6. #define COMMAND_LINE_SIZE 512
  7. #ifdef __KERNEL__
  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. #define M32R_CPUCLK (*(unsigned long *) (PARAM+0x018))
  16. #define M32R_BUSCLK (*(unsigned long *) (PARAM+0x01c))
  17. #define M32R_TIMER_DIVIDE (*(unsigned long *) (PARAM+0x020))
  18. #define COMMAND_LINE ((char *) (PARAM+0x100))
  19. #define SCREEN_INFO (*(struct screen_info *) (PARAM+0x200))
  20. #define RAMDISK_IMAGE_START_MASK (0x07FF)
  21. #define RAMDISK_PROMPT_FLAG (0x8000)
  22. #define RAMDISK_LOAD_FLAG (0x4000)
  23. extern unsigned long memory_start;
  24. extern unsigned long memory_end;
  25. #endif /* __KERNEL__ */
  26. #endif /* _ASM_M32R_SETUP_H */