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
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_SPARC_ARCH_INLINES_H #define ZEPHYR_INCLUDE_ARCH_SPARC_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_SPARC_ARCH_INLINES_H */ ```
/content/code_sandbox/include/zephyr/arch/sparc/arch_inlines.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
83
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_SPARC_SPARC_H_ #define ZEPHYR_INCLUDE_ARCH_SPARC_SPARC_H_ /* * @file * @brief Definitions for the SPARC V8 architecture. */ /* Processor State Register */ #define PSR_VER_BIT 24 #define PSR_PIL_BIT 8 #define PSR_VER ...
/content/code_sandbox/include/zephyr/arch/sparc/sparc.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
274
```objective-c /* * */ /** * @file * @brief SPARC specific kernel interface header * This header contains the SPARC specific kernel interface. It is * included by the generic kernel interface header (arch/cpu.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_SPARC_ARCH_H_ #define ZEPHYR_INCLUDE_ARCH_SPARC_ARCH_H_ #include <...
/content/code_sandbox/include/zephyr/arch/sparc/arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
833
```objective-c /* * */ /** * @file * @brief Per-arch thread definition * * This file contains definitions for * * struct _thread_arch * struct _callee_saved * * necessary to instantiate instances of struct k_thread. */ #ifndef ZEPHYR_INCLUDE_ARCH_SPARC_THREAD_H_ #define ZEPHYR_INCLUDE_ARCH_SPARC_THREAD_...
/content/code_sandbox/include/zephyr/arch/sparc/thread.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
384
```objective-c /* */ /** * @file * @brief Xtensa public exception handling * * Xtensa-specific kernel exception handling interface. Included by * arch/xtensa/arch.h. */ #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_EXCEPTION_H_ #define ZEPHYR_INCLUDE_ARCH_XTENSA_EXCEPTION_H_ #ifdef __cplusplus extern "C" { #endif #ifnd...
/content/code_sandbox/include/zephyr/arch/xtensa/exception.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
160
```linker script /* * */ /** * @file * @brief Linker command/script file for SPARC */ #include <soc.h> #include <zephyr/linker/sections.h> #include <zephyr/linker/linker-defs.h> #include <zephyr/linker/linker-tool.h> ENTRY(CONFIG_KERNEL_ENTRY) SECTIONS { #include <zephyr/linker/rel-sections.ld> #ifdef ...
/content/code_sandbox/include/zephyr/arch/sparc/linker.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,151
```objective-c /* * */ #include <stdint.h> #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_XTENSA_MMU_H #define ZEPHYR_INCLUDE_ARCH_XTENSA_XTENSA_MMU_H /** * @defgroup xtensa_mmu_apis Xtensa Memory Management Unit (MMU) APIs * @ingroup xtensa_apis * @{ */ /** * @name Memory region permission and caching mode. * @{ */ ...
/content/code_sandbox/include/zephyr/arch/xtensa/xtensa_mmu.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,054
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_XTENSA_IRQ_H_ #define ZEPHYR_INCLUDE_ARCH_XTENSA_XTENSA_IRQ_H_ #include <stdint.h> #include <zephyr/toolchain.h> #include <xtensa/config/core-isa.h> #define CONFIG_GEN_IRQ_START_VECTOR 0 /** * @cond INTERNAL_HIDDEN */ /* * Call this function to enable th...
/content/code_sandbox/include/zephyr/arch/xtensa/irq.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,017
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_CACHE_H_ #define ZEPHYR_INCLUDE_ARCH_XTENSA_CACHE_H_ #include <xtensa/config/core-isa.h> #include <zephyr/toolchain.h> #include <zephyr/sys/util.h> #include <zephyr/debug/sparse.h> #include <xtensa/hal.h> #ifdef __cplusplus extern "C" { #endif #define Z_DCACHE...
/content/code_sandbox/include/zephyr/arch/xtensa/cache.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,353
```objective-c /* * */ #include <inttypes.h> #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_GDBSTUB_SYS_H_ #define ZEPHYR_INCLUDE_ARCH_XTENSA_GDBSTUB_SYS_H_ #ifdef CONFIG_GDBSTUB #define XTREG_GRP_MASK 0x0F00 #define XTREG_GRP_GENERAL 0x0000 #define XTREG_GRP_ADDR 0x0100 #define XTREG_GRP_SPECIAL 0x0200 #define XTREG_G...
/content/code_sandbox/include/zephyr/arch/xtensa/gdbstub.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,085
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_ARCH_INLINES_H_ #define ZEPHYR_INCLUDE_ARCH_XTENSA_ARCH_INLINES_H_ #ifndef _ASMLANGUAGE #include <zephyr/kernel_structs.h> #include <zephyr/zsr.h> /** * @brief Read a special register. * * @param sr Name of special register. * * @return Value of speci...
/content/code_sandbox/include/zephyr/arch/xtensa/arch_inlines.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
552
```objective-c /* */ /** * @file * @brief Xtensa specific kernel interface header * This header contains the Xtensa specific kernel interface. It is included * by the generic kernel interface header (include/zephyr/arch/cpu.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_ARCH_H_ #define ZEPHYR_INCLUDE_ARCH_XTENSA_ARC...
/content/code_sandbox/include/zephyr/arch/xtensa/arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,003
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_THREAD_H_ #define ZEPHYR_INCLUDE_ARCH_XTENSA_THREAD_H_ #include <stdint.h> #ifndef _ASMLANGUAGE #ifdef CONFIG_XTENSA_MPU #include <zephyr/arch/xtensa/mpu.h> #endif /* Xtensa doesn't use these structs, but Zephyr core requires they be * defined so they can...
/content/code_sandbox/include/zephyr/arch/xtensa/thread.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
267
```objective-c /* * */ /** * @file * @brief Xtensa specific syscall header * * This header contains the Xtensa specific syscall interface. It is * included by the syscall interface architecture-abstraction header * (include/arch/syscall.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_SYSCALL_H_ #define ZEPHYR_INCL...
/content/code_sandbox/include/zephyr/arch/xtensa/syscall.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,985
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_THREAD_STACK_H_ #define ZEPHYR_INCLUDE_ARCH_XTENSA_THREAD_STACK_H_ #include <xtensa/config/core-isa.h> #include <zephyr/toolchain.h> #include <zephyr/sys/util.h> #ifdef CONFIG_KERNEL_COHERENCE #define ARCH_STACK_PTR_ALIGN XCHAL_DCACHE_LINESIZE #else #define...
/content/code_sandbox/include/zephyr/arch/xtensa/thread_stack.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
517
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_ATOMIC_XTENSA_H_ #define ZEPHYR_INCLUDE_ATOMIC_XTENSA_H_ /* Included from <zephyr/sys/atomic.h> */ /* Recent GCC versions actually do have working atomics support on * Xtensa (and so should work with CONFIG_ATOMIC_OPERATIONS_BUILTIN), * but existing versions of Xtensa's...
/content/code_sandbox/include/zephyr/arch/xtensa/atomic_xtensa.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,280
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_HYPERCALL_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_HYPERCALL_H_ /* defined in hypercall.S by HYPERCALL(hypercall) */ int HYPERVISOR_console_io(int op, int cnt, char *str); int HYPERVISOR_sched_op(int op, void *param); int HYPERVISOR_event_channel_op(int op, void *pa...
/content/code_sandbox/include/zephyr/arch/arm64/hypercall.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
181
```objective-c /* * */ #include <stdint.h> #include <zephyr/toolchain.h> #include <zephyr/sys/util_macro.h> #include <xtensa/config/core-isa.h> #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_XTENSA_MPU_H #define ZEPHYR_INCLUDE_ARCH_XTENSA_XTENSA_MPU_H /** * @defgroup xtensa_mpu_apis Xtensa Memory Protection Unit (MPU) APIs...
/content/code_sandbox/include/zephyr/arch/xtensa/mpu.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,162
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_ARM_MEM_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_ARM_MEM_H_ /* * Define ARM specific memory flags used by k_mem_map_phys_bare() * followed public definitions in include/kernel/mm.h. */ /* For ARM64, K_MEM_CACHE_NONE is nGnRnE. */ #define K_MEM_ARM_DEVICE_nGnRnE...
/content/code_sandbox/include/zephyr/arch/arm64/arm_mem.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
174
```objective-c /* * */ /** * @file * @brief Cortex-A public exception handling * * ARM-specific kernel exception handling interface. Included by arm64/arch.h. */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_EXCEPTION_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_EXCEPTION_H_ /* for assembler, only works with constants */ #ifdef...
/content/code_sandbox/include/zephyr/arch/arm64/exception.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
292
```objective-c /* * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_ARM_MMU_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_ARM_MMU_H_ #ifndef _ASMLANGUAGE #include <stdint.h> #include <stdlib.h> #endif /* Following Memory types supported through MAIR encodings can ...
/content/code_sandbox/include/zephyr/arch/arm64/arm_mmu.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,901
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_CACHE_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_CACHE_H_ #ifndef _ASMLANGUAGE #include <zephyr/types.h> #include <zephyr/sys/util.h> #include <zephyr/sys/barrier.h> #include <zephyr/arch/cpu.h> #include <errno.h> #ifdef __cplusplus extern "C" { #endif #define K_...
/content/code_sandbox/include/zephyr/arch/arm64/cache.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,528
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_CPU_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_CPU_H_ #include <zephyr/sys/util_macro.h> #include <stdbool.h> #define DAIFSET_FIQ_BIT BIT(0) #define DAIFSET_IRQ_BIT BIT(1) #define DAIFSET_ABT_BIT BIT(2) #define DAIFSET_DBG_BIT BIT(3) #define DAIFCLR_FIQ_BIT ...
/content/code_sandbox/include/zephyr/arch/arm64/cpu.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,467
```sourcepawn /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_MACRO_INC_ #define ZEPHYR_INCLUDE_ARCH_ARM64_MACRO_INC_ #ifdef _ASMLANGUAGE .macro switch_el, xreg, el3_label, el2_label, el1_label mrs \xreg, CurrentEL cmp \xreg, 0xc beq \el3_label cmp \xreg, 0x8 beq \el2_label cmp \xreg, 0x4 beq \el1_label .endm /*...
/content/code_sandbox/include/zephyr/arch/arm64/macro.inc
sourcepawn
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
450
```objective-c /* * */ /** * @file * @brief Cortex-A public interrupt handling * * ARM64-specific kernel interrupt handling interface. * Included by arm64/arch.h. */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_IRQ_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_IRQ_H_ #include <zephyr/irq.h> #include <zephyr/sw_isr_table.h> #inc...
/content/code_sandbox/include/zephyr/arch/arm64/irq.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
599
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARM64_STRUCTS_H_ #define ZEPHYR_INCLUDE_ARM64_STRUCTS_H_ /* Per CPU architecture specifics */ struct _cpu_arch { #ifdef CONFIG_FPU_SHARING atomic_ptr_val_t fpu_owner; #endif #ifdef CONFIG_ARM64_SAFE_EXCEPTION_STACK uint64_t safe_exception_stack; uint64_t current_stac...
/content/code_sandbox/include/zephyr/arch/arm64/structs.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
116
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_TIMER_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_TIMER_H_ #ifndef _ASMLANGUAGE #include <limits.h> #include <zephyr/drivers/timer/arm_arch_timer.h> #include <zephyr/types.h> #include <limits.h> #ifdef __cplusplus extern "C" { #endif #define ARM_ARCH_TIMER_IRQ A...
/content/code_sandbox/include/zephyr/arch/arm64/timer.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
434
```objective-c /* * */ /** * @file * @brief tpidrro_el0 bits allocation * * Among other things, the tpidrro_el0 holds the address for the current * CPU's struct _cpu instance. But such a pointer is at least 8-bytes * aligned, and the address space is 48 bits max. That leaves plenty of * free bits for other pu...
/content/code_sandbox/include/zephyr/arch/arm64/tpidrro_el0.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
231
```objective-c /* * */ /** * @file * @brief ARM64 specific kernel interface header * * This header contains the ARM64 specific kernel interface. It is * included by the kernel interface architecture-abstraction header * (include/arm64/cpu.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_ARCH_H_ #define ZEPHYR_INCLUD...
/content/code_sandbox/include/zephyr/arch/arm64/arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
359
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_ARCH_INLINES_H #define ZEPHYR_INCLUDE_ARCH_ARM64_ARCH_INLINES_H #ifndef _ASMLANGUAGE #include <zephyr/kernel_structs.h> #include <zephyr/arch/arm64/lib_helpers.h> #include <zephyr/arch/arm64/tpidrro_el0.h> #include <zephyr/sys/__assert.h> /* Note: keep in s...
/content/code_sandbox/include/zephyr/arch/arm64/arch_inlines.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
296
```objective-c /* * */ /* Either public functions or macros or invoked by public functions */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_ASM_INLINE_GCC_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_ASM_INLINE_GCC_H_ /* * The file must not be included directly * Include arch/cpu.h instead */ #ifndef _ASMLANGUAGE #include <zephy...
/content/code_sandbox/include/zephyr/arch/arm64/asm_inline_gcc.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
251
```objective-c /* * */ /** * @file * @brief Per-arch thread definition * * This file contains definitions for * * struct _thread_arch * struct _callee_saved * * necessary to instantiate instances of struct k_thread. */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_THREAD_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_THREAD_...
/content/code_sandbox/include/zephyr/arch/arm64/thread.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
490
```objective-c /* * */ /** * @file * @brief Cortex-A public kernel miscellaneous * * ARM64-specific kernel miscellaneous interface. Included by * arm64/arch.h. */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_MISC_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_MISC_H_ #ifdef __cplusplus extern "C" { #endif #ifndef _ASMLANGUAGE e...
/content/code_sandbox/include/zephyr/arch/arm64/misc.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
190
```objective-c /* * */ /** * @file * @brief ARM64 specific syscall header * * This header contains the ARM64 specific syscall interface. It is * included by the syscall interface architecture-abstraction header * (include/arch64/syscall.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_SYSCALL_H_ #define ZEPHYR_INCLU...
/content/code_sandbox/include/zephyr/arch/arm64/syscall.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,477
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_MM_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_MM_H_ #if defined(CONFIG_ARM_MMU) #include <zephyr/arch/arm64/arm_mmu.h> /* * When mmu enabled, some section addresses need to be aligned with * page size which is CONFIG_MMU_PAGE_SIZE */ #define MEM_DOMAIN_ALIGN_AND_...
/content/code_sandbox/include/zephyr/arch/arm64/mm.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
225
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_ASM_INLINE_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_ASM_INLINE_H_ /* * The file must not be included directly * Include kernel.h instead */ #if defined(__GNUC__) #include <zephyr/arch/arm64/asm_inline_gcc.h> #else #include <arch/arm/asm_inline_other.h> #endif...
/content/code_sandbox/include/zephyr/arch/arm64/asm_inline.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
96
```objective-c /** * */ #ifndef ZEPHYR_INCLUDE_BARRIER_ARM64_H_ #define ZEPHYR_INCLUDE_BARRIER_ARM64_H_ #ifndef ZEPHYR_INCLUDE_SYS_BARRIER_H_ #error Please include <zephyr/sys/barrier.h> #endif #include <zephyr/toolchain.h> #ifdef __cplusplus extern "C" { #endif static ALWAYS_INLINE void z_barrier_dmem_fence_full...
/content/code_sandbox/include/zephyr/arch/arm64/barrier.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
177
```objective-c /* * */ /* "Arch" bit manipulation functions in non-arch-specific C code (uses some * gcc builtins) */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_SYS_IO_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_SYS_IO_H_ #ifndef _ASMLANGUAGE #include <zephyr/types.h> #include <zephyr/sys/sys_io.h> #include <zephyr/sys/barrier...
/content/code_sandbox/include/zephyr/arch/arm64/sys_io.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
668
```objective-c /* * */ /** * @file * @brief ARM AArch64 public error handling * * ARM AArch64-specific kernel error handling interface. Included by arch.h. */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_ERROR_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_ERROR_H_ #include <zephyr/arch/arm64/syscall.h> #include <zephyr/arch/arm6...
/content/code_sandbox/include/zephyr/arch/arm64/error.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
224
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_THREAD_STACK_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_THREAD_STACK_H_ #include <zephyr/arch/arm64/mm.h> #define ARCH_STACK_PTR_ALIGN 16 #if defined(CONFIG_USERSPACE) || defined(CONFIG_ARM64_STACK_PROTECTION) #define Z_ARM64_STACK_BASE_ALIGN MEM_DOMAIN_ALIGN_...
/content/code_sandbox/include/zephyr/arch/arm64/thread_stack.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
544
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_SMCCC_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_SMCCC_H_ /* * Result from SMC/HVC call * @a0-a7 result values from registers 0 to 7 */ struct arm_smccc_res { unsigned long a0; unsigned long a1; unsigned long a2; unsigned long a3; unsigned long a4; unsigne...
/content/code_sandbox/include/zephyr/arch/arm64/arm-smccc.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
351
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_LIB_HELPERS_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_LIB_HELPERS_H_ #ifndef _ASMLANGUAGE #include <zephyr/arch/arm64/cpu.h> #include <stdint.h> /* All the macros need a memory clobber */ #define read_sysreg(reg) \ ({ \ uint64_t reg_val; \ _...
/content/code_sandbox/include/zephyr/arch/arm64/lib_helpers.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,477
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM64_CORTEX_R_MPU_ARM_MPU_H_ #define ZEPHYR_INCLUDE_ARCH_ARM64_CORTEX_R_MPU_ARM_MPU_H_ /* * Convenience macros to represent the ARMv8-R64-specific configuration * for memory access permission and cache-ability attribution. */ /* MPU MPUIR Register Definitions */...
/content/code_sandbox/include/zephyr/arch/arm64/cortex_r/arm_mpu.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,591
```objective-c /* * */ /** * @file * @brief RISCV public exception handling * * RISCV-specific kernel exception handling interface. */ #ifndef ZEPHYR_INCLUDE_ARCH_RISCV_EXCEPTION_H_ #define ZEPHYR_INCLUDE_ARCH_RISCV_EXCEPTION_H_ #ifndef _ASMLANGUAGE #include <zephyr/types.h> #include <zephyr/toolchain.h> #if...
/content/code_sandbox/include/zephyr/arch/riscv/exception.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
646
```linker script /* * */ /** * @file * @brief Linker command/script file * * Linker script for the Cortex-A platforms. */ #include <zephyr/linker/sections.h> #include <zephyr/devicetree.h> #include <zephyr/linker/devicetree_regions.h> #include <zephyr/linker/linker-defs.h> #include <zephyr/linker/linker-tool....
/content/code_sandbox/include/zephyr/arch/arm64/scripts/linker.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,356
```objective-c /* * */ /** * @file * @brief RISC-V public interrupt handling * * RISC-V-specific kernel interrupt handling interface. */ #ifndef ZEPHYR_INCLUDE_ARCH_RISCV_IRQ_H_ #define ZEPHYR_INCLUDE_ARCH_RISCV_IRQ_H_ #ifdef __cplusplus extern "C" { #endif #include <zephyr/sys/util_macro.h> #ifndef _ASMLAN...
/content/code_sandbox/include/zephyr/arch/riscv/irq.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
885
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_RISCV_STRUCTS_H_ #define ZEPHYR_INCLUDE_RISCV_STRUCTS_H_ /* Per CPU architecture specifics */ struct _cpu_arch { #ifdef CONFIG_USERSPACE unsigned long user_exc_sp; unsigned long user_exc_tmp0; unsigned long user_exc_tmp1; #endif #if defined(CONFIG_SMP) || (CONFIG_MP_...
/content/code_sandbox/include/zephyr/arch/riscv/structs.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
136
```objective-c /* * */ #ifndef CSR_H_ #define CSR_H_ #define MSTATUS_UIE 0x00000001 #define MSTATUS_SIE 0x00000002 #define MSTATUS_HIE 0x00000004 #define MSTATUS_MIE 0x00000008 #define MSTATUS_UPIE 0x00000010 #define MSTATUS_SPIE 0x00000020 #define MSTATUS_HPIE 0x00000040 #define MSTATUS_MPIE 0x00000080 #define MST...
/content/code_sandbox/include/zephyr/arch/riscv/csr.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,204
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_RISCV_ARCH_INLINES_H_ #define ZEPHYR_INCLUDE_ARCH_RISCV_ARCH_INLINES_H_ #ifndef _ASMLANGUAGE #include <zephyr/kernel_structs.h> #include "csr.h" static ALWAYS_INLINE uint32_t arch_proc_id(void) { return csr_read(mhartid) & ((uintptr_t)CONFIG_RISCV_HART_MASK); } ...
/content/code_sandbox/include/zephyr/arch/riscv/arch_inlines.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
183
```objective-c /* * Contributors: 2018 Antmicro <www.antmicro.com> * */ /** * @file * @brief RISCV specific kernel interface header * This header contains the RISCV specific kernel interface. It is * included by the generic kernel interface header (arch/cpu.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_RISCV_ARCH_H_ #de...
/content/code_sandbox/include/zephyr/arch/riscv/arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,392
```objective-c /* * */ /** * @file * @brief RISCV specific syscall header * * This header contains the RISCV specific syscall interface. It is * included by the syscall interface architecture-abstraction header * (include/arch/syscall.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_RISCV_SYSCALL_H_ #define ZEPHYR_INCLUDE...
/content/code_sandbox/include/zephyr/arch/riscv/syscall.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,357
```objective-c /* * */ /** * @file * @brief Per-arch thread definition * * This file contains definitions for * * struct _thread_arch * struct _callee_saved * * necessary to instantiate instances of struct k_thread. */ #ifndef ZEPHYR_INCLUDE_ARCH_RISCV_THREAD_H_ #define ZEPHYR_INCLUDE_ARCH_RISCV_THREAD_...
/content/code_sandbox/include/zephyr/arch/riscv/thread.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
694
```objective-c /* * */ /* Memory mapped registers I/O functions in riscv arch C code */ #ifndef ZEPHYR_INCLUDE_ARCH_RISCV_SYS_IO_H_ #define ZEPHYR_INCLUDE_ARCH_RISCV_SYS_IO_H_ #ifndef _ASMLANGUAGE #include <zephyr/toolchain.h> #include <zephyr/types.h> #include <zephyr/sys/sys_io.h> #ifndef CONFIG_RISCV_SOC_HAS_...
/content/code_sandbox/include/zephyr/arch/riscv/sys_io.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
504
```objective-c /* * */ /** * @file * @brief RISCV public error handling * * RISCV-specific kernel error handling interface. Included by riscv/arch.h. */ #ifndef ZEPHYR_INCLUDE_ARCH_RISCV_ERROR_H_ #define ZEPHYR_INCLUDE_ARCH_RISCV_ERROR_H_ #include <zephyr/arch/riscv/syscall.h> #include <zephyr/arch/riscv/exce...
/content/code_sandbox/include/zephyr/arch/riscv/error.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
293
```objective-c /** */ #ifndef ZEPHYR_INCLUDE_ARCH_RISCV_ATOMIC_H_ #define ZEPHYR_INCLUDE_ARCH_RISCV_ATOMIC_H_ #ifdef __cplusplus extern "C" { #endif /* The standard RISC-V atomic-instruction extension, "A", specifies * the number of instructions that atomically read-modify-write memory, * which RISC-V harts shoul...
/content/code_sandbox/include/zephyr/arch/riscv/atomic.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
906
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_RISCV_RISCV_PRIVILEGED_ASM_INLINE_GCC_H_ #define ZEPHYR_INCLUDE_ARCH_RISCV_RISCV_PRIVILEGED_ASM_INLINE_GCC_H_ /* * The file must not be included directly * Include arch/cpu.h instead * TEMPORARY */ #ifndef _ASMLANGUAGE #include <zephyr/toolchain.h> #endif /*...
/content/code_sandbox/include/zephyr/arch/riscv/riscv-privileged/asm_inline_gcc.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
117
```objective-c /* * Contributors: 2018 Antmicro <www.antmicro.com> * */ #ifndef ZEPHYR_INCLUDE_ARCH_RISCV_RISCV_PRIVILEGED_ASM_INLINE_H_ #define ZEPHYR_INCLUDE_ARCH_RISCV_RISCV_PRIVILEGED_ASM_INLINE_H_ /* * The file must not be included directly * Include arch/cpu.h instead */ #if defined(__GNUC__) #include <z...
/content/code_sandbox/include/zephyr/arch/riscv/riscv-privileged/asm_inline.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
137
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_MEMMAP_H_ #define ZEPHYR_INCLUDE_ARCH_X86_MEMMAP_H_ #ifndef _ASMLANGUAGE /* * The "source" of the memory map refers to where we got the data to fill in * the map. Order is important: if multiple sources are available, then the * numerically HIGHEST source wins...
/content/code_sandbox/include/zephyr/arch/x86/memmap.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
553
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_MULTIBOOT_H_ #define ZEPHYR_INCLUDE_ARCH_X86_MULTIBOOT_H_ #ifndef _ASMLANGUAGE #include <stdint.h> /* * Multiboot (version 1) boot information structure. * * Only fields/values of interest to Zephyr are enumerated: at * present, that means only those pert...
/content/code_sandbox/include/zephyr/arch/x86/multiboot.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
799
```objective-c /* * */ /** * @brief Encode interrupt flag for x86 architecture. * * @param polarity the interrupt polarity received from ACPICA lib * @param trigger the interrupt level received from ACPICA lib * @return return encoded interrupt flag */ uint32_t arch_acpi_encode_irq_flags(uint8_t polarity, uint...
/content/code_sandbox/include/zephyr/arch/x86/x86_acpi.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
73
```objective-c /* * */ #ifndef ZEPHYR_ARCH_X86_INCLUDE_EFI_H_ #define ZEPHYR_ARCH_X86_INCLUDE_EFI_H_ /* Boot type value (see prep_c.c) */ #define EFI_BOOT_TYPE 2 #ifndef _ASMLANGUAGE struct efi_boot_arg { void *efi_systab; /* EFI system table */ unsigned long long efi_cr3; /* EFI page table */ void *...
/content/code_sandbox/include/zephyr/arch/x86/efi.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
243
```objective-c /* * */ #include <zephyr/arch/x86/efi.h> #include <zephyr/arch/x86/legacy_bios.h> #ifndef ZEPHYR_ARCH_X86_INCLUDE_X86_ACPI_H_ #define ZEPHYR_ARCH_X86_INCLUDE_X86_ACPI_H_ #if defined(CONFIG_X86_EFI) static inline void *acpi_rsdp_get(void) { void *rsdp = efi_get_acpi_rsdp(); if (!rsdp) { rsdp = bi...
/content/code_sandbox/include/zephyr/arch/x86/x86_acpi_osal.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
185
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_CPUID_H_ #define ZEPHYR_INCLUDE_ARCH_X86_CPUID_H_ #ifndef _ASMLANGUAGE #ifdef __cplusplus extern "C" { #endif #define CPUID_BASIC_INFO_1 0x01 #define CPUID_EXTENDED_FEATURES_LVL 0x07 #define CPUID_EXTENDED_TOPOLOGY_ENUMERATION 0x0B #define CPUID_EXTENDED_TOPOL...
/content/code_sandbox/include/zephyr/arch/x86/cpuid.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
195
```objective-c /* * */ #ifndef ZEPHYR_ARCH_X86_INCLUDE_LEGACY_BIOS_H_ #define ZEPHYR_ARCH_X86_INCLUDE_LEGACY_BIOS_H_ void *bios_acpi_rsdp_get(void); #endif /* ZEPHYR_ARCH_X86_INCLUDE_LEGACY_BIOS_H_ */ ```
/content/code_sandbox/include/zephyr/arch/x86/legacy_bios.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
61
```linker script /* * */ /** * @file * @brief Linker command/script file * * Generic Linker script for the riscv platform */ #include <zephyr/devicetree.h> #include <zephyr/linker/sections.h> #include <zephyr/linker/devicetree_regions.h> #include <zephyr/linker/linker-defs.h> #include <zephyr/linker/linker-t...
/content/code_sandbox/include/zephyr/arch/riscv/common/linker.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,507
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_ARCH_INLINES_H_ #define ZEPHYR_INCLUDE_ARCH_X86_ARCH_INLINES_H_ #ifndef _ASMLANGUAGE #include <zephyr/arch/x86/x86_acpi.h> #if defined(CONFIG_X86_64) #include <zephyr/arch/x86/intel64/thread.h> #include <zephyr/kernel_structs.h> static inline struct _cpu *a...
/content/code_sandbox/include/zephyr/arch/x86/arch_inlines.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
246
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_MSR_H_ #define ZEPHYR_INCLUDE_ARCH_X86_MSR_H_ /* * Model specific registers (MSR). Access with z_x86_msr_read/write(). */ #define X86_TIME_STAMP_COUNTER_MSR 0x00000010 #define X86_SPEC_CTRL_MSR 0x00000048 #define X86_SPEC_CTRL_MSR_IBRS BIT(0) #define X86_SP...
/content/code_sandbox/include/zephyr/arch/x86/msr.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
733
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_ARCH_H_ #define ZEPHYR_INCLUDE_ARCH_X86_ARCH_H_ #include <zephyr/devicetree.h> /* Changing this value will require manual changes to exception and IDT setup * in locore.S for intel64 */ #define Z_X86_OOPS_VECTOR 32 #if !defined(_ASMLANGUAGE) #include <zephyr/...
/content/code_sandbox/include/zephyr/arch/x86/arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,113
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_MMU_H #define ZEPHYR_INCLUDE_ARCH_X86_MMU_H #include <zephyr/sys/util.h> /* * K_MEM_PARTITION_* defines * * Slated for removal when virtual memory is implemented, memory * mapping APIs will replace memory domains. */ #define Z_X86_MMU_RW BIT64(1) /** Rea...
/content/code_sandbox/include/zephyr/arch/x86/mmustructs.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
781
```linker script /* * */ /** * @file Directives for linker MEMORY regions for all x86 * * By default, the kernel is linked at its physical address and all addresses * are in RAM. * * If CONFIG_XIP is enabled, then another MEMORY region is declared for ROM, * and this is where the Zephyr image is booted from. ...
/content/code_sandbox/include/zephyr/arch/x86/memory.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,062
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_THREAD_STACK_H #define ZEPHYR_INCLUDE_ARCH_X86_THREAD_STACK_H #include <zephyr/arch/x86/mmustructs.h> #ifdef CONFIG_X86_64 #define ARCH_STACK_PTR_ALIGN 16UL #else #define ARCH_STACK_PTR_ALIGN 4UL #endif #if defined(CONFIG_X86_STACK_PROTECTION) || defined(CONFI...
/content/code_sandbox/include/zephyr/arch/x86/thread_stack.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
886
```linker script /* */ /* Pagetables. These are produced by arch/x86/gen-mmu.py based on * data in zephyr_prebuilt.elf (the result of linker pass 1). * For the pass 1 build, an equal-sized dummy area is provided as * to not shift memory addresses that occur after this. */ #ifdef CONFIG_MMU SECTION_DATA_PROLOG...
/content/code_sandbox/include/zephyr/arch/x86/pagetables.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
309
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_INTEL64_EXPCEPTION_H_ #define ZEPHYR_INCLUDE_ARCH_X86_INTEL64_EXPCEPTION_H_ #ifndef _ASMLANGUAGE #include <zephyr/arch/x86/intel64/thread.h> #ifdef __cplusplus extern "C" { #endif /* * the exception stack frame */ struct arch_esf { #ifdef CONFIG_EXCEPTION_DEB...
/content/code_sandbox/include/zephyr/arch/x86/intel64/exception.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
349
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_INTEL64_ARCH_H_ #define ZEPHYR_INCLUDE_ARCH_X86_INTEL64_ARCH_H_ #include <zephyr/arch/x86/intel64/exception.h> #include <zephyr/arch/x86/intel64/thread.h> #include <zephyr/arch/x86/thread_stack.h> #if defined(CONFIG_PCIE) && !defined(_ASMLANGUAGE) #include <zephyr...
/content/code_sandbox/include/zephyr/arch/x86/intel64/arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
724
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_INTEL_VTD_H #define ZEPHYR_INCLUDE_ARCH_X86_INTEL_VTD_H #ifndef _ASMLANGUAGE /*************\ * Registers * \*************/ #define VTD_VER_REG 0x000 /* Version */ #define VTD_CAP_REG 0x008 /* Capability */ #define VTD_ECAP_REG 0x010 /* Extended Capability */...
/content/code_sandbox/include/zephyr/arch/x86/intel_vtd.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,874
```objective-c /* * */ /** * @file * @brief x86 (INTEL64) specific syscall header * * This header contains the x86 specific syscall interface. It is * included by the syscall interface architecture-abstraction header * (include/arch/syscall.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_INTEL64_SYSCALL_H_ #define ZE...
/content/code_sandbox/include/zephyr/arch/x86/intel64/syscall.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,621
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_INTEL64_THREAD_H_ #define ZEPHYR_INCLUDE_ARCH_X86_INTEL64_THREAD_H_ #define X86_THREAD_FLAG_ALL 0x01 /* _thread_arch.flags: entire state saved */ /* * GDT selectors - these must agree with the GDT layout in locore.S. */ #define X86_KERNEL_CS_32 0x08 /* 32-bit ...
/content/code_sandbox/include/zephyr/arch/x86/intel64/thread.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,109
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_IA32_EXPCEPTION_H_ #define ZEPHYR_INCLUDE_ARCH_X86_IA32_EXPCEPTION_H_ #ifndef _ASMLANGUAGE #include <zephyr/types.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Exception Stack Frame * * A pointer to an "exception stack frame" (ESF) is passed as an...
/content/code_sandbox/include/zephyr/arch/x86/ia32/exception.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
371
```objective-c /* asm.h - x86 tool dependent headers */ /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_IA32_ASM_H_ #define ZEPHYR_INCLUDE_ARCH_X86_IA32_ASM_H_ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #if defined(_ASMLANGUAGE) #ifdef CONFIG_X86_KPTI GTEXT(z_x86_trampoline_to_user) GTEXT(z_x86_tr...
/content/code_sandbox/include/zephyr/arch/x86/ia32/asm.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
187
```linker script /* */ #include <zephyr/linker/linker-defs.h> #include <zephyr/linker/linker-tool.h> #define ROMABLE_REGION RAM #define RAMABLE_REGION RAM #define MMU_PAGE_ALIGN . = ALIGN(CONFIG_MMU_PAGE_SIZE); /* Used to align areas with separate memory permission characteristics * so that the page permissions ...
/content/code_sandbox/include/zephyr/arch/x86/intel64/linker.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,834
```objective-c /* * */ /** * @file * @brief IA-32 specific gdbstub interface header */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_GDBSTUB_SYS_H_ #define ZEPHYR_INCLUDE_ARCH_X86_GDBSTUB_SYS_H_ #ifndef _ASMLANGUAGE #include <stdint.h> #include <zephyr/toolchain.h> /** * @brief Number of register used by gdbstub in IA-32 ...
/content/code_sandbox/include/zephyr/arch/x86/ia32/gdbstub.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
397
```objective-c /* * */ /** * @file * @brief x86 (IA32) specific syscall header * * This header contains the x86 specific syscall interface. It is * included by the syscall interface architecture-abstraction header * (include/arch/syscall.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_IA32_SYSCALL_H_ #define ZEPHYR_I...
/content/code_sandbox/include/zephyr/arch/x86/ia32/syscall.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,068
```objective-c /* * */ /** * @file * @brief IA-32 specific kernel interface header * This header contains the IA-32 specific kernel interface. It is included * by the generic kernel interface header (include/arch/cpu.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_IA32_ARCH_H_ #define ZEPHYR_INCLUDE_ARCH_X86_IA32_ARCH_...
/content/code_sandbox/include/zephyr/arch/x86/ia32/arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,228
```objective-c /* * */ /* Implementation of sys_io.h's documented functions */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_IA32_SYS_IO_H_ #define ZEPHYR_INCLUDE_ARCH_X86_IA32_SYS_IO_H_ #if !defined(_ASMLANGUAGE) #include <zephyr/sys/sys_io.h> #include <zephyr/types.h> #include <stddef.h> static ALWAYS_INLINE void sys_io_se...
/content/code_sandbox/include/zephyr/arch/x86/ia32/sys_io.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
474
```objective-c /* * */ /** * @file * @brief Per-arch thread definition * * This file contains definitions for * * struct _thread_arch * struct _callee_saved * * necessary to instantiate instances of struct k_thread. */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_IA32_THREAD_H_ #define ZEPHYR_INCLUDE_ARCH_X86_IA32_T...
/content/code_sandbox/include/zephyr/arch/x86/ia32/thread.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,109
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_X86_IA32_SEGMENTATION_H_ #define ZEPHYR_INCLUDE_ARCH_X86_IA32_SEGMENTATION_H_ #include <zephyr/types.h> /* Host gen_idt uses this header as well, don't depend on toolchain.h */ #ifndef __packed #define __packed __attribute__((packed)) #endif #ifdef __cplusplus ex...
/content/code_sandbox/include/zephyr/arch/x86/ia32/segmentation.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,525
```linker script /* * */ #ifndef CONFIG_DYNAMIC_INTERRUPTS . = ALIGN(8); _idt_base_address = .; #ifdef LINKER_ZEPHYR_FINAL KEEP(*(staticIdt)) #else . += CONFIG_IDT_NUM_VECTORS * 8; #endif /* LINKER_ZEPHYR_FINAL */ . = ALIGN(4); _irq_to_interrupt_vector = .; #ifdef LINKER_ZEPHYR_FINAL KEEP(*(irq_int_vector_ma...
/content/code_sandbox/include/zephyr/arch/x86/ia32/scripts/static_intr.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
118
```linker script /* * */ #ifdef CONFIG_DYNAMIC_INTERRUPTS . = ALIGN(4); _irq_to_interrupt_vector = .; #ifdef LINKER_ZEPHYR_FINAL KEEP(*(irq_int_vector_map)) #else . += CONFIG_MAX_IRQ_LINES; #endif /* LINKER_ZEPHYR_FINAL */ z_interrupt_vectors_allocated = .; #ifdef LINKER_ZEPHYR_FINAL KEEP(*(irq_vectors_alloc)...
/content/code_sandbox/include/zephyr/arch/x86/ia32/scripts/dynamic_intr.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
123
```linker script /* * */ #define AON_C_OBJECT_FILE_IN_SECT(lsect, objfile) \ KEEP(*_intel_hal.a:objfile.c.obj(.##lsect)) \ KEEP(*_intel_hal.a:objfile.c.obj(.##lsect##.*)) #define AON_S_OBJECT_FILE_IN_SECT(lsect, objfile) \ KEEP(*_intel_hal.a:objfile.S.obj(.##lsect)) \ KEEP(*_in...
/content/code_sandbox/include/zephyr/arch/x86/ia32/scripts/ish_aon.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
261
```linker script /* * */ #ifdef CONFIG_X86_KPTI MMU_PAGE_ALIGN_PERM z_shared_kernel_page_start = .; /* Special page containing supervisor data that is still mapped in * user mode page tables. IDT, GDT, TSSes, trampoline stack, and * any LDT must go here as they always must live in a page that is * marked 'p...
/content/code_sandbox/include/zephyr/arch/x86/ia32/scripts/shared_kernel_pages.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
484
```linker script /* * */ /** * @file * @brief Common linker sections * * This script defines the memory location of the various sections that make up * a Zephyr Kernel image. This file is used by the linker. * * This script places the various sections of the image according to what * features are enabled by ...
/content/code_sandbox/include/zephyr/arch/x86/ia32/linker.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,217
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARC_ADDR_TYPES_H_ #define ZEPHYR_INCLUDE_ARCH_ARC_ADDR_TYPES_H_ #ifndef _ASMLANGUAGE /* * MWDT provides paddr_t type and it conflicts with Zephyr definition: * - Zephyr defines paddr_t as a uintptr_t * - MWDT defines paddr_t as a unsigned long * This causes ext...
/content/code_sandbox/include/zephyr/arch/arc/arc_addr_types.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
184
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARC_SYS_IO_COMMON_H_ #define ZEPHYR_INCLUDE_ARCH_ARC_SYS_IO_COMMON_H_ #ifndef _ASMLANGUAGE #include <zephyr/toolchain.h> #include <zephyr/sys/sys_io.h> #include <zephyr/arch/arc/v2/aux_regs.h> #include <zephyr/types.h> #include <stddef.h> #ifdef __cplusplus exte...
/content/code_sandbox/include/zephyr/arch/arc/sys-io-common.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
366
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_ARCH_INLINES_H_ #define ZEPHYR_INCLUDE_ARCH_XTENSA_ARCH_INLINES_H_ #ifndef _ASMLANGUAGE #include <zephyr/kernel_structs.h> #include <zephyr/arch/arc/v2/aux_regs.h> static ALWAYS_INLINE _cpu_t *arch_curr_cpu(void) { #ifdef CONFIG_SMP uint32_t core; core...
/content/code_sandbox/include/zephyr/arch/arc/arch_inlines.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
216
```objective-c /* * */ /** * @file * @brief ARC specific syscall header * * This header contains the ARC specific syscall interface. It is * included by the syscall interface architecture-abstraction header * (include/arch/syscall.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_ARC_SYSCALL_H_ #define ZEPHYR_INCLUDE_ARCH_...
/content/code_sandbox/include/zephyr/arch/arc/syscall.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,557
```objective-c /* * */ /** * @file * @brief ARC specific kernel interface header * * This header contains the ARC specific kernel interface. It is * included by the kernel interface architecture-abstraction header * include/arch/cpu.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_ARC_ARCH_H_ #define ZEPHYR_INCLUDE_ARCH_A...
/content/code_sandbox/include/zephyr/arch/arc/arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,638
```objective-c /* * */ /** * @file * @brief Per-arch thread definition * * This file contains definitions for * * struct _thread_arch * struct _callee_saved * * necessary to instantiate instances of struct k_thread. */ #ifndef ZEPHYR_INCLUDE_ARCH_ARC_THREAD_H_ #define ZEPHYR_INCLUDE_ARCH_ARC_THREAD_H_ ...
/content/code_sandbox/include/zephyr/arch/arc/thread.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
324
```objective-c /* * Author: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> * */ #ifndef ZEPHYR_INCLUDE_ARCH_ARC_TOOL_COMPAT_H_ #define ZEPHYR_INCLUDE_ARCH_ARC_TOOL_COMPAT_H_ #ifdef _ASMLANGUAGE /* * GNU toolchain and MWDT (Metware) toolchain have different style for accessing * arguments in assembly macro. Here ...
/content/code_sandbox/include/zephyr/arch/arc/tool-compat.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
164
```objective-c /* * */ /** * @file * @brief ARCv2 public exception handling * * ARC-specific kernel exception handling interface. Included by arc/arch.h. */ #ifndef ZEPHYR_INCLUDE_ARCH_ARC_V2_EXCEPTION_H_ #define ZEPHYR_INCLUDE_ARCH_ARC_V2_EXCEPTION_H_ #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplu...
/content/code_sandbox/include/zephyr/arch/arc/v2/exception.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
272
```objective-c /* * */ /** * @file * @brief ARC Cluster registers and accessors */ #ifndef ZEPHYR_INCLUDE_ARCH_ARC_CLUSTER_H_ #define ZEPHYR_INCLUDE_ARCH_ARC_CLUSTER_H_ #include <zephyr/arch/arc/v2/aux_regs.h> #include <zephyr/sys/util_macro.h> /* Cluster AUX */ #define _ARC_REG_CLN_BCR ...
/content/code_sandbox/include/zephyr/arch/arc/cluster.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,185