cpuport.h 419 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2006-2020, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. */
  9. #ifndef CPUPORT_H__
  10. #define CPUPORT_H__
  11. #ifdef RT_USING_SMP
  12. typedef union {
  13. unsigned long slock;
  14. struct __arch_tickets {
  15. unsigned short owner;
  16. unsigned short next;
  17. } tickets;
  18. } rt_hw_spinlock_t;
  19. #endif
  20. #endif /*CPUPORT_H__*/