You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
419 B
24 lines
419 B
5 months ago
|
/*
|
||
|
* Copyright (c) 2006-2020, RT-Thread Development Team
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*
|
||
|
* Change Logs:
|
||
|
* Date Author Notes
|
||
|
*/
|
||
|
|
||
|
#ifndef CPUPORT_H__
|
||
|
#define CPUPORT_H__
|
||
|
|
||
|
#ifdef RT_USING_SMP
|
||
|
typedef union {
|
||
|
unsigned long slock;
|
||
|
struct __arch_tickets {
|
||
|
unsigned short owner;
|
||
|
unsigned short next;
|
||
|
} tickets;
|
||
|
} rt_hw_spinlock_t;
|
||
|
#endif
|
||
|
|
||
|
#endif /*CPUPORT_H__*/
|