text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```c /* * */ /** * @file * @brief New thread creation for ARM Cortex-A and Cortex-R * * Core thread related primitives for the ARM Cortex-A and * Cortex-R processor architecture. */ #include <zephyr/kernel.h> #include <zephyr/llext/symbol.h> #include <ksched.h> #include <zephyr/sys/barrier.h> #include <stdboo...
/content/code_sandbox/arch/arm/core/cortex_a_r/thread.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,343
```c /* * ARMv7 MMU support * * This implementation supports the Short-descriptor translation * table format. The standard page size is 4 kB, 1 MB sections * are only used for mapping the code and data of the Zephyr image. * Secure mode and PL1 is always assumed. LPAE and PXN extensions * as well as TEX remappin...
/content/code_sandbox/arch/arm/core/mmu/arm_mmu.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
11,881
```c /* * */ /** * @file * @brief ARM Cortex-A and Cortex-R System Control Block interface */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/sys/util.h> /** * * @brief Reset the system * * This routine resets the processor. * */ void __weak sys_arch_reboot(int type) { ARG_UNUSE...
/content/code_sandbox/arch/arm/core/cortex_a_r/reboot.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
86
```sourcepawn /* */ #ifndef _MACRO_PRIV_INC_ #define _MACRO_PRIV_INC_ #include <zephyr/arch/arm/cortex_a_r/tpidruro.h> /* * Get CPU id */ .macro get_cpu_id rreg0 /* Read MPIDR register */ mrc p15, 0, \rreg0, c0, c0, 5 ubfx \rreg0, \rreg0, #0, #24 .endm /* * Get CPU logic id by looking up cpu_node_list * re...
/content/code_sandbox/arch/arm/core/cortex_a_r/macro_priv.inc
sourcepawn
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
499
```c /* * */ #include "zephyr/kernel/thread_stack.h" #include <zephyr/kernel.h> #include <cortex_a_r/stack.h> #include <string.h> #include <kernel_internal.h> K_KERNEL_STACK_ARRAY_DEFINE(z_arm_fiq_stack, CONFIG_MP_MAX_NUM_CPUS, CONFIG_ARMV7_FIQ_STACK_SIZE); K_KERNEL_STACK_ARRAY_DEFINE(z_arm_abort_stack, CONFIG_MP...
/content/code_sandbox/arch/arm/core/cortex_a_r/stacks.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
306
```unknown /* * */ /** * @file * @brief Exception handlers for ARM Cortex-A and Cortex-R * * This file implements the exception handlers (undefined instruction, prefetch * abort and data abort) for ARM Cortex-A and Cortex-R processors. * * All exception handlers save the exception stack frame into the excepti...
/content/code_sandbox/arch/arm/core/cortex_a_r/exc.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,032
```c /* * */ /** * @file * @brief Full C support initialization * * * Initialization of full C support: zero the .bss, copy the .data if XIP, * call z_cstart(). * * Stack is available in this module, but not the global data/bss until their * initialization is performed. */ #include <zephyr/kernel.h> #incl...
/content/code_sandbox/arch/arm/core/cortex_a_r/prep_c.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,224
```c /* * */ #include <zephyr/kernel.h> #include <kernel_internal.h> #include <errno.h> /* The 'key' actually represents the BASEPRI register * prior to disabling interrupts via the BASEPRI mechanism. * * arch_swap() itself does not do much. */ int arch_swap(unsigned int key) { /* store off key and return val...
/content/code_sandbox/arch/arm/core/cortex_a_r/swap.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
143
```unknown /* * */ /** * @file * @brief ARM Cortex-A and Cortex-R wrapper for ISRs with parameter * * Wrapper installed in vector table for handling dynamic interrupts that accept * a parameter. */ /* * Tell armclang that stack alignment are ensured. */ .eabi_attribute Tag_ABI_align_preserved, 1 #include <z...
/content/code_sandbox/arch/arm/core/cortex_a_r/isr_wrapper.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,734
```objective-c /* * */ /** * @file * @brief Definitions for the boot vector table * * * Definitions for the boot vector table. * * System exception handler names all have the same format: * * __<exception name with underscores> * * No other symbol has the same format, so they are easy to spot. */ #ifn...
/content/code_sandbox/arch/arm/core/cortex_a_r/vector_table.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
239
```unknown /* * */ /** * @file * @brief Populated vector table in ROM */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include "vector_table.h" #include "offsets_short.h" #include "macro_priv.inc" _ASM_FILE_PROLOGUE SECTION_SUBSEC_FUNC(exc_vector_table,_vector_table_section,_vector_table) ...
/content/code_sandbox/arch/arm/core/cortex_a_r/vector_table.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
436
```unknown /* * */ /** * @file * @brief ARM Cortex-A and Cortex-R power management * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #if defined(CONFIG_ARM_ON_EXIT_CPU_IDLE) #include <soc_cpu_idle.h> #endif _ASM_FILE_PROLOGUE GTEXT(arch_cpu_idle) GTEXT(arch_cpu_atomic_idle) .macro _slee...
/content/code_sandbox/arch/arm/core/cortex_a_r/cpu_idle.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
510
```unknown /* * */ /** * @file * @brief Thread context switching for ARM Cortex-A and Cortex-R * * This module implements the routines necessary for thread context switching * on ARM Cortex-A and Cortex-R CPUs. */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <offsets_short.h> #in...
/content/code_sandbox/arch/arm/core/cortex_a_r/swap_helper.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,216
```c /* */ #include <zephyr/kernel/thread_stack.h> #include <zephyr/kernel.h> #include <zephyr/arch/arm/cortex_a_r/lib_helpers.h> #include <zephyr/drivers/interrupt_controller/gic.h> #include <ipi.h> #include "boot.h" #include "zephyr/cache.h" #include "zephyr/kernel/thread_stack.h" #include "zephyr/toolchain/gcc.h" ...
/content/code_sandbox/arch/arm/core/cortex_a_r/smp.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,061
```unknown # ARM Cortex-A and Cortex-R platform configuration options # # NOTE: We have the specific core implementations first and outside of the # if CPU_AARCH32_CORTEX_A / if CPU_AARCH32_CORTEX_R block so that SoCs can # select which core they are using without having to select all the options # related to that co...
/content/code_sandbox/arch/arm/core/cortex_a_r/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,205
```c /* * Organisation (CSIRO) ABN 41 687 119 230. * */ #include <zephyr/sys/util_macro.h> #include <zephyr/arch/common/semihost.h> #if !(defined(CONFIG_ISA_ARM) || defined(CONFIG_ISA_THUMB2)) #error Unsupported ISA #endif long semihost_exec(enum semihost_instr instr, void *args) { register unsigned long r0 __as...
/content/code_sandbox/arch/arm/core/cortex_a_r/semihost.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
227
```unknown /* * */ /** * @file * @brief ARM Cortex-A and Cortex-R exception/interrupt exit API * * Provides functions for performing kernel handling when exiting exceptions, * or interrupts that are installed directly in the vector table (i.e. that are * not wrapped around by _isr_wrapper()). */ #include <ze...
/content/code_sandbox/arch/arm/core/cortex_a_r/exc_exit.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,984
```c /* * */ /** * @file * @brief ARM Cortex-A and Cortex-R interrupt management * * * Interrupt management: enabling/disabling and dynamic ISR * connecting/replacing. SW_ISR_TABLE_DYNAMIC has to be enabled for * connecting ISRs at runtime. */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #includ...
/content/code_sandbox/arch/arm/core/cortex_a_r/irq_manage.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
827
```unknown /* * */ #include <zephyr/toolchain.h> _ASM_FILE_PROLOGUE GTEXT(__aeabi_read_tp) SECTION_FUNC(text, __aeabi_read_tp) /* * TPIDRURW will be used as a base pointer point to TLS aera. */ mrc 15, 0, r0, c13, c0, 2 bx lr ```
/content/code_sandbox/arch/arm/core/cortex_a_r/__aeabi_read_tp.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
85
```unknown /* * */ /** * @file * @brief Reset handler * * Reset handler that prepares the system for running C code. */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <zephyr/arch/cpu.h> #include <offsets_short.h> #include <cortex_a_r/tcm.h> #include "vector_table.h" #include "boot....
/content/code_sandbox/arch/arm/core/cortex_a_r/reset.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,798
```objective-c /* * */ #ifndef ZEPHYR_ARCH_ARM_CORE_AARCH32_MPU_ARM_MPU_V7_INTERNAL_H_ #define ZEPHYR_ARCH_ARM_CORE_AARCH32_MPU_ARM_MPU_V7_INTERNAL_H_ #include <zephyr/sys/math_extras.h> #include <arm_mpu_internal.h> #define LOG_LEVEL CONFIG_MPU_LOG_LEVEL #include <zephyr/logging/log.h> /* Global MPU configurati...
/content/code_sandbox/arch/arm/core/mpu/arm_mpu_v7_internal.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,900
```c /* * */ #include <zephyr/sys/slist.h> #include <zephyr/arch/arm/mpu/arm_mpu.h> #include <zephyr/arch/arm/cortex_m/arm_mpu_mem_cfg.h> static const struct arm_mpu_region mpu_regions[] = { /* Region 0 */ MPU_REGION_ENTRY("FLASH_0", CONFIG_FLASH_BASE_ADDRESS, #if defined(CONFIG_ARMV8_M_BASELINE) || defined(...
/content/code_sandbox/arch/arm/core/mpu/arm_mpu_regions.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
243
```objective-c /* * */ #ifndef ZEPHYR_ARCH_ARM_CORE_AARCH32_MPU_ARM_MPU_V8_INTERNAL_H_ #define ZEPHYR_ARCH_ARM_CORE_AARCH32_MPU_ARM_MPU_V8_INTERNAL_H_ #include <cortex_m/cmse.h> #define LOG_LEVEL CONFIG_MPU_LOG_LEVEL #include <zephyr/logging/log.h> #include <zephyr/sys/math_extras.h> #include <zephyr/sys/barrier.h>...
/content/code_sandbox/arch/arm/core/mpu/arm_mpu_v8_internal.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,474
```c /* * */ #include <zephyr/device.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/kernel_structs.h> #include "arm_core_mpu_dev.h" #include <zephyr/linker/linker-defs.h> #define LOG_LEVEL CONFIG_MPU_LOG_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(mpu); extern void arm_core_...
/content/code_sandbox/arch/arm/core/mpu/arm_core_mpu.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,923
```c /* * */ #include <zephyr/device.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <soc.h> #include "arm_core_mpu_dev.h" #include <zephyr/sys/__assert.h> #include <zephyr/sys/math_extras.h> #include <zephyr/sys/barrier.h> #include <zephyr/linker/linker-defs.h> #include <zephyr/mem_mgmt/mem_attr.h> ...
/content/code_sandbox/arch/arm/core/mpu/nxp_mpu.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,164
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_MPU_ARM_CORE_MPU_DEV_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_MPU_ARM_CORE_MPU_DEV_H_ #include <zephyr/types.h> #include <kernel_arch_data.h> #ifdef __cplusplus extern "C" { #endif #if defined(CONFIG_ARM_MPU) struct k_thread; #if defined(CONFIG_US...
/content/code_sandbox/arch/arm/core/mpu/arm_core_mpu_dev.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,124
```c /* * */ #include <zephyr/device.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/sys/barrier.h> #include "arm_core_mpu_dev.h" #include <zephyr/linker/linker-defs.h> #include <kernel_arch_data.h> #include <zephyr/mem_mgmt/mem_attr.h> #include <zephyr/dt-bindings/memory-attr/memory-attr-arm...
/content/code_sandbox/arch/arm/core/mpu/arm_mpu.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,765
```unknown # Memory Protection Unit (MPU) configuration options if CPU_HAS_MPU config ARM_MPU bool "ARM MPU Support" select MPU select SRAM_REGION_PERMISSIONS select THREAD_STACK_INFO select ARCH_HAS_EXECUTABLE_PAGE_BIT select MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT if !(CPU_HAS_NXP_MPU || ARMV8_M_BASELINE || ARMV...
/content/code_sandbox/arch/arm/core/mpu/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,022
```objective-c * */ #include <zephyr/sys/math_extras.h> /** * Get the number of supported MPU regions. */ static inline uint8_t get_num_regions(void) { uint32_t type = MPU->TYPE; type = (type & MPU_TYPE_DREGION_Msk) >> MPU_TYPE_DREGION_Pos; return (uint8_t)type; } static inline void set_region_number(uint3...
/content/code_sandbox/arch/arm/core/mpu/cortex_m/arm_mpu_internal.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
806
```objective-c /* * */ /** * @file * @brief Private kernel definitions (ARM) * * This file contains private kernel function definitions and various * other definitions for the 32-bit ARM Cortex-A/R/M processor architecture * family. * * This file is also included by assembly language files which must #define ...
/content/code_sandbox/arch/arm/include/kernel_arch_func.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
183
```objective-c /* * */ /** * @file * @brief Private kernel definitions (ARM) * * This file contains private kernel structures definitions and various * other definitions for the ARM Cortex-A/R/M processor architecture family. * * This file is also included by assembly language files which must #define * _ASM...
/content/code_sandbox/arch/arm/include/kernel_arch_data.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
384
```objective-c * */ #include <zephyr/sys/math_extras.h> /** * Get the number of supported MPU regions. */ static inline uint8_t get_num_regions(void) { uint32_t type; __asm__ volatile("mrc p15, 0, %0, c0, c0, 4" : "=r" (type) ::); type = (type & MPU_TYPE_DREGION_Msk) >> MPU_TYPE_DREGION_Pos; return (uint8...
/content/code_sandbox/arch/arm/core/mpu/cortex_a_r/arm_mpu_internal.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,036
```objective-c /* * */ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_ARM_INCLUDE_OFFSETS_SHORT_ARCH_H_ #include <zephyr/offsets.h> /* kernel */ /* nothing for now */ /* end - kernel */ /* threads */ #define _thread_offset_to_basepri \ (___thread_t_arch_OFFSET + ___thread_arch_t_bas...
/content/code_sandbox/arch/arm/include/offsets_short_arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
397
```objective-c /* * */ /** * @file * @brief Private kernel definitions (ARM) * * This file contains private kernel function definitions and various * other definitions for the 32-bit ARM Cortex-M processor architecture * family. * * This file is also included by assembly language files which must #define * _...
/content/code_sandbox/arch/arm/include/cortex_m/kernel_arch_func.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
570
```objective-c /* * */ /** * @file * @brief Exception/interrupt context helpers for Cortex-M CPUs * * Exception/interrupt context helpers. */ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_EXCEPTION_H_ #define ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_EXCEPTION_H_ #include <zephyr/arch/cpu.h> #ifdef _ASMLANGUAGE /* nothin...
/content/code_sandbox/arch/arm/include/cortex_m/exception.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,601
```objective-c /* * */ /** * @file * @brief TrustZone API for use in nonsecure firmware * * TrustZone API for Cortex-M CPUs implementing the Security Extension. * The following API can be used by the nonsecure firmware to interact with the * secure firmware. */ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_...
/content/code_sandbox/arch/arm/include/cortex_m/tz_ns.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,227
```objective-c /* * */ /** * @file * @brief ARM Core CMSE API * * CMSE API for Cortex-M23/M33 CPUs. */ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_M_CMSE_H_ #define ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_M_CMSE_H_ #ifdef _ASMLANGUAGE /* nothing */ #else #include <arm_cmse.h> #include <stdint.h> #ifdef ...
/content/code_sandbox/arch/arm/include/cortex_m/cmse.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,622
```objective-c /* * */ /** * @file * @brief Stack helpers for Cortex-M CPUs * * Stack helper functions. */ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_M_STACK_H_ #define ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_M_STACK_H_ #ifdef _ASMLANGUAGE /* nothing */ #else #include <cmsis_core.h> #ifdef __cplusplus ...
/content/code_sandbox/arch/arm/include/cortex_m/stack.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
419
```objective-c /* * */ /** * @file * @brief DWT utility functions for Cortex-M CPUs * */ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_M_DWT_H_ #define ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_M_DWT_H_ #ifdef _ASMLANGUAGE /* nothing */ #else #include <cmsis_core.h> #include <zephyr/sys/__assert.h> #ifdef __...
/content/code_sandbox/arch/arm/include/cortex_m/dwt.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,213
```objective-c /* * */ /** * @file * @brief Private kernel definitions (ARM) * * This file contains private kernel function definitions and various * other definitions for the 32-bit ARM Cortex-A/R processor architecture * family. * * This file is also included by assembly language files which must #define *...
/content/code_sandbox/arch/arm/include/cortex_a_r/kernel_arch_func.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
380
```objective-c /* * */ /** * @file * @brief Management for Tightly Coupled Memory * */ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_A_R_TCM_H_ #define ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_A_R_TCM_H_ #ifdef _ASMLANGUAGE /* nothing */ #else #ifdef __cplusplus extern "C" { #endif /** * * @brief Disable...
/content/code_sandbox/arch/arm/include/cortex_a_r/tcm.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
161
```objective-c /* * */ /** * @file * @brief Exception/interrupt context helpers for Cortex-A and Cortex-R CPUs * * Exception/interrupt context helpers. */ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_A_R_EXCEPTION_H_ #define ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_A_R_EXCEPTION_H_ #include <zephyr/arch/cpu.h> #ifdef _ASMLA...
/content/code_sandbox/arch/arm/include/cortex_a_r/exception.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
341
```objective-c /* * */ /** * @file * @brief Stack helpers for Cortex-A and Cortex-R CPUs * * Stack helper functions. */ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_A_R_STACK_H_ #define ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_A_R_STACK_H_ #ifdef __cplusplus extern "C" { #endif #ifdef _ASMLANGUAGE /* nothin...
/content/code_sandbox/arch/arm/include/cortex_a_r/stack.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
130
```unknown menu "Nios II Options" depends on NIOS2 config ARCH string default "nios2" menu "Nios II Gen 2 Processor Options" config CPU_NIOS2_GEN2 bool default y select BUILD_OUTPUT_HEX select ARCH_HAS_EXTRA_EXCEPTION_INFO help This option signifies the use of a Nios II Gen 2 CPU endmenu menu "Nios II ...
/content/code_sandbox/arch/nios2/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
488
```c /* * */ #include <zephyr/arch/cpu.h> #include <zephyr/sys/__assert.h> /** * Flush the entire instruction cache and pipeline. * * You will need to call this function if the application writes new program * text to memory, such as a boot copier or runtime synthesis of code. If the * new text was written w...
/content/code_sandbox/arch/nios2/core/cache.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
704
```c /* * */ #include <zephyr/kernel.h> #include <ksched.h> /* forward declaration to asm function to adjust setup the arguments * to z_thread_entry() since this arch puts the first four arguments * in r4-r7 and not on the stack */ void z_thread_entry_wrapper(k_thread_entry_t, void *, void *, void *); struct in...
/content/code_sandbox/arch/nios2/core/thread.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
331
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/kernel_structs.h> #include <zephyr/irq_offload.h> volatile irq_offload_routine_t _offload_routine; static volatile const void *offload_param; /* Called by _enter_irq if it was passed 0 for ipending. * Just in case the offload routine itself generates an unh...
/content/code_sandbox/arch/nios2/core/irq_offload.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
214
```unknown /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> /* exports */ GTEXT(__start) GTEXT(__reset) /* imports */ GTEXT(z_prep_c) GTEXT(z_interrupt_stacks) /* Allow use of r1/at (the assembler temporary register) in this * code, normally reserved for internal assembler use */ .s...
/content/code_sandbox/arch/nios2/core/crt0.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,201
```c /* * */ /** * @file * @brief Full C support initialization * * * Initialization of full C support: zero the .bss, copy the .data if XIP, * call z_cstart(). * * Stack is available in this module, but not the global data/bss until their * initialization is performed. */ #include <zephyr/types.h> #inclu...
/content/code_sandbox/arch/nios2/core/prep_c.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
272
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/kernel_structs.h> #ifndef CONFIG_ARCH_HAS_CUSTOM_CPU_IDLE void arch_cpu_idle(void) { /* Do nothing but unconditionally unlock interrupts and return to the * caller. This CPU does not have any kind of power saving instruction. */ irq_unlock(NIOS2_STATUS_...
/content/code_sandbox/arch/nios2/core/cpu_idle.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
136
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys_clock.h> #include <zephyr/timing/timing.h> #include "altera_avalon_timer_regs.h" #define NIOS2_SUBTRACT_CLOCK_CYCLES(val) \ ((IORD_ALTERA_AVALON_TIMER_PERIODH(TIMER_0_BASE) << 16 | \ (IORD_ALTERA_AVA...
/content/code_sandbox/arch/nios2/core/timing.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
399
```unknown /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <offsets_short.h> /* exports */ GTEXT(arch_swap) GTEXT(z_thread_entry_wrapper) /* imports */ GTEXT(_k_neg_eagain) /* unsigned int arch_swap(unsigned int key) * * Always called with interrupts locked */ SECTION_FUNC(ex...
/content/code_sandbox/arch/nios2/core/swap.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,373
```unknown /* * */ #include <zephyr/toolchain.h> GTEXT(__start) ```
/content/code_sandbox/arch/nios2/core/reset.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
18
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/kernel_structs.h> #include <inttypes.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); FUNC_NORETURN void z_nios2_fatal_error(unsigned int reason, const struct arch_esf *esf) { #if CONF...
/content/code_sandbox/arch/nios2/core/fatal.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,213
```unknown /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <offsets_short.h> /* exports */ GTEXT(_exception) /* import */ GTEXT(_Fault) GTEXT(arch_swap) #ifdef CONFIG_IRQ_OFFLOAD GTEXT(z_irq_do_offload) GTEXT(_offload_routine) #endif /* Allows use of r1/at register, otherwise re...
/content/code_sandbox/arch/nios2/core/exception.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,956
```c /* * */ /** * @file * @brief Nios II C-domain interrupt management code for use with Internal * Interrupt Controller (IIC) */ #include <zephyr/kernel.h> #include <zephyr/kernel_structs.h> #include <zephyr/arch/cpu.h> #include <zephyr/irq.h> #include <zephyr/sw_isr_table.h> #include <ksched.h> #include <ks...
/content/code_sandbox/arch/nios2/core/irq_manage.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
636
```c /* * */ /** * @file * @brief Nios II kernel structure member offset definition file * * This module is responsible for the generation of the absolute symbols whose * value represents the member offsets for various Nios II kernel * structures. * * All of the absolute symbols defined by this module will b...
/content/code_sandbox/arch/nios2/core/offsets/offsets.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
541
```objective-c /* * */ /** * @file * @brief Private kernel definitions * * This file contains private kernel function/macro definitions and various * other definitions for the Nios II processor architecture. * * This file is also included by assembly language files which must #define * _ASMLANGUAGE before in...
/content/code_sandbox/arch/nios2/include/kernel_arch_func.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
414
```objective-c /* * */ /** * @file * @brief Private kernel definitions * * This file contains private kernel structures definitions and various * other definitions for the Nios II processor architecture. * * This file is also included by assembly language files which must #define * _ASMLANGUAGE before includ...
/content/code_sandbox/arch/nios2/include/kernel_arch_data.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
235
```objective-c /* * */ #ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_NIOS2_INCLUDE_OFFSETS_SHORT_ARCH_H_ #include <zephyr/offsets.h> /* kernel */ /* nothing for now */ /* end - kernel */ /* threads */ #define _thread_offset_to_r16 \ (___thread_t_callee_saved_OFFSET + ___callee_sa...
/content/code_sandbox/arch/nios2/include/offsets_short_arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
404
```c /* * */ #include "sw_isr_common.h" #include <zephyr/sw_isr_table.h> #include <zephyr/irq.h> #include <zephyr/sys/__assert.h> void __weak z_isr_install(unsigned int irq, void (*routine)(const void *), const void *param) { unsigned int table_idx; /* * Do not assert on the IRQ enable status for ARM GIC ...
/content/code_sandbox/arch/common/dynamic_isr.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
306
```c /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <zephyr/sw_isr_table.h> #include <zephyr/arch/cpu.h> /* There is an additional member at the end populated by the linker script * which indicates the number of interrupts specified */ struct int_list_header { uint32_t table_s...
/content/code_sandbox/arch/common/isr_tables.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
841
```c /* * */ #include "sw_isr_common.h" #include <zephyr/sw_isr_table.h> #include <zephyr/irq.h> #include <zephyr/sys/__assert.h> /* * Common code for arches that use software ISR tables (CONFIG_GEN_ISR_TABLES) */ unsigned int __weak z_get_sw_isr_table_idx(unsigned int irq) { unsigned int table_idx = irq - CONF...
/content/code_sandbox/arch/common/sw_isr_common.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
105
```c /* * */ #include "sw_isr_common.h" #include <zephyr/sw_isr_table.h> #include <zephyr/spinlock.h> /* an interrupt line can be considered shared only if there's * at least 2 clients using it. As such, enforce the fact that * the maximum number of allowed clients should be at least 2. */ BUILD_ASSERT(CONFIG_S...
/content/code_sandbox/arch/common/shared_irq.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,456
```c /* * */ #include <zephyr/device.h> #include <zephyr/irq.h> #include <zephyr/sw_isr_table.h> #include <zephyr/sys/__assert.h> #include <zephyr/sys/util.h> BUILD_ASSERT((CONFIG_NUM_2ND_LEVEL_AGGREGATORS * CONFIG_MAX_IRQ_PER_AGGREGATOR) <= BIT(CONFIG_2ND_LEVEL_INTERRUPT_BITS), "L2 bits not enough to ...
/content/code_sandbox/arch/common/multilevel_irq.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
625
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys_clock.h> #include <zephyr/timing/timing.h> void arch_timing_init(void) { } void arch_timing_start(void) { } void arch_timing_stop(void) { } timing_t arch_timing_counter_get(void) { return k_cycle_get_32(); } uint64_t arch_timing_cycles_get(volatile t...
/content/code_sandbox/arch/common/timing.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
214
```linker script /* * */ /* * LLVM LLD fills empty spaces (created using ALIGN() or moving the location * counter) in executable segments with TrapInstr pattern, e.g. for ARM the * TrapInstr pattern is 0xd4d4d4d4. GNU LD fills empty spaces with 0x00 * pattern. * * We may want to have some section (e.g. rom_sta...
/content/code_sandbox/arch/common/fill_with_zeros.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
116
```linker script /* * */ /* * To provide correct value, this file must be the first file included in * snippets-rom-start.ld. This variable is used in rom_start_offset.ld */ HIDDEN(__rom_start_address = .); ```
/content/code_sandbox/arch/common/rom_start_address.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
48
```linker script /* * */ /* Copied from linker.ld */ /* Non-cached region of RAM */ SECTION_DATA_PROLOGUE(_NOCACHE_SECTION_NAME,(NOLOAD),) { #if defined(CONFIG_MMU) MMU_ALIGN; #else MPU_ALIGN(_nocache_ram_size); #endif _nocache_ram_start = .; *(.nocache) *(".nocache.*") #include <snippets-nocache-section.ld> ...
/content/code_sandbox/arch/common/nocache.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
155
```linker script /* * */ /* Copied from linker.ld */ SECTION_DATA_PROLOGUE(.ramfunc,,) { MPU_ALIGN(__ramfunc_size); __ramfunc_start = .; *(.ramfunc) *(".ramfunc.*") #include <snippets-ramfunc-section.ld> MPU_ALIGN(__ramfunc_size); __ramfunc_end = .; } GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) __ram...
/content/code_sandbox/arch/common/ramfunc.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
120
```unknown # Common architecture configuration options config SEMIHOST bool "Semihosting support for ARM and RISC-V targets" depends on ARM || ARM64 || RISCV help Semihosting is a mechanism that enables code running on an ARM or RISC-V target to communicate and use the Input/Output facilities on a host co...
/content/code_sandbox/arch/common/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
296
```c /* * Organisation (CSIRO) ABN 41 687 119 230. * */ #include <string.h> #include <zephyr/kernel.h> #include <zephyr/arch/common/semihost.h> struct semihost_poll_in_args { long zero; } __packed; struct semihost_open_args { const char *path; long mode; long path_len; } __packed; struct semihost_close_args ...
/content/code_sandbox/arch/common/semihost.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
589
```linker script /* * */ /* * The line below this comment is equivalent to '. = CONFIG_ROM_START_OFFSET' * as interpreted by GNU LD, but also compatible with LLVM LLD. * * Simple assignment doesn't work for LLVM LLD, because the dot inside section * is absolute, so assigning offset here results in moving locati...
/content/code_sandbox/arch/common/rom_start_offset.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
135
```c /* * */ #include <zephyr/sw_isr_table.h> #include <zephyr/sys/util.h> /** * @file * @brief This file houses the deprecated legacy macros-generated multi-level interrupt lookup * table code, compiled when `CONFIG_LEGACY_MULTI_LEVEL_TABLE_GENERATION` is enabled. */ /* * Insert code if the node_id is an int...
/content/code_sandbox/arch/common/multilevel_irq_legacy.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
738
```objective-c /* * */ /** * @file * @brief Private header for the software-managed ISR table's functions */ #ifndef ZEPHYR_ARCH_COMMON_INCLUDE_SW_ISR_COMMON_H_ #define ZEPHYR_ARCH_COMMON_INCLUDE_SW_ISR_COMMON_H_ #if !defined(_ASMLANGUAGE) #include <zephyr/device.h> #ifdef __cplusplus extern "C" { #endif /** ...
/content/code_sandbox/arch/common/include/sw_isr_common.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
292
```c /* * */ #include <zephyr/debug/symtab.h> #include <zephyr/shell/shell.h> #include <zephyr/sw_isr_table.h> static void dump_isr_table_entry(const struct shell *sh, int idx, struct _isr_table_entry *entry) { if ((entry->isr == z_irq_spurious) || (entry->isr == NULL)) { return; } #ifdef CONFIG_SYMTAB const ...
/content/code_sandbox/arch/common/isr_tables_shell.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
543
```cmake # For Aarch64, multilib is not an actively pursued solution for most Linux # distributions. Userspace is (generally) either 32-bit or 64-bit but not # both. # @Intent: Call a script to get userspace wordsize for comparison with CONFIG_64BIT execute_process( COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/s...
/content/code_sandbox/arch/posix/Linux.aarch64.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
294
```unknown # General configuration options menu "POSIX (native) Options" depends on ARCH_POSIX config ARCH default "posix" config ARCH_POSIX_RECOMMENDED_STACK_SIZE int default 44 if 64BIT && STACK_SENTINEL default 40 if 64BIT default 28 if STACK_SENTINEL default 24 help In bytes, stack size for Zephyr th...
/content/code_sandbox/arch/posix/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
326
```c /* * */ /** * @file CPU power management code for POSIX * * This module provides: * * An implementation of the architecture-specific * arch_cpu_idle() primitive required by the kernel idle loop component. * It can be called within an implementation of _pm_save_idle(), * which is provided for the kernel ...
/content/code_sandbox/arch/posix/core/cpuhalt.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
321
```c /* * */ /* * Interfacing between the POSIX arch and the Native Simulator (nsi) CPU thread emulator * * This posix architecture "bottom" will be used when building with the native simulator. */ #include "nct_if.h" static void *te_state; /* * Initialize the posix architecture */ void posix_arch_init(void...
/content/code_sandbox/arch/posix/core/posix_core_nsi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
263
```c /* * */ #include <signal.h> void nsi_raise_sigtrap(void) { raise(SIGTRAP); } ```
/content/code_sandbox/arch/posix/core/fatal_trap.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
24
```c /* * */ /** * @file * @brief Thread support primitives * * This module provides core thread related primitives for the POSIX * architecture */ #include <zephyr/toolchain.h> #include <zephyr/kernel_structs.h> #include <ksched.h> #include "posix_core.h" #include <zephyr/arch/posix/posix_soc_if.h> #ifdef ...
/content/code_sandbox/arch/posix/core/thread.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
729
```c /* * */ #include <zephyr/arch/posix/posix_soc_if.h> #include "board_irq.h" #ifdef CONFIG_IRQ_OFFLOAD #include <zephyr/irq_offload.h> void arch_irq_offload(irq_offload_routine_t routine, const void *parameter) { posix_irq_offload(routine, parameter); } #endif void arch_irq_enable(unsigned int irq) { posix_i...
/content/code_sandbox/arch/posix/core/irq.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
286
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/kernel_structs.h> #include <zephyr/sys/printk.h> #include <inttypes.h> #include <zephyr/logging/log_ctrl.h> #include <zephyr/arch/posix/posix_soc_if.h> extern void nsi_raise_sigtrap(void); FUNC_NORETURN void arch_system_halt(unsi...
/content/code_sandbox/arch/posix/core/fatal.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
152
```c /* * */ /** * @file * @brief Kernel swapper code for POSIX * * This module implements the arch_swap() routine for the POSIX architecture. * */ #include <zephyr/kernel.h> #include <zephyr/kernel_structs.h> #include "posix_core.h" #include <zephyr/irq.h> #include "kswap.h" #include <zephyr/pm/pm.h> int ar...
/content/code_sandbox/arch/posix/core/swap.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
699
```c /* * */ /** * @file * @brief Kernel structure member offset definition file * * This module is responsible for the generation of the absolute symbols whose * value represents the member offsets for various IA-32 structures. * * All of the absolute symbols defined by this module will be present in the * ...
/content/code_sandbox/arch/posix/core/offsets/offsets.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
176
```c /* * */ /* * This module exist to provide a basic compatibility shim * from Native simulator components into the POSIX architecture. * * It is a transitional component, intended to facilitate * the migration towards the Native simulator. */ #include <zephyr/arch/posix/posix_trace.h> #include <zephyr/tool...
/content/code_sandbox/arch/posix/core/nsi_compat/nsi_compat.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
227
```objective-c /* * */ #ifndef ARCH_POSIX_CORE_NSI_COMPAT_H #define ARCH_POSIX_CORE_NSI_COMPAT_H #include "nsi_tracing.h" #include "nsi_safe_call.h" #ifdef __cplusplus extern "C" { #endif void nsi_exit(int exit_code); #ifdef __cplusplus } #endif #endif /* ARCH_POSIX_CORE_NSI_COMPAT_H */ ```
/content/code_sandbox/arch/posix/core/nsi_compat/nsi_compat.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
77
```objective-c /* * */ /* This file is only meant to be included by kernel_structs.h */ #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_FUNC_H_ #define ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_FUNC_H_ #include <kernel_arch_data.h> #ifndef _ASMLANGUAGE #ifdef __cplusplus extern "C" { #endif static inline void arch_ke...
/content/code_sandbox/arch/posix/include/kernel_arch_func.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
174
```objective-c /* * */ /** * @file * @brief Private kernel definitions (POSIX) * */ #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_DATA_H_ #define ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_DATA_H_ #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_DATA_H_ */ ```
/content/code_sandbox/arch/posix/include/kernel_arch_data.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
65
```objective-c /* * */ #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CORE_H_ #define ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CORE_H_ #include <zephyr/kernel.h> #ifdef __cplusplus extern "C" { #endif typedef struct { k_thread_entry_t entry_point; void *arg1; void *arg2; void *arg3; int thread_idx; #if defined(CONFIG_ARCH...
/content/code_sandbox/arch/posix/include/posix_core.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
377
```objective-c /* * */ #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_POSIX_INCLUDE_OFFSETS_SHORT_ARCH_H_ #include <zephyr/offsets.h> /* kernel */ /* end - kernel */ /* threads */ /* end - threads */ #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_OFFSETS_SHORT_ARCH_H_ */ ```
/content/code_sandbox/arch/posix/include/offsets_short_arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
77
```objective-c /* * */ /* * Undefine all system-specific macros defined internally, by the compiler. * Run 'gcc -dM -E - < /dev/null | sort' to get full list of internally * defined macros. */ #undef __gnu_linux__ #undef __linux #undef __linux__ #undef linux #undef __unix #undef __unix__ #undef unix ```
/content/code_sandbox/arch/posix/include/undef_system_defines.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
76
```objective-c /* EMPTY ON PURPOSE. Why do the intel and ARM arch have 2 versions of it? */ ```
/content/code_sandbox/arch/posix/include/asm_inline_gcc.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
21
```objective-c /* Inline assembler kernel functions and macros */ /* * */ #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_ASM_INLINE_H_ #define ZEPHYR_ARCH_POSIX_INCLUDE_ASM_INLINE_H_ #if !defined(CONFIG_ARCH_POSIX) #error The arch/posix/include/asm_inline.h is only for the POSIX architecture #endif #if defined(__GNUC__) #incl...
/content/code_sandbox/arch/posix/include/asm_inline.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
129
```objective-c /* * */ #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_ARCH_INTERNAL_H_ #define ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_ARCH_INTERNAL_H_ #include <zephyr/toolchain.h> #define PC_SAFE_CALL(a) pc_safe_call(a, #a) #ifdef __cplusplus extern "C" { #endif static inline void pc_safe_call(int test, const char *test_str)...
/content/code_sandbox/arch/posix/include/posix_arch_internal.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
202
```unknown menu "SPARC Options" depends on SPARC config ARCH default "sparc" config SPARC_NWIN int "Number of register windows" default 8 help Number of implemented register windows. config GEN_ISR_TABLES default y config GEN_IRQ_VECTOR_TABLE default n config GEN_SW_ISR_TABLE default y config NUM_IRQS...
/content/code_sandbox/arch/sparc/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
266
```objective-c /* * */ /* * Header to be able to compile the Zephyr kernel on top of a POSIX OS via the * POSIX ARCH * * This file is only used in the POSIX ARCH, and not in any other architecture * * Most users will be normally unaware of this file existence, unless they have * a link issue in which their PO...
/content/code_sandbox/arch/posix/include/posix_cheats.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,316
```c /* * */ #include <zephyr/kernel.h> #include <ksched.h> void z_thread_entry_wrapper(k_thread_entry_t thread, void *arg1, void *arg2, void *arg3); /* * Frame used by _thread_entry_wrapper * * Allocate a 16 register window save area at bottom of the stack. This is * required if we need t...
/content/code_sandbox/arch/sparc/core/thread.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
546
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/kernel_structs.h> #include <zephyr/irq.h> #include <zephyr/irq_offload.h> volatile irq_offload_routine_t _offload_routine; static volatile const void *offload_param; void z_irq_do_offload(void) { irq_offload_routine_t tmp; if (!_offload_routine) { retur...
/content/code_sandbox/arch/sparc/core/irq_offload.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
189