-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arch: microblaze: Add arch_inlines.h
This is part of a commit set which aligns the microblaze port with main since the port is based on v3.2. Signed-off-by: Alp Sayin <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 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
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) 2022 Advanced Micro Devices, Inc. (AMD) | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
|
||
#ifndef ZEPHYR_INCLUDE_ARCH_MICROBLAZE_ARCH_INLINES_H | ||
#define ZEPHYR_INCLUDE_ARCH_MICROBLAZE_ARCH_INLINES_H | ||
|
||
#include <zephyr/kernel_structs.h> | ||
|
||
static ALWAYS_INLINE unsigned int arch_num_cpus(void) | ||
{ | ||
return CONFIG_MP_MAX_NUM_CPUS; | ||
} | ||
|
||
#endif /* ZEPHYR_INCLUDE_ARCH_MICROBLAZE_ARCH_INLINES_H */ |