Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
arch.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
11
12#ifndef ZEPHYR_INCLUDE_ARCH_HEXAGON_ARCH_H_
13#define ZEPHYR_INCLUDE_ARCH_HEXAGON_ARCH_H_
14
15#include <zephyr/devicetree.h>
22#include <zephyr/sys/util.h>
23#include <zephyr/kernel/mm.h>
24#include <hexagon_vm.h>
25#include <irq.h>
26#include <irq_connect.h>
27#include <zephyr/sw_isr_table.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
38static inline void arch_kernel_init(void)
39{
40}
41
48
54static inline uint32_t arch_k_cycle_get_32(void)
55{
57}
58
65
71static inline uint64_t arch_k_cycle_get_64(void)
72{
74}
75
79static inline void arch_nop(void)
80{
81 __asm__ volatile("nop");
82}
83
84/* ISR nesting counter -- incremented/decremented in irq_manage.c */
85extern uint32_t z_hexagon_isr_nesting;
86
93static inline bool arch_is_in_isr(void)
94{
95 return z_hexagon_isr_nesting != 0U;
96}
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif /* ZEPHYR_INCLUDE_ARCH_HEXAGON_ARCH_H_ */
static ALWAYS_INLINE void arch_nop(void)
Definition arch.h:351
Per-arch thread definition.
Devicetree main header.
static bool arch_is_in_isr(void)
Check if currently executing in interrupt context.
Definition arch.h:93
uint64_t sys_clock_cycle_get_64(void)
Get the current system clock cycle count as a 64-bit value.
uint32_t sys_clock_cycle_get_32(void)
Get the current system clock cycle count as a 32-bit value.
static void arch_kernel_init(void)
Architecture-specific kernel initialization.
Definition arch.h:38
static uint32_t arch_k_cycle_get_32(void)
Get the current cycle count (32-bit).
Definition arch.h:54
static uint64_t arch_k_cycle_get_64(void)
Get the current cycle count (64-bit).
Definition arch.h:71
Hexagon exception stack frame definition.
Hexagon fatal error handling.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
Software-managed ISR table.
Misc utilities.