Home
last modified time | relevance | path

Searched full:fp (Results 1 – 25 of 139) sorted by relevance

123456

/Zephyr-latest/subsys/profiling/perf/backends/
Dperf_riscv.c36 * In riscv (arch/riscv/core/isr.S) ra, ip($mepc) and fp($s0) are saved in arch_perf_current_stack_trace()
41 * The following lines lines do the reverse things to get ra, ip anf fp in arch_perf_current_stack_trace()
53 * [-] <- $fp($s0) (curr) in arch_perf_current_stack_trace()
55 * $fp($s0) (next) in arch_perf_current_stack_trace()
61 * [-] <- $fp($s0) (curr) in arch_perf_current_stack_trace()
62 * $fp($s0) (next) in arch_perf_current_stack_trace()
66 void **fp = (void **)esf->s0; in arch_perf_current_stack_trace() local
67 void **new_fp = (void **)fp[-1]; in arch_perf_current_stack_trace()
72 * During function prologue and epilogue fp is equal to fp of in arch_perf_current_stack_trace()
80 fp = new_fp; in arch_perf_current_stack_trace()
[all …]
Dperf_x86_64.c44 void **fp = (void **)arch_current_thread()->callee_saved.rbp; in arch_perf_current_stack_trace() local
56 while (valid_stack((uintptr_t)fp, arch_current_thread())) { in arch_perf_current_stack_trace()
61 if (!in_text_region((uintptr_t)fp[1])) { in arch_perf_current_stack_trace()
65 buf[idx++] = (uintptr_t)fp[1]; in arch_perf_current_stack_trace()
66 void **new_fp = (void **)fp[0]; in arch_perf_current_stack_trace()
70 * new_fp can't be smaller than fp, cause the stack is growing down in arch_perf_current_stack_trace()
73 if (new_fp <= fp) { in arch_perf_current_stack_trace()
76 fp = new_fp; in arch_perf_current_stack_trace()
Dperf_x86.c56 void **fp = (void **)isf->ebp; in arch_perf_current_stack_trace() local
70 while (valid_stack((uintptr_t)fp, arch_current_thread())) { in arch_perf_current_stack_trace()
75 if (!in_text_region((uintptr_t)fp[1])) { in arch_perf_current_stack_trace()
79 buf[idx++] = (uintptr_t)fp[1]; in arch_perf_current_stack_trace()
80 void **new_fp = (void **)fp[0]; in arch_perf_current_stack_trace()
84 * new_fp can't be smaller than fp, cause the stack is growing down in arch_perf_current_stack_trace()
87 if (new_fp <= fp) { in arch_perf_current_stack_trace()
90 fp = new_fp; in arch_perf_current_stack_trace()
/Zephyr-latest/tests/lib/cbprintf_fp/
Dtestcase.yaml10 libraries.cbprintf.fp.printk:
19 libraries.cbprintf.fp.printf:
28 libraries.cbprintf.fp.printf_nl:
39 libraries.cbprintf.fp.printfcb:
48 libraries.cbprintf.fp.printfcb_nl:
59 libraries.cbprintf.fp.fprintf:
68 libraries.cbprintf.fp.fprintfcb:
77 libraries.cbprintf.fp.printf.picolibc:
89 libraries.cbprintf.fp.printfcb.picolibc:
/Zephyr-latest/scripts/build/
Dgen_isr_tables_parser_local.py261 def __write_isr_handlers(self, fp): argument
264 fp.write(self.__isr_spurious_entry(i) + '\n')
267 fp.write(self.__isr_shared_entry(i) + '\n')
269 fp.write('/* ISR: {} implemented in app in "{}" section. */\n'.format(
272 def __write_irq_handlers(self, fp): argument
275 fp.write(self.__irq_spurious_entry(i) + '\n')
277 fp.write('/* ISR: {} implemented in app. */\n'.format(i))
279 def __write_shared_handlers(self, fp): argument
280 fp.write("extern struct z_shared_isr_table_entry "
289 fp.write('static Z_DECL_ALIGN(struct _isr_table_entry)\n' +
[all …]
Dgen_iter_sections.py15 with open(filepath) as fp:
16 return json.load(fp)[tag]
20 with open(filepath, "w") as fp:
22 fp.write(f"ITERABLE_SECTION_ROM({item}, {alignment})\n")
26 with open(filepath, "w") as fp:
28 fp.write(
34 fp.write(
41 fp.write('set(DEVICE_API_SECTIONS "${sections}" CACHE INTERNAL "")\n')
42 fp.write('set(DEVICE_API_SECTION_SETTINGS "${section_settings}" CACHE INTERNAL "")\n')
Dgen_isr_tables_parser_carrays.py182 def __write_code_irq_vector_table(self, fp): argument
183 fp.write(self.source_assembly_header)
185 fp.write("void __irq_vector_table __attribute__((naked)) _irq_vector_table(void) {\n")
197 fp.write("\t__asm(ARCH_IRQ_VECTOR_JUMP_CODE({}));\n".format(func_as_string))
198 fp.write("}\n")
200 def __write_address_irq_vector_table(self, fp): argument
201 fp.write("uintptr_t __irq_vector_table _irq_vector_table[%d] = {\n" % self.__nv)
209 fp.write("\t{},\n".format(func))
211 fp.write("\t((uintptr_t)&{}),\n".format(func))
213 fp.write("};\n")
[all …]
Dgen_kobject_list.py773 def write_gperf_table(fp, syms, objs, little_endian, static_begin, static_end): argument
774 fp.write(header)
776 fp.write("static struct k_mutex kernel_mutexes[%d] = {\n"
779 fp.write("Z_MUTEX_INITIALIZER(kernel_mutexes[%d])" % i)
781 fp.write(", ")
782 fp.write("};\n")
785 fp.write("static struct z_futex_data futex_data[%d] = {\n"
788 fp.write("Z_FUTEX_DATA_INITIALIZER(futex_data[%d])" % i)
790 fp.write(", ")
791 fp.write("};\n")
[all …]
Dparse_syscalls.py71 with open(file_list, "r", encoding="utf-8") as fp:
72 contents = fp.read()
118 with open(one_file, "r", encoding="utf-8") as fp:
120 contents = fp.read()
145 with open(path, 'r') as fp:
146 old = fp.read()
149 with open(path, 'w') as fp:
150 fp.write(new)
152 with open(path, 'w') as fp:
153 fp.write(new)
Dfile2hex.py71 with open(args.file, "rb") as fp:
72 fp.seek(args.offset)
74 for chunk in iter(lambda: fp.read(8), b''):
78 for chunk in iter(lambda: fp.read(min(8, remainder)), b''):
/Zephyr-latest/arch/x86/core/ia32/
Dfloat.c40 * The kernel sets CR0[TS] to 0 only for threads that require FP register
42 * to perform an FP operation will cause an exception, allowing the kernel
43 * to enable FP register sharing on its behalf.
55 * This routine sets CR0[TS] to 1, which disallows the use of FP instructions
161 * The transition from "non-FP supporting" to "FP supporting" must be done
184 * The current thread might not allow FP instructions, so clear CR0[TS] in z_float_enable()
192 * but only if the FPU is "owned" by an FP-capable task that is in z_float_enable()
193 * currently handling an interrupt or exception (meaning its FP context in z_float_enable()
204 /* Now create a virgin FP context */ in z_float_enable()
208 /* Associate the new FP context with the specified thread */ in z_float_enable()
[all …]
/Zephyr-latest/arch/riscv/core/
Dstacktrace.c22 uintptr_t fp; member
103 uintptr_t fp, last_fp = 0; in walk_stackframe() local
109 fp = esf->s0; in walk_stackframe()
113 fp = (uintptr_t)__builtin_frame_address(0); in walk_stackframe()
117 fp = csf->s0; in walk_stackframe()
121 for (int i = 0; (i < MAX_STACK_FRAMES) && vrfy(fp, thread, esf) && (fp > last_fp); i++) { in walk_stackframe()
122 if (in_text_region(ra) && !cb(cookie, ra, fp)) { in walk_stackframe()
125 last_fp = fp; in walk_stackframe()
128 frame = (struct stackframe *)fp - 1; in walk_stackframe()
132 if (in_text_region(esf->ra) && !cb(cookie, esf->ra, fp)) { in walk_stackframe()
[all …]
/Zephyr-latest/tests/net/socket/udp/
Dgenerate-c-string.py20 with open(args.filepath, "w", encoding="UTF-8") as fp:
21 fp.write('"')
23 fp.write(chunks[:args.size])
24 fp.write('"')
/Zephyr-latest/tests/kernel/fpu_sharing/float_disable/src/
Dk_float_disable.c54 /* System call to disable FP mode */ in usr_fp_thread_entry_2()
72 /* Create an FP-capable User thread with the same cooperative in ZTEST()
86 "usr_fp_thread FP options not set (0x%0x)", in ZTEST()
90 /* Verify FP mode can only be disabled for current thread */ in ZTEST()
97 "usr_fp_thread FP options cleared"); in ZTEST()
105 "usr_fp_thread FP options not clear (0x%0x)", in ZTEST()
120 /* Create an FP-capable User thread with the same cooperative in ZTEST()
122 * FP mode. in ZTEST()
135 "usr_fp_thread FP options not set (0x%0x)", in ZTEST()
146 "usr_fp_thread FP options not clear (0x%0x)", in ZTEST()
[all …]
/Zephyr-latest/arch/sparc/core/
Dinterrupt_trap.S26 * %fp: %sp of current register window at trap time
90 sub %fp, ISF_SIZE, %sp
92 * %fp: %sp of interrupted task
109 mov %sp, %fp
115 * %fp: %sp of interrupted task - ISF_SIZE.
168 * %fp: %sp of interrupted task - ISF_SIZE.
174 sub %fp, (96+8), %sp
176 * %fp: %sp of interrupted task - ISF_SIZE.
193 /* IF PSR_EF at trap time then store the FP context. */
199 * PSR_EF was 1 at trap time so save the FP registers on stack.
[all …]
/Zephyr-latest/scripts/coccinelle/
Dreserved_names.cocci48 with open("scripts/coccinelle/symbols.txt", "r") as fp:
49 symbols = fp.read().splitlines()
67 with open("scripts/coccinelle/symbols.txt", "r") as fp:
68 symbols = fp.read().splitlines()
89 with open("scripts/coccinelle/symbols.txt", "r") as fp:
90 symbols = fp.read().splitlines()
/Zephyr-latest/arch/arm/core/cortex_m/
Dprep_c.c109 /* Unshared FP registers (multithreading) mode. We disable the in z_arm_floating_point_init()
110 * automatic stacking of FP registers (automatic setting of in z_arm_floating_point_init()
112 * as the FP registers are to be used by a single context (and in z_arm_floating_point_init()
113 * the use of FP registers in ISRs is not supported). This in z_arm_floating_point_init()
116 * use of the FP co-processor. in z_arm_floating_point_init()
121 * FP register sharing (multithreading) mode or single-threading mode. in z_arm_floating_point_init()
123 * Enable both automatic and lazy state preservation of the FP context. in z_arm_floating_point_init()
126 * preservation the volatile FP registers will not be stacked upon in z_arm_floating_point_init()
155 * The use of the FP register bank is enabled, however the FP context in z_arm_floating_point_init()
168 * In Sharing FP Registers mode CONTROL.FPCA is cleared before switching in z_arm_floating_point_init()
Dfpu.c13 * @file @brief Helper functions for saving and restoring the FP context.
25 /* Store caller-saved and callee-saved FP registers. */ in z_arm_save_fp_context()
35 /* Disable FPCA so no stacking of FP registers happens in TFM. */ in z_arm_save_fp_context()
55 /* Restore FP state. */ in z_arm_restore_fp_context()
/Zephyr-latest/tests/arch/common/stack_unwind/
Dtestcase.yaml19 - "E: 0: fp: \\w+ ra: \\w+"
20 - "E: 1: fp: \\w+ ra: \\w+"
58 - "E: 0: fp: \\w+ lr: \\w+"
59 - "E: 1: fp: \\w+ lr: \\w+"
/Zephyr-latest/tests/unit/cbprintf/
Dtestcase.yaml18 utilities.prf.m32v02: # REDUCED + FP
25 utilities.prf.m32v03: # FULL + FP
32 utilities.prf.m32v07: # FULL + FP + FP_A
85 utilities.prf.m32v207: # PACKAGED FULL + FP + FP_A
112 utilities.prf.m32v1207: # PACKAGED FULL + FP + FP_A + PACKAGE_ALIGN_OFFSET
138 utilities.prf.m32va07: # PACKAGED FULL + FP + FP_A + AVOID_C_GENERIC
177 utilities.prf.m64v03: # m64 FULL & FP
184 utilities.prf.m64v17: # m64 FULL & FP & FP_A
230 utilities.prf.m64v207: # PACKAGED FULL + FP + FP_A
276 utilities.prf.m64v607: # PACKAGED FULL + FP + FP_A + LONG_DOUBLE PACKAGING
[all …]
/Zephyr-latest/doc/kernel/services/other/
Dfloat.rst30 No FP registers mode
39 Unshared FP registers mode
55 Shared FP registers mode
79 The Shared FP registers mode is the default Floating Point
83 treats *all* threads as FPU users when shared FP registers mode is enabled.
88 Pretag a thread that intends to use the FP registers by
106 point registers, the kernel restores the *callee-saved* FP registers of
107 the switched-in thread and the *caller-saved* FP context is restored from
108 the thread's stack. Thus, the kernel does not save or restore the FP
109 context of threads that are not using the FP registers.
[all …]
/Zephyr-latest/scripts/
Dgen_gcov_files.py21 with open(input_file, 'r') as fp:
22 for line in fp.readlines():
60 with open(filename, 'wb') as fp:
61 fp.write(bytes.fromhex(hexdump_val))
/Zephyr-latest/subsys/fs/
Dlittlefs_fs.c44 #define LFS_FILEP(fp) (&((struct lfs_file_data *)(fp->filep))->file) argument
262 static void release_file_data(struct fs_file_t *fp) in release_file_data() argument
264 struct lfs_file_data *fdp = fp->filep; in release_file_data()
270 k_mem_slab_free(&file_data_pool, fp->filep); in release_file_data()
271 fp->filep = NULL; in release_file_data()
289 static int littlefs_open(struct fs_file_t *fp, const char *path, in littlefs_open() argument
292 struct fs_littlefs *fs = fp->mp->fs_data; in littlefs_open()
295 int ret = k_mem_slab_alloc(&file_data_pool, &fp->filep, K_NO_WAIT); in littlefs_open()
301 struct lfs_file_data *fdp = fp->filep; in littlefs_open()
312 path = fs_impl_strip_prefix(path, fp->mp); in littlefs_open()
[all …]
/Zephyr-latest/arch/arm64/core/
Dfatal.c202 typedef bool (*arm64_stacktrace_cb)(void *cookie, unsigned long addr, void *fp);
223 * | | previous FP | <---+ FP in walk_stackframe()
227 uint64_t *fp; in walk_stackframe() local
231 fp = (uint64_t *) esf->fp; in walk_stackframe()
236 for (int i = 0; (fp != NULL) && (i < max_frames); i++) { in walk_stackframe()
237 lr = fp[1]; in walk_stackframe()
238 if (!cb(cookie, lr, fp)) { in walk_stackframe()
241 fp = (uint64_t *) fp[0]; in walk_stackframe()
256 static bool print_trace_address(void *arg, unsigned long lr, void *fp) in print_trace_address() argument
263 LOG_ERR(" %d: fp: 0x%016llx lr: 0x%016lx [%s+0x%x]", (*i)++, (uint64_t)fp, lr, name, in print_trace_address()
[all …]
/Zephyr-latest/cmake/
Dgcc-m-fpu.cmake21 set(GCC_M_FPU neon-fp-armv8)
39 set(FPU_FOR_cortex-m55+nomve.fp auto)
43 set(FPU_FOR_cortex-m85+nomve.fp auto)

123456