增加所有文件

This commit is contained in:
2025-11-07 09:57:14 +08:00
parent b598c1d479
commit 97bc808489
9392 changed files with 3483224 additions and 21 deletions

View File

@@ -0,0 +1,62 @@
/*
* atomic.h
*
* Copyright (c) 2020 Semidrive Semiconductor.
* All rights reserved.
*
* Description: ARM atomic interface.
*
* Revision History:
* -----------------
*/
#ifndef INCLUDE_ARCH_ATOMIC_H
#define INCLUDE_ARCH_ATOMIC_H
#ifndef ASSEMBLY
#include <compiler.h>
__BEGIN_CDECLS
/*
* atomic swap.
*
* @ptr address of data A.
* @val value of data B.
* @return old value of data A.
*/
int arch_atomic_swap(int *ptr, int val);
/*
* atomic add.
*
* @ptr address of data A.
* @val value of data B.
* @return old value of data A.
*/
int arch_atomic_add(int *ptr, int val);
/*
* atomic and.
*
* @ptr address of data A.
* @val value of data B.
* @return old value of data A.
*/
int arch_atomic_and(int *ptr, int val);
/*
* atomic or.
*
* @ptr address of data A.
* @val value of data B.
* @return old value of data A.
*/
int arch_atomic_or(int *ptr, int val);
__END_CDECLS
#endif
#endif