-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make openamp can run on xtensa dsp Signed-off-by: Guiding Li <liguiding1@xiaomi.com>
- Loading branch information
1 parent
af087df
commit 70249cf
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
collect (PROJECT_LIB_HEADERS atomic.h) | ||
collect (PROJECT_LIB_HEADERS cpu.h) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2015, Xiaomi Inc. and Contributors. All rights reserved. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
/* | ||
* @file xtensa/atomic.h | ||
* @brief Xtensa specific atomic primitives for libmetal. | ||
*/ | ||
|
||
#ifndef __METAL_XTENSA_ATOMIC__H__ | ||
#define __METAL_XTENSA_ATOMIC__H__ | ||
|
||
#endif /* __METAL_XTENSA_ATOMIC__H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright (c) 2015, Xiaomi Inc. and Contributors. All rights reserved. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
/* | ||
* @file cpu.h | ||
* @brief CPU specific primatives | ||
*/ | ||
|
||
#ifndef __METAL_XTENSA_CPU__H__ | ||
#define __METAL_XTENSA_CPU__H__ | ||
|
||
#define metal_cpu_yield() | ||
#define __sync_synchronize() | ||
|
||
#endif /* __METAL_XTENSA_CPU__H__ */ |