050-image_h_portability.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. --- a/include/image.h
  2. +++ b/include/image.h
  3. @@ -17,7 +17,6 @@
  4. #define __IMAGE_H__
  5. #include "compiler.h"
  6. -#include <asm/byteorder.h>
  7. /* Define this to avoid #ifdefs later on */
  8. struct lmb;
  9. @@ -258,13 +257,13 @@ struct lmb;
  10. * all data in network byte order (aka natural aka bigendian).
  11. */
  12. typedef struct image_header {
  13. - __be32 ih_magic; /* Image Header Magic Number */
  14. - __be32 ih_hcrc; /* Image Header CRC Checksum */
  15. - __be32 ih_time; /* Image Creation Timestamp */
  16. - __be32 ih_size; /* Image Data Size */
  17. - __be32 ih_load; /* Data Load Address */
  18. - __be32 ih_ep; /* Entry Point Address */
  19. - __be32 ih_dcrc; /* Image Data CRC Checksum */
  20. + uint32_t ih_magic; /* Image Header Magic Number */
  21. + uint32_t ih_hcrc; /* Image Header CRC Checksum */
  22. + uint32_t ih_time; /* Image Creation Timestamp */
  23. + uint32_t ih_size; /* Image Data Size */
  24. + uint32_t ih_load; /* Data Load Address */
  25. + uint32_t ih_ep; /* Entry Point Address */
  26. + uint32_t ih_dcrc; /* Image Data CRC Checksum */
  27. uint8_t ih_os; /* Operating System */
  28. uint8_t ih_arch; /* CPU architecture */
  29. uint8_t ih_type; /* Image Type */