[BSP][raspberry-pi/raspi2]Add cpuport.h (#10158)

Create cpuport.h

Add support for spinlock
This commit is contained in:
qilian 2025-04-01 07:37:09 +08:00 committed by GitHub
parent 4d826cad13
commit 98589e6229
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#ifndef CPUPORT_H__
#define CPUPORT_H__
typedef union {
unsigned long slock;
struct __arch_tickets {
unsigned short owner;
unsigned short next;
} tickets;
} rt_hw_spinlock_t;
#endif /*CPUPORT_H__*/