types.h 431 B

12345678910111213141516171819202122232425
  1. /*
  2. * SPDX-License-Identifier: BSD-2-Clause
  3. *
  4. * Copyright (c) 2021 Jessica Clarke <jrtc27@jrtc27.com>
  5. */
  6. #ifndef __SYS_TYPES_H__
  7. #define __SYS_TYPES_H__
  8. #include <sbi/sbi_types.h>
  9. typedef unsigned long u_long;
  10. typedef int64_t quad_t;
  11. typedef uint64_t u_quad_t;
  12. #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
  13. #define _QUAD_LOWWORD 1
  14. #define _QUAD_HIGHWORD 0
  15. #else
  16. #define _QUAD_LOWWORD 0
  17. #define _QUAD_HIGHWORD 1
  18. #endif
  19. #endif