14#ifndef ZEPHYR_INCLUDE_ARCH_TRICORE_ARCH_INLINES_H_
15#define ZEPHYR_INCLUDE_ARCH_TRICORE_ARCH_INLINES_H_
27 uint32_t id = cr_read(TRICORE_CORE_ID) & 0x7U;
30 if (
IS_ENABLED(CONFIG_CPU_TC162) && (
id == 6U)) {
39#if defined(CONFIG_SMP)
42 return &_kernel.cpus[0];
48 return CONFIG_MP_MAX_NUM_CPUS;
TriCore Core Special Function Register (CSFR) addresses.
static unsigned int arch_num_cpus(void)
Returns the number of CPUs.
static struct _cpu * arch_curr_cpu(void)
Return the CPU struct for the currently executing CPU.
static uint32_t arch_proc_id(void)
Processor hardware ID.
#define IS_ENABLED(config_macro)
Check for macro definition in compiler-visible expressions.
Definition util_macro.h:154
__UINT32_TYPE__ uint32_t
Definition stdint.h:90