Skip to content

Commit

Permalink
arch: microblaze: Add arch_inlines.h
Browse files Browse the repository at this point in the history
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 <alp.sayin@amd.com>
  • Loading branch information
alpsayin committed Jan 18, 2023
1 parent a15ebdb commit 9a9d563
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/zephyr/arch/arch_inlines.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
#include <zephyr/arch/posix/arch_inlines.h>
#elif defined(CONFIG_SPARC)
#include <zephyr/arch/sparc/arch_inlines.h>
#elif defined(CONFIG_MICROBLAZE)
#include <zephyr/arch/microblaze/arch_inlines.h>
#else
#error "Unknown Architecture"
#endif
Expand Down
18 changes: 18 additions & 0 deletions include/zephyr/arch/microblaze/arch_inlines.h
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 */

0 comments on commit 9a9d563

Please sign in to comment.