itim.h 454 B

123456789101112131415161718192021
  1. /* Copyright 2018 SiFive, Inc */
  2. /* SPDX-License-Identifier: Apache-2.0 */
  3. #ifndef METAL__ITIM_H
  4. #define METAL__ITIM_H
  5. /*! @file itim.h
  6. *
  7. * API for manipulating ITIM allocation
  8. */
  9. /*! @def METAL_PLACE_IN_ITIM
  10. * @brief Link a function into the ITIM
  11. *
  12. * Link a function into the ITIM (Instruction Tightly Integrated
  13. * Memory) if the ITIM is present on the target device.
  14. */
  15. #define METAL_PLACE_IN_ITIM __attribute__((section(".itim")))
  16. #endif