macho64.c 552 B

12345678910111213141516171819
  1. #include <grub/cpu/macho.h>
  2. #include <grub/machoload.h>
  3. #define SUFFIX(x) x ## 64
  4. typedef struct grub_macho_header64 grub_macho_header_t;
  5. typedef struct grub_macho_segment64 grub_macho_segment_t;
  6. typedef grub_uint64_t grub_macho_addr_t;
  7. typedef struct grub_macho_thread64 grub_macho_thread_t;
  8. #define offsetXX offset64
  9. #define ncmdsXX ncmds64
  10. #define cmdsizeXX cmdsize64
  11. #define cmdsXX cmds64
  12. #define endXX end64
  13. #define XX "64"
  14. #define GRUB_MACHO_MAGIC GRUB_MACHO_MAGIC64
  15. #define GRUB_MACHO_CMD_SEGMENT GRUB_MACHO_CMD_SEGMENT64
  16. #include "machoXX.c"