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
```unknown /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <offsets_short.h> #include <zephyr/arch/sparc/sparc.h> GTEXT(z_sparc_arch_switch) GTEXT(z_sparc_context_switch) GTEXT(z_thread_entry_wrapper) /* * The routine z_sparc_context_switch() is called from arch_switch(), or fro...
/content/code_sandbox/arch/sparc/core/switch.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,532
```unknown /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <zephyr/arch/sparc/sparc.h> /* The trap table reset entry jumps to here. */ GTEXT(__sparc_trap_reset) SECTION_FUNC(TEXT, __sparc_trap_reset) set __sparc_trap_table, %g1 wr %g1, %tbr wr 2, %wim wr PSR_PIL | PSR_S | PSR...
/content/code_sandbox/arch/sparc/core/reset_trap.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
455
```c /* * */ /** * @file * @brief Full C support initialization */ #include <kernel_internal.h> /** * @brief Prepare to and run C code * * This routine prepares for the execution of and runs C code. */ void z_prep_c(void) { z_data_copy(); z_cstart(); CODE_UNREACHABLE; } ```
/content/code_sandbox/arch/sparc/core/prep_c.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
73
```objective-c /* * */ #ifndef ZEPHYR_ARCH_SPARC_CORE_STACK_H_ #define ZEPHYR_ARCH_SPARC_CORE_STACK_H_ /* * Offsets for SPARC ABI stack frame. * * Reference: System V Application Binary Interface, SPARC Processor * Supplement, Third Edition, Page 3-35. */ #define STACK_FRAME_L0_OFFSET ...
/content/code_sandbox/arch/sparc/core/stack_offsets.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
636
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/kernel_structs.h> #include <kernel_internal.h> #include <kernel_tls.h> #include <zephyr/app_memory/app_memdomain.h> #include <zephyr/sys/util.h> size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr) { new_thread->tls = POINTER_TO_UINT(sta...
/content/code_sandbox/arch/sparc/core/tls.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
106
```unknown /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <zephyr/arch/sparc/sparc.h> GTEXT(__sparc_trap_sw_set_pil) /* * Set processor interrupt level * * Handler for SPARC trap 0x89: trap_instruction, defined as "Reserved for the * operating system" by SPARC-ABI. * * ent...
/content/code_sandbox/arch/sparc/core/sw_trap_set_pil.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
284
```unknown /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <offsets_short.h> #include <zephyr/arch/sparc/sparc.h> GTEXT(__sparc_trap_except_reason) GTEXT(__sparc_trap_fault) /* * Fault trap handler * * - IU state is saved and restored * * On entry: * %l0: psr (set by trap c...
/content/code_sandbox/arch/sparc/core/fault_trap.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,201
```unknown /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <offsets_short.h> #include <zephyr/arch/sparc/sparc.h> #include "stack_offsets.h" GTEXT(__sparc_trap_interrupt) GTEXT(__sparc_trap_irq_offload) /* * Interrupt trap handler * * - IU state is saved and restored * * On ...
/content/code_sandbox/arch/sparc/core/interrupt_trap.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,220
```unknown /* * */ /* * This file contains standard handlers for the SPARC V8 window overflow and * underflow traps. It also implements the handler for SPARC-ABI * "Flush windows" which is used for example by longjmp() and C++ exceptions. */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #inc...
/content/code_sandbox/arch/sparc/core/window_trap.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,581
```c /* * */ #include <zephyr/kernel.h> #include <kernel_internal.h> #include <kswap.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); FUNC_NORETURN void z_irq_spurious(const void *unused) { uint32_t tbr; ARG_UNUSED(unused); __asm__ volatile ( "rd %%tbr, %0" : "=r" (tbr) ...
/content/code_sandbox/arch/sparc/core/irq_manage.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
306
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); /* * EXAMPLE OUTPUT * * your_sha256_hash----- * * tt = 0x02, illegal_instruction * * INS LOCALS OUTS GLOBALS * 0: 00000000 f3900fc0 40007c50 00000000 *...
/content/code_sandbox/arch/sparc/core/fatal.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,142
```c /* * */ /** * @file * @brief SPARC 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 SPARC kernel structures. */ #include <zephyr/kernel.h> #include <kernel_arch_data.h> #include...
/content/code_sandbox/arch/sparc/core/offsets/offsets.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
281
```objective-c /* * */ /** * @file * @brief Private kernel definitions * * This file contains private kernel function/macro definitions and various * other definitions for the SPARC processor architecture. */ #ifndef ZEPHYR_ARCH_SPARC_INCLUDE_KERNEL_ARCH_FUNC_H_ #define ZEPHYR_ARCH_SPARC_INCLUDE_KERNEL_ARCH_F...
/content/code_sandbox/arch/sparc/include/kernel_arch_func.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
323
```objective-c /* * */ /** * @file * @brief Private kernel definitions * * This file contains private kernel structures definitions and various * other definitions for the SPARC processor architecture. */ #ifndef ZEPHYR_ARCH_SPARC_INCLUDE_KERNEL_ARCH_DATA_H_ #define ZEPHYR_ARCH_SPARC_INCLUDE_KERNEL_ARCH_DATA_...
/content/code_sandbox/arch/sparc/include/kernel_arch_data.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
183
```objective-c /* * */ #ifndef ZEPHYR_ARCH_SPARC_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_SPARC_INCLUDE_OFFSETS_SHORT_ARCH_H_ #include <zephyr/offsets.h> #define _thread_offset_to_y \ (___thread_t_callee_saved_OFFSET + ___callee_saved_t_y_OFFSET) #define _thread_offset_to_l0_and_l1 \ (___thread_t_calle...
/content/code_sandbox/arch/sparc/include/offsets_short_arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
343
```unknown /* * */ /* * This file contains a full SPARC V8 trap table. The processor redirects * exection to the trap table on trap events. Each trap table entrys is four * instructions. */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #define BAD_TRAP \ rd %psr, %l0; \ sethi %hi(__sparc_...
/content/code_sandbox/arch/sparc/core/trap_table_mvt.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,843
```c /* * */ #include <zephyr/toolchain.h> #include <zephyr/arch/xtensa/arch.h> #include <zephyr/arch/xtensa/cache.h> #include <zephyr/kernel/mm.h> #include <zephyr/cache.h> __weak bool sys_mm_is_phys_addr_in_range(uintptr_t phys) { bool valid; uintptr_t cached = (uintptr_t)sys_cache_cached_ptr_get((void *)phys);...
/content/code_sandbox/arch/xtensa/core/mem_manage.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
269
```c /* * */ #include "xtensa/corebits.h" #include "xtensa_backtrace.h" #include <zephyr/sys/printk.h> #if defined(CONFIG_SOC_SERIES_ESP32) #include <esp_memory_utils.h> #elif defined(CONFIG_SOC_FAMILY_INTEL_ADSP) #include "debug_helpers.h" #elif defined(CONFIG_SOC_XTENSA_DC233C) #include "backtrace_helpers.h" #endi...
/content/code_sandbox/arch/xtensa/core/xtensa_backtrace.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,267
```unknown # XTENSA architecture configuration options menu "XTENSA Options" depends on XTENSA config ARCH default "xtensa" config SIMULATOR_XTENSA bool "Simulator Target" help Enable if building to run on simulator. config XTENSA_RESET_VECTOR bool "Build reset vector code" default y help This option ...
/content/code_sandbox/arch/xtensa/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,033
```unknown /* * */ #include <zephyr/offsets.h> #include <xtensa/config/tie.h> #include <xtensa/config/tie-asm.h> /* * Load the HiFi registers from the hifi buffer in the BSA. Round the address * of this buffer up to XCHAL_CP1_SA_ALIGN bytes to guarantee the necessary * alignment. * * Upon entry ... * A0 - re...
/content/code_sandbox/arch/xtensa/core/xtensa_hifi.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
428
```restructuredtext # How Xtensa register windows work There is a paucity of introductory material on this subject, and Zephyr plays some tricks here that require understanding the base layer. ## Hardware When register windows are configured in the CPU, there are either 32 or 64 "real" registers in hardware, with 16...
/content/code_sandbox/arch/xtensa/core/README_WINDOWS.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,349
```python #!/usr/bin/env python3 import sys import re # Xtensa Vector Table linker generator # # Takes a pre-processed (gcc -dM) core-isa.h file as its first # argument, and emits a GNU linker section declartion which will # correctly load the exception vectors and literals as long as their # code is declared using st...
/content/code_sandbox/arch/xtensa/core/gen_vectors.py
python
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,170
```c /* */ #include <zephyr/kernel.h> #include <zephyr/irq_offload.h> #include <zephyr/zsr.h> #include <zephyr/irq.h> static struct { irq_offload_routine_t fn; const void *arg; } offload_params[CONFIG_MP_MAX_NUM_CPUS]; static void irq_offload_isr(const void *param) { ARG_UNUSED(param); uint8_t cpu_id = _current...
/content/code_sandbox/arch/xtensa/core/irq_offload.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
290
```c /* * */ #include <string.h> #include <zephyr/kernel.h> #include <kernel_internal.h> #include <xtensa_asm2_context.h> #include <xtensa_internal.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); #ifdef CONFIG_USERSPACE #ifdef CONFIG_THREAD_LOCAL_STORAGE /* * Per-thread (TLS...
/content/code_sandbox/arch/xtensa/core/thread.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,315
```c /* * */ #include <string.h> #include <zephyr/debug/coredump.h> #include <xtensa_asm2_context.h> #include <zephyr/offsets.h> #define ARCH_HDR_VER 1 #define XTENSA_BLOCK_HDR_VER 2 enum xtensa_soc_code { XTENSA_SOC_UNKNOWN = 0, XTENSA_SOC_SAMPLE_CONTROLLER, XTENSA_SOC_ESP32, XTENSA_SOC_INTEL_ADSP, XTENSA...
/content/code_sandbox/arch/xtensa/core/coredump.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,641
```unknown /* */ #include <xtensa/coreasm.h> #include <zephyr/zsr.h> /* WINDOW OVERFLOW AND UNDERFLOW EXCEPTION VECTORS AND ALLOCA EXCEPTION * HANDLER * * Here is the code for each window overflow/underflow exception vector and * (interspersed) efficient code for handling the alloca exception cause. * Window exc...
/content/code_sandbox/arch/xtensa/core/window_vectors.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,215
```c /* * */ #include <stdint.h> #include <stdlib.h> #include <string.h> #include <zephyr/kernel.h> #include <zephyr/spinlock.h> #include <zephyr/toolchain.h> #include <zephyr/arch/xtensa/arch_inlines.h> #include <zephyr/arch/xtensa/mpu.h> #include <zephyr/linker/linker-defs.h> #include <zephyr/sys/__assert.h> #inc...
/content/code_sandbox/arch/xtensa/core/mpu.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,368
```unknown #include <xtensa/config/core-isa.h> /* * Not a C source code file. * * Intended to be preprocessed only, to produce output for * interpretation by the xtensa-int-handlers.py script. Literally all * this does is emit records for which interrupts are at which level, * available per-hardware by an SDK-p...
/content/code_sandbox/arch/xtensa/core/xtensa_intgen.tmpl
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
595
```python #!/usr/bin/env python3 import re import fileinput # Pass an Xtensa core-isa.h file on stdin or the command line, emits a # C file on output containing optimized interrupt dispatch routines. # FIXME: looking at the assembly generated by the ESP-32 toolchain, # this isn't as optimal as I'd hoped. the individ...
/content/code_sandbox/arch/xtensa/core/xtensa_intgen.py
python
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,236
```c /* */ #include <zephyr/kernel.h> #include <zephyr/cache.h> #include <zephyr/arch/xtensa/arch.h> #include <zephyr/arch/xtensa/xtensa_mmu.h> #include <zephyr/linker/linker-defs.h> #include <zephyr/logging/log.h> #include <zephyr/kernel/mm.h> #include <zephyr/toolchain.h> #include <xtensa/corebits.h> #include <xtens...
/content/code_sandbox/arch/xtensa/core/ptables.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,241
```unknown /* * */ #include <xtensa_asm2_s.h> #include <zephyr/offsets.h> #include <offsets_short.h> #include <zephyr/syscall.h> #include <zephyr/zsr.h> #include <xtensa/config/core-isa.h> /** * syscall number arg1, arg2, arg3, arg4, arg5, arg6 * -------------- ---------------------------------- * a2...
/content/code_sandbox/arch/xtensa/core/userspace.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,967
```unknown /* */ /* * Control arrives here at _start from the reset vector. */ #include <xtensa/coreasm.h> /* Exports */ .global _start /* * Imports * __stack from linker script (see LSP Ref Manual) * _bss_table_start from linker script (see LSP Ref Manual) * _bss_table_end from linker script (see ...
/content/code_sandbox/arch/xtensa/core/crt1.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,816
```python #!/usr/bin/env python3 import argparse import re # Scratch register allocator. Zephyr uses multiple Xtensa SRs as # scratch space for various special purposes. Unfortunately the # configurable architecture means that not all registers will be the # same on every device. This script parses a pre-cooked ("g...
/content/code_sandbox/arch/xtensa/core/gen_zsr.py
python
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,014
```c /* * */ #include <zephyr/kernel.h> #include <kernel_internal.h> extern FUNC_NORETURN void z_cstart(void); /* defined by the SoC in case of CONFIG_SOC_HAS_RUNTIME_NUM_CPUS=y */ extern void soc_num_cpus_init(void); /** * * @brief Prepare to and run C code * * This routine prepares for the execution of and r...
/content/code_sandbox/arch/xtensa/core/prep_c.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
523
```c /* */ #include <stdint.h> #include <stdbool.h> #include <zephyr/kernel.h> #include <xtensa/config/core-isa.h> #include <xtensa_mmu_priv.h> #include <zephyr/cache.h> #ifdef CONFIG_USERSPACE BUILD_ASSERT((CONFIG_PRIVILEGED_STACK_SIZE > 0) && (CONFIG_PRIVILEGED_STACK_SIZE % CONFIG_MMU_PAGE_SIZE) == 0); #endif...
/content/code_sandbox/arch/xtensa/core/mmu.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,160
```c /* */ #include <zephyr/toolchain.h> #include <zephyr/tracing/tracing.h> #ifndef CONFIG_ARCH_HAS_CUSTOM_CPU_IDLE void arch_cpu_idle(void) { sys_trace_idle(); __asm__ volatile ("waiti 0"); } #endif #ifndef CONFIG_ARCH_HAS_CUSTOM_CPU_ATOMIC_IDLE void arch_cpu_atomic_idle(unsigned int key) { sys_trace_idle(); ...
/content/code_sandbox/arch/xtensa/core/cpu_idle.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
116
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/kernel_structs.h> #include <kernel_internal.h> #include <kernel_tls.h> #include <zephyr/app_memory/app_memdomain.h> #include <zephyr/sys/util.h> #if XCHAL_HAVE_THREADPTR == 0 #error SoC does not support THREADPTR for thread local storage. #endif size_t arch_...
/content/code_sandbox/arch/xtensa/core/tls.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
316
```c /* * */ #include <zephyr/toolchain.h> __weak int atexit(void (*function)(void)) { ARG_UNUSED(function); return 0; } ```
/content/code_sandbox/arch/xtensa/core/xcc_stubs.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
35
```c /* * */ #include <string.h> #include <xtensa_asm2_context.h> #include <zephyr/kernel.h> #include <ksched.h> #include <zephyr/kernel_structs.h> #include <kernel_internal.h> #include <kswap.h> #include <zephyr/toolchain.h> #include <zephyr/logging/log.h> #include <zephyr/offsets.h> #include <zephyr/zsr.h> #include...
/content/code_sandbox/arch/xtensa/core/vector_handlers.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,281
```c */ #include <zephyr/kernel.h> void arch_timing_init(void) { } void arch_timing_start(void) { } void arch_timing_stop(void) { } uint64_t arch_timing_freq_get(void) { return CONFIG_XTENSA_CCOUNT_HZ; } timing_t arch_timing_counter_get(void) { uint32_t ccount; __asm__ volatile ("rsr %0, CCOUNT" : "=r"(ccount...
/content/code_sandbox/arch/xtensa/core/timing.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
281
```c /* * */ #include <zephyr/toolchain.h> #include <zephyr/sys/util_macro.h> #ifdef CONFIG_XTENSA_MORE_SPIN_RELAX_NOPS /* Some compilers might "optimize out" (i.e. remove) continuous NOPs. * So force no optimization to avoid that. */ __no_optimization void arch_spin_relax(void) { #define NOP1(_, __) __asm__ vola...
/content/code_sandbox/arch/xtensa/core/smp.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
175
```c /* * */ #include <zephyr/llext/elf.h> #include <zephyr/llext/llext.h> #include <zephyr/llext/loader.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(llext); #define R_XTENSA_NONE 0 #define R_XTENSA_32 1 #define R_XTENSA_RTLD 2 #define R_XTENSA_GLOB_DAT 3 #define R_XT...
/content/code_sandbox/arch/xtensa/core/elf.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
501
```unknown /* * */ #include <xtensa/coreasm.h> #include <xtensa/corebits.h> #include <xtensa/config/system.h> #include <xtensa/hal.h> #include <xtensa_asm2_context.h> #include <zephyr/offsets.h> .section .iram1, "ax" .align 4 .global xtensa_backtrace_get_start .type xtensa_backtrace_get_start...
/content/code_sandbox/arch/xtensa/core/debug_helpers_asm.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
372
```c /* */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/kernel_structs.h> #include <inttypes.h> #include <xtensa/config/specreg.h> #include <xtensa_backtrace.h> #include <zephyr/arch/common/exc_handle.h> #include <xtensa_internal.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(os, ...
/content/code_sandbox/arch/xtensa/core/fatal.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
957
```c /* */ #include <zephyr/types.h> #include <stdio.h> #include <zephyr/arch/xtensa/irq.h> #include <zephyr/sys/__assert.h> #include <kernel_arch_func.h> #include <xtensa_internal.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); /** * @internal * * @brief Set an interrupt's ...
/content/code_sandbox/arch/xtensa/core/irq_manage.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
607
```c /* * */ #include <zephyr/kernel.h> #include <kernel_internal.h> #include <zephyr/toolchain.h> #include <zephyr/debug/gdbstub.h> #include <xtensa_asm2_context.h> #include <xtensa/corebits.h> static bool not_first_break; extern struct gdb_ctx xtensa_gdb_ctx; /* * Special register number (from specreg.h). * ...
/content/code_sandbox/arch/xtensa/core/gdbstub.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,769
```c /* * */ #include <string.h> #include <zephyr/arch/xtensa/syscall.h> #include <zephyr/internal/syscall_handler.h> #include <xtensa_internal.h> #ifdef CONFIG_XTENSA_SYSCALL_USE_HELPER uintptr_t xtensa_syscall_helper(uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4, uintptr_t arg5, uintptr...
/content/code_sandbox/arch/xtensa/core/syscall_helper.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
796
```c /* */ #include <gen_offset.h> #include <kernel_offsets.h> #include <zephyr/arch/xtensa/thread.h> #include <xtensa_asm2_context.h> GEN_ABSOLUTE_SYM(___xtensa_irq_bsa_t_SIZEOF, sizeof(_xtensa_irq_bsa_t)); GEN_ABSOLUTE_SYM(___xtensa_irq_stack_frame_raw_t_SIZEOF, sizeof(_xtensa_irq_stack_frame_raw_t)); GEN_ABSOLUT...
/content/code_sandbox/arch/xtensa/core/offsets/offsets.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
792
```unknown /* * */ #include <xtensa_asm2_s.h> #include <zephyr/offsets.h> #include <zephyr/zsr.h> #if defined(CONFIG_SIMULATOR_XTENSA) || defined(XT_SIMULATOR) #include <xtensa/simcall.h> #endif /* * xtensa_spill_reg_windows * * Spill all register windows. Not a C function, enter this via CALL0 * (so you have ...
/content/code_sandbox/arch/xtensa/core/xtensa_asm2_util.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,837
```unknown /* memerror-vector.S -- Memory Error Exception Vector and Handler */ /* * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitatio...
/content/code_sandbox/arch/xtensa/core/startup/memerror_vector.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
388
```unknown // memctl_default.S - Default startup value for MEMCTL register. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the r...
/content/code_sandbox/arch/xtensa/core/startup/memctl_default.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
391
```objective-c /* * */ #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_INTERNAL_H_ #define ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_INTERNAL_H_ #include <stdint.h> #include <zephyr/arch/xtensa/exception.h> #include <zephyr/arch/arch_interface.h> /** * @ingroup xtensa_internal_apis * @{ */ /** * @brief Dump and print out ...
/content/code_sandbox/arch/xtensa/include/xtensa_internal.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
483
```objective-c /* */ /* this file is only meant to be included by kernel_structs.h */ #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_KERNEL_ARCH_FUNC_H_ #define ZEPHYR_ARCH_XTENSA_INCLUDE_KERNEL_ARCH_FUNC_H_ #ifndef _ASMLANGUAGE #include <kernel_internal.h> #include <string.h> #include <zephyr/cache.h> #include <zephyr/zsr.h> ...
/content/code_sandbox/arch/xtensa/include/kernel_arch_func.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,202
```objective-c /* * */ #ifndef ZEPHYR_ARCH_XTENSA_XTENSA_STACK_H_ #define ZEPHYR_ARCH_XTENSA_XTENSA_STACK_H_ #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <xtensa_asm2_context.h> /** * @defgroup xtensa_stack_internal_apis Xtensa Stack related Internal APIs * @ingroup xtensa_stack_apis *...
/content/code_sandbox/arch/xtensa/include/xtensa_stack.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
397
```unknown /* */ #include <xtensa/coreasm.h> #include <xtensa/corebits.h> #include <xtensa/cacheasm.h> #include <xtensa/cacheattrasm.h> #include <xtensa/xtensa-xer.h> #include <xtensa/xdm-regs.h> #include <xtensa/config/specreg.h> #include <xtensa/config/system.h> /* for XSHAL_USE_ABSOLUTE_LITERALS only */ #include ...
/content/code_sandbox/arch/xtensa/core/startup/reset_vector.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,811
```objective-c /* * */ #ifndef ZEPHYR_ARCH_XTENSA_XTENSA_MPU_PRIV_H_ #define ZEPHYR_ARCH_XTENSA_XTENSA_MPU_PRIV_H_ #include <stdint.h> #include <zephyr/toolchain.h> #include <zephyr/arch/xtensa/mpu.h> #include <zephyr/sys/util_macro.h> #include <xtensa/config/core-isa.h> /** * @defgroup xtensa_mpu_internal_apis...
/content/code_sandbox/arch/xtensa/include/xtensa_mpu_priv.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,010
```objective-c /* * */ #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_CONTEXT_H_ #define ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_CONTEXT_H_ #include <xtensa/corebits.h> #include <xtensa/config/core-isa.h> #include <xtensa/config/tie.h> /* * Stack frame layout for a saved processor context, in memory order, * high ...
/content/code_sandbox/arch/xtensa/include/xtensa_asm2_context.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,628
```objective-c /* */ #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_XTENSA_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define _thread_offset_to_flags \ (___thread_t_arch_OFFSET + ___thread_arch_t_flags_OFFSET) #ifdef CONFIG_USERSPACE #define _thread_offset_to_psp \ (___thread_t_arch_OFFSET + ___th...
/content/code_sandbox/arch/xtensa/include/offsets_short_arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
134
```objective-c /* * */ #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_S_H #define ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_S_H #include <zephyr/zsr.h> #include "xtensa_asm2_context.h" #include <zephyr/offsets.h> /* Assembler header! This file contains macros designed to be included * only by the assembler. */ #...
/content/code_sandbox/arch/xtensa/include/xtensa_asm2_s.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
7,834
```objective-c /* * */ #ifndef ZEPHYR_ARCH_XTENSA_CORE_INCLUDE_XTENSA_BACKTRACE_H_ #define ZEPHYR_ARCH_XTENSA_CORE_INCLUDE_XTENSA_BACKTRACE_H_ #ifdef __cplusplus extern "C" { #endif #ifndef __ASSEMBLER__ #include <stdbool.h> #include <stdint.h> /** * @ingroup xtensa_internal_apis * @{ */ /** * @brief Stru...
/content/code_sandbox/arch/xtensa/include/xtensa_backtrace.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
804
```unknown # ARM64 architecture configuration options menu "ARM64 Options" depends on ARM64 config ARCH default "arm64" config CPU_CORTEX bool help This option signifies the use of a CPU of the Cortex family. config ARM_CUSTOM_INTERRUPT_CONTROLLER bool help This option indicates that the ARM CPU is con...
/content/code_sandbox/arch/arm64/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
195
```unknown /* * */ /* * This file implements the common calling mechanism to be used with the Secure * Monitor Call (SMC) and Hypervisor Call (HVC). * * See path_to_url */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <zephyr/arch/cpu.h> #include <offsets_short.h> .macro SMCCC ins...
/content/code_sandbox/arch/arm64/core/smccc-call.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
312
```objective-c /* * Xtensa MMU support * * Private data declarations * */ #ifndef ZEPHYR_ARCH_XTENSA_XTENSA_MMU_PRIV_H_ #define ZEPHYR_ARCH_XTENSA_XTENSA_MMU_PRIV_H_ #include <stdint.h> #include <xtensa/config/core-isa.h> #include <zephyr/toolchain.h> #include <zephyr/sys/util_macro.h> /** * @defgroup xtensa_m...
/content/code_sandbox/arch/xtensa/include/xtensa_mmu_priv.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,242
```unknown /* * */ /* * Thread context switching for ARM64 Cortex-A (AArch64) * * This module implements the routines necessary for thread context switching * on ARM64 Cortex-A (AArch64) */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <offsets_short.h> #include <zephyr/arch/cpu.h>...
/content/code_sandbox/arch/arm64/core/switch.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,836
```unknown /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <zephyr/arch/cpu.h> _ASM_FILE_PROLOGUE /* * Switch TTBR0 */ GTEXT(z_arm64_set_ttbr0) SECTION_FUNC(TEXT, z_arm64_set_ttbr0) /* Switch the TTBR0 */ msr ttbr0_el1, x0 isb ret ```
/content/code_sandbox/arch/arm64/core/mmu.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
94
```c /* * Written by: Nicolas Pitre * */ #include <zephyr/kernel.h> #include <zephyr/kernel_structs.h> #include <kernel_arch_interface.h> #include <zephyr/arch/cpu.h> #include <zephyr/sys/barrier.h> #include <zephyr/sys/atomic.h> /* to be found in fpu.S */ extern void z_arm64_fpu_save(struct z_arm64_fp_context *sa...
/content/code_sandbox/arch/arm64/core/fpu.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,718
```c /* * */ /** * @file * @brief ARM64 Cortex-A interrupt initialisation */ #include <zephyr/arch/cpu.h> #include <zephyr/drivers/interrupt_controller/gic.h> /** * @brief Initialise interrupts * * This function invokes the ARM Generic Interrupt Controller (GIC) driver to * initialise the interrupt system o...
/content/code_sandbox/arch/arm64/core/irq_init.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
155
```objective-c /* * */ /** * @file * @brief Definitions for boot code */ #ifndef _BOOT_H_ #define _BOOT_H_ #ifndef _ASMLANGUAGE extern void *_vector_table[]; extern void __start(void); #endif /* _ASMLANGUAGE */ /* Offsets into the boot_params structure */ #define BOOT_PARAM_MPID_OFFSET 0 #define BOOT_PARAM_...
/content/code_sandbox/arch/arm64/core/boot.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
98
```c /* * */ /** * @file * @brief Software interrupts utility code - ARM64 implementation */ #include <zephyr/kernel.h> #include <zephyr/irq_offload.h> #include <exception.h> void arch_irq_offload(irq_offload_routine_t routine, const void *parameter) { register const void *x0 __asm__("x0") = routine; register...
/content/code_sandbox/arch/arm64/core/irq_offload.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
142
```linker script /* * */ #if LINKER_ZEPHYR_FINAL && defined(CONFIG_ISR_TABLES_LOCAL_DECLARATION) INCLUDE isr_tables_swi.ld #endif ```
/content/code_sandbox/arch/arm64/core/swi_tables.ld
linker script
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
31
```c /* * */ /** * @file * @brief New thread creation for ARM64 Cortex-A * * Core thread related primitives for the ARM64 Cortex-A */ #include <zephyr/kernel.h> #include <ksched.h> #include <zephyr/arch/cpu.h> /* * Note about stack usage: * * [ see also comments in include/arch/arm64/thread_stack.h ] * *...
/content/code_sandbox/arch/arm64/core/thread.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,790
```c /* * */ #include <string.h> #include <zephyr/debug/coredump.h> /* Identify the version of this block (in case of architecture changes). * To be interpreted by the target architecture specific block parser. */ #define ARCH_HDR_VER 1 /* Structure to store the architecture registers passed arch_coredump_info...
/content/code_sandbox/arch/arm64/core/coredump.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
794
```sourcepawn /* * */ #ifndef _MACRO_PRIV_INC_ #define _MACRO_PRIV_INC_ #include <zephyr/arch/arm64/tpidrro_el0.h> #ifdef _ASMLANGUAGE /* * Get CPU id */ .macro get_cpu_id xreg0 mrs \xreg0, mpidr_el1 /* FIMXME: aff3 not taken into consideration */ ubfx \xreg0, \xreg0, #0, #24 .endm /* * Get CPU logic id b...
/content/code_sandbox/arch/arm64/core/macro_priv.inc
sourcepawn
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
405
```objective-c /* * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. * */ /* Set below flag to get debug prints */ #define MMU_DEBUG_PRINTS 0 #if MMU_DEBUG_PRINTS /* To dump page table entries while filling them, set DUMP_PTE macro */ #define DUMP_PTE 0 #define MMU_DEBUG(fmt, ...) printk(fmt, ...
/content/code_sandbox/arch/arm64/core/mmu.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,778
```c /* * */ #include <kernel_internal.h> #include <zephyr/sys/barrier.h> #include "boot.h" void z_arm64_el2_init(void); void __weak z_arm64_el_highest_plat_init(void) { /* do nothing */ } void __weak z_arm64_el3_plat_init(void) { /* do nothing */ } void __weak z_arm64_el2_plat_init(void) { /* do nothing */ }...
/content/code_sandbox/arch/arm64/core/reset.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,686
```unknown /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <offsets_short.h> #include <zephyr/arch/cpu.h> #include <zephyr/syscall.h> #include <zephyr/arch/arm64/mm.h> #include "macro_priv.inc" _ASM_FILE_PROLOGUE /* * size_t arch_user_string_nlen(const char *s, size_t maxsize, i...
/content/code_sandbox/arch/arm64/core/userspace.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
827
```unknown /* * Written by: Nicolas Pitre * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> _ASM_FILE_PROLOGUE GTEXT(z_arm64_fpu_save) SECTION_FUNC(TEXT, z_arm64_fpu_save) stp q0, q1, [x0, #(16 * 0)] stp q2, q3, [x0, #(16 * 2)] stp q4, q5, [x0, #(16 * 4)] stp q6, q7, [x0, #(16...
/content/code_sandbox/arch/arm64/core/fpu.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
809
```c /* * */ /** * @file * @brief Full C support initialization * * Initialization of full C support: zero the .bss and call z_cstart(). * * Stack is available in this module, but not the global data/bss until their * initialization is performed. */ #include <kernel_internal.h> #include <zephyr/linker/linke...
/content/code_sandbox/arch/arm64/core/prep_c.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
295
```unknown /* * */ /* * ARM64 Cortex-A ISRs wrapper */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <offsets_short.h> #include <zephyr/arch/cpu.h> #include <zephyr/sw_isr_table.h> #include <zephyr/drivers/interrupt_controller/gic.h> #include "macro_priv.inc" _ASM_FILE_PROLOGUE GDAT...
/content/code_sandbox/arch/arm64/core/isr_wrapper.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,122
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/kernel_structs.h> #include <kernel_internal.h> #include <kernel_tls.h> #include <zephyr/app_memory/app_memdomain.h> #include <zephyr/sys/util.h> size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr) { /* * TLS area for ARM has some data...
/content/code_sandbox/arch/arm64/core/tls.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
292
```unknown /* * */ #include <zephyr/linker/sections.h> #include <zephyr/arch/cpu.h> #include "mmu.h" #if CONFIG_MMU_PAGE_SIZE == 4096 || defined(CONFIG_ARM_MPU) #define HEADER_PGSIZE 1 #elif CONFIG_MMU_PAGE_SIZE == 16384 #define HEADER_PGSIZE 2 #elif CONFIG_MMU_PAGE_SIZE == 65536 #define HEADER_PGSIZE 3 #else #defi...
/content/code_sandbox/arch/arm64/core/header.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
291
```unknown /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> _ASM_FILE_PROLOGUE /* * These simple memset and memcpy alternatives are necessary as the optimized * ones depend on the MMU to be active (see commit c5b898743a20). * * Furthermore, we can't implement those in C as the compiler...
/content/code_sandbox/arch/arm64/core/early_mem_funcs.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
596
```unknown /* * */ /* * Populated vector table */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <zephyr/offsets.h> #include <zephyr/arch/cpu.h> #include <zephyr/arch/arm64/tpidrro_el0.h> #include <offsets_short.h> #include "macro_priv.inc" _ASM_FILE_PROLOGUE /* * Save volatile reg...
/content/code_sandbox/arch/arm64/core/vector_table.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,222
```unknown /* * */ /* * ARM64 Cortex-A power management */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <zephyr/arch/cpu.h> _ASM_FILE_PROLOGUE #ifndef CONFIG_ARCH_HAS_CUSTOM_CPU_IDLE GTEXT(arch_cpu_idle) SECTION_FUNC(TEXT, arch_cpu_idle) #ifdef CONFIG_TRACING str lr, [sp, #-16]! b...
/content/code_sandbox/arch/arm64/core/cpu_idle.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
256
```c /* * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. * * */ #include <zephyr/cache.h> #include <zephyr/device.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <kernel_arch_func.h> #include <kernel_arch_interface.h> #include <kernel_internal.h> #include <zephyr/logging/log.h...
/content/code_sandbox/arch/arm64/core/mmu.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
10,139
```unknown # ARM64 core configuration options config CPU_CORTEX_A bool select CPU_CORTEX select HAS_FLASH_LOAD_OFFSET select SCHED_IPI_SUPPORTED if SMP select CPU_HAS_FPU select ARCH_HAS_SINGLE_THREAD_SUPPORT select CPU_HAS_DCACHE select CPU_HAS_ICACHE imply FPU imply FPU_SHARING help This option signif...
/content/code_sandbox/arch/arm64/core/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,313
```c /* * Organisation (CSIRO) ABN 41 687 119 230. * */ #include <zephyr/arch/common/semihost.h> long semihost_exec(enum semihost_instr instr, void *args) { register unsigned long w0 __asm__ ("w0") = instr; register void *x1 __asm__ ("x1") = args; register long ret __asm__ ("x0"); __asm__ volatile ("hlt 0xf00...
/content/code_sandbox/arch/arm64/core/semihost.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
132
```c /* * * */ /** * @file * @brief codes required for AArch64 multicore and Zephyr smp support */ #include <zephyr/cache.h> #include <zephyr/device.h> #include <zephyr/devicetree.h> #include <zephyr/kernel.h> #include <zephyr/kernel_structs.h> #include <ksched.h> #include <ipi.h> #include <zephyr/init.h> #incl...
/content/code_sandbox/arch/arm64/core/smp.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,124
```unknown /* * */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <zephyr/arch/cpu.h> #include <zephyr/offsets.h> #include "boot.h" #include "macro_priv.inc" _ASM_FILE_PROLOGUE /* * Platform specific pre-C init code * * Note: - Stack is not yet available * - x23, x24 and x25 m...
/content/code_sandbox/arch/arm64/core/reset.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,689
```c /* * */ /** * @file * @brief ARM64 Cortex-A interrupt management */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/tracing/tracing.h> #include <zephyr/irq.h> #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <zephyr/sw_isr_table.h> #include <zephyr/drivers/...
/content/code_sandbox/arch/arm64/core/irq_manage.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
422
```c /* * */ /** * @file * @brief ARM64 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 ARM kernel structures. * * All of the absolute symbols defined by this module will be present...
/content/code_sandbox/arch/arm64/core/offsets/offsets.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
754
```unknown /* */ #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> #include <zephyr/xen/public/arch-arm.h> #include <zephyr/xen/public/xen.h> #define HYPERCALL(hypercall) \ GTEXT(HYPERVISOR_##hypercall); \ SECTION_FUNC(TEXT, HYPERVISOR_##hypercall) \ mov x16, #__HYPERVISOR_##hypercall; \ hvc XE...
/content/code_sandbox/arch/arm64/core/xen/hypercall.S
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
178
```c /* * */ #include <zephyr/arch/arm64/hypercall.h> #include <zephyr/xen/events.h> #include <zephyr/xen/generic.h> #include <zephyr/xen/public/xen.h> #include <zephyr/xen/public/memory.h> #include <zephyr/device.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/kernel/thread.h> #include <zep...
/content/code_sandbox/arch/arm64/core/xen/enlighten.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
496
```unknown # Xen hypervisor configuration options config XEN bool default y depends on ARMV8_A depends on DT_HAS_XEN_XEN_ENABLED help Enables support of Xen hypervisor on arm64 platform. Get enabled when board device tree contains "hypervisor" node with "xen,xen" compatible enabled. config XEN_DOM0 bo...
/content/code_sandbox/arch/arm64/core/xen/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
170
```c /* * */ /** * @file * @brief Kernel fatal error handler for ARM64 Cortex-A * * This module provides the z_arm64_fatal_error() routine for ARM64 Cortex-A * CPUs and z_arm64_do_kernel_oops() routine to manage software-generated fatal * exceptions */ #include <zephyr/debug/symtab.h> #include <zephyr/driver...
/content/code_sandbox/arch/arm64/core/fatal.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,695
```unknown # Memory Protection Unit (MPU) configuration options if CPU_HAS_MPU config ARM_MPU bool "ARM MPU Support" select THREAD_STACK_INFO select MPU select SRAM_REGION_PERMISSIONS select ARCH_MEM_DOMAIN_SYNCHRONOUS_API if USERSPACE default y help MPU implements Memory Protection Unit. Notes: Th...
/content/code_sandbox/arch/arm64/core/cortex_r/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
480
```objective-c /* * */ /** * @file * @brief Private kernel definitions (ARM64) * * This file contains private kernel function definitions and various * other definitions for the ARM Cortex-A processor architecture family. * * This file is also included by assembly language files which must #define * _ASMLANG...
/content/code_sandbox/arch/arm64/include/kernel_arch_func.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
361
```objective-c /* * */ /** * @file * @brief Exception/interrupt context helpers for Cortex-A CPUs * * Exception/interrupt context helpers. */ #ifndef ZEPHYR_ARCH_ARM64_INCLUDE_EXCEPTION_H_ #define ZEPHYR_ARCH_ARM64_INCLUDE_EXCEPTION_H_ #include <zephyr/arch/cpu.h> #ifdef _ASMLANGUAGE /* nothing */ #else #...
/content/code_sandbox/arch/arm64/include/exception.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
137
```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/arm64/include/kernel_arch_data.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
262
```objective-c /* * */ #ifndef ZEPHYR_ARCH_ARM64_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_ARM64_INCLUDE_OFFSETS_SHORT_ARCH_H_ #include <zephyr/offsets.h> #define _thread_offset_to_exception_depth \ (___thread_t_arch_OFFSET + ___thread_arch_t_exception_depth_OFFSET) #define _thread_offset_to_callee_saved...
/content/code_sandbox/arch/arm64/include/offsets_short_arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
418