cpuport.h 440 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-01-22 rose_man add RT_USING_SMP
  9. */
  10. #ifndef CPUPORT_H__
  11. #define CPUPORT_H__
  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 /*CPUPORT_H__*/