cache.h 722 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2011 The Chromium OS Authors.
  4. */
  5. #ifndef __SANDBOX_CACHE_H__
  6. #define __SANDBOX_CACHE_H__
  7. /*
  8. * For native compilation of the sandbox we should still align
  9. * the contents of stack buffers to something reasonable. The
  10. * GCC macro __BIGGEST_ALIGNMENT__ is defined to be the maximum
  11. * required alignment for any basic type. This seems reasonable.
  12. * This is however GCC specific so if we don't have that available
  13. * assume that 16 is large enough.
  14. */
  15. #ifdef __BIGGEST_ALIGNMENT__
  16. #define ARCH_DMA_MINALIGN __BIGGEST_ALIGNMENT__
  17. #else
  18. #define ARCH_DMA_MINALIGN 16
  19. #endif
  20. #define CONFIG_SYS_CACHELINE_SIZE ARCH_DMA_MINALIGN
  21. #endif /* __SANDBOX_CACHE_H__ */