| /libcpu/risc-v/virt64/ |
| A D | interrupt.c | 81 int idx = 0; in rt_hw_interrupt_init() local 83 for (idx = 0; idx < MAX_HANDLERS; idx++) in rt_hw_interrupt_init() 85 irq_desc[idx].handler = (rt_isr_handler_t)rt_hw_interrupt_handle; in rt_hw_interrupt_init() 86 irq_desc[idx].param = RT_NULL; in rt_hw_interrupt_init() 88 rt_snprintf(irq_desc[idx].name, RT_NAME_MAX - 1, "default"); in rt_hw_interrupt_init() 89 irq_desc[idx].counter = 0; in rt_hw_interrupt_init()
|
| /libcpu/arm/cortex-a/ |
| A D | pmu.h | 112 rt_inline void rt_hw_pmu_select_counter(int idx) in rt_hw_pmu_select_counter() argument 114 RT_ASSERT(idx < ARM_PMU_CNTER_NR); in rt_hw_pmu_select_counter() 116 asm volatile ("mcr p15, 0, %0, c9, c12, 5" : : "r"(idx)); in rt_hw_pmu_select_counter() 121 rt_inline void rt_hw_pmu_select_event(int idx, in rt_hw_pmu_select_event() argument 124 RT_ASSERT(idx < ARM_PMU_CNTER_NR); in rt_hw_pmu_select_event() 126 rt_hw_pmu_select_counter(idx); in rt_hw_pmu_select_event() 130 rt_inline unsigned long rt_hw_pmu_read_counter(int idx) in rt_hw_pmu_read_counter() argument 134 rt_hw_pmu_select_counter(idx); in rt_hw_pmu_read_counter()
|
| A D | backtrace.c | 164 const struct unwind_idx *idx = RT_NULL; in unwind_find_idx() local 176 idx = search_index(addr, exidx_start, in unwind_find_idx() 181 LOG_D("%s: idx = %x", __func__, idx); in unwind_find_idx() 182 return idx; in unwind_find_idx() 384 const struct unwind_idx *idx; in unwind_frame() local 397 if (!idx) in unwind_frame() 419 if (idx->insn == 1) in unwind_frame() 422 else if ((idx->insn & 0x80000000) == 0) in unwind_frame() 425 else if ((idx->insn & 0xff000000) == 0x80000000) in unwind_frame() 427 ctrl.insn = &idx->insn; in unwind_frame() [all …]
|
| /libcpu/arm/realview-a8-vmm/ |
| A D | pmu.h | 112 rt_inline void rt_hw_pmu_select_counter(int idx) in rt_hw_pmu_select_counter() argument 114 RT_ASSERT(idx < ARM_PMU_CNTER_NR); in rt_hw_pmu_select_counter() 116 asm volatile ("mcr p15, 0, %0, c9, c12, 5" : : "r"(idx)); in rt_hw_pmu_select_counter() 121 rt_inline void rt_hw_pmu_select_event(int idx, in rt_hw_pmu_select_event() argument 124 RT_ASSERT(idx < ARM_PMU_CNTER_NR); in rt_hw_pmu_select_event() 126 rt_hw_pmu_select_counter(idx); in rt_hw_pmu_select_event() 130 rt_inline unsigned long rt_hw_pmu_read_counter(int idx) in rt_hw_pmu_read_counter() argument 134 rt_hw_pmu_select_counter(idx); in rt_hw_pmu_read_counter()
|
| /libcpu/arm/am335x/ |
| A D | interrupt.c | 208 int idx; in rt_dump_isr_table() local 209 for(idx = 0; idx < MAX_HANDLERS; idx++) in rt_dump_isr_table() 213 idx, RT_NAME_MAX, isr_table[idx].name, in rt_dump_isr_table() 214 isr_table[idx].handler, isr_table[idx].param); in rt_dump_isr_table() 217 idx, isr_table[idx].handler, isr_table[idx].param); in rt_dump_isr_table()
|
| /libcpu/ia32/ |
| A D | interrupt.c | 76 int idx; in rt_hw_interrupt_init() local 82 for(idx=0; idx < MAX_HANDLERS; idx++) in rt_hw_interrupt_init() 84 irq_desc[idx].handler = (rt_isr_handler_t)rt_hw_interrupt_handle; in rt_hw_interrupt_init() 85 irq_desc[idx].param = RT_NULL; in rt_hw_interrupt_init() 87 rt_snprintf(irq_desc[idx].name, RT_NAME_MAX - 1, "default"); in rt_hw_interrupt_init() 88 irq_desc[idx].counter = 0; in rt_hw_interrupt_init()
|
| /libcpu/risc-v/t-head/c906/ |
| A D | interrupt.c | 37 rt_int32_t idx; in rt_hw_interrupt_init() local 40 for (idx = 0; idx < INTERRUPTS_MAX; idx++) in rt_hw_interrupt_init() 42 isr_table[idx].handler = rt_hw_interrupt_handler; in rt_hw_interrupt_init()
|
| /libcpu/risc-v/t-head/c908/ |
| A D | interrupt.c | 37 rt_int32_t idx; in rt_hw_interrupt_init() local 40 for (idx = 0; idx < INTERRUPTS_MAX; idx++) in rt_hw_interrupt_init() 42 isr_table[idx].handler = rt_hw_interrupt_handler; in rt_hw_interrupt_init()
|
| /libcpu/arm/sep4020/ |
| A D | interrupt.c | 40 register rt_uint32_t idx; in rt_hw_interrupt_init() local 67 for(idx=0; idx < MAX_HANDLERS; idx++) in rt_hw_interrupt_init() 69 isr_table[idx].handler = rt_hw_interrupt_handle; in rt_hw_interrupt_init()
|
| /libcpu/arm/s3c24x0/ |
| A D | interrupt.c | 40 register rt_uint32_t idx; in rt_hw_interrupt_init() local 62 for(idx=0; idx < MAX_HANDLERS; idx++) in rt_hw_interrupt_init() 64 isr_table[idx].handler = rt_hw_interrupt_handle; in rt_hw_interrupt_init()
|
| /libcpu/arm/zynqmp-r5/ |
| A D | interrupt.c | 34 register rt_uint32_t idx; in rt_hw_interrupt_init() local 40 for (idx = 0; idx < MAX_HANDLERS; idx++) in rt_hw_interrupt_init() 42 isr_table[idx].handler = rt_hw_interrupt_handle; in rt_hw_interrupt_init()
|
| /libcpu/risc-v/common/ |
| A D | trap_common.c | 28 int idx = 0; in rt_hw_interrupt_init() local 30 for (idx = 0; idx < ISR_NUMBER; idx++) in rt_hw_interrupt_init() 32 rv32irq_table[idx].handler = (rt_isr_handler_t)rt_hw_interrupt_handle; in rt_hw_interrupt_init() 33 rv32irq_table[idx].param = RT_NULL; in rt_hw_interrupt_init()
|
| /libcpu/aarch64/common/ |
| A D | interrupt.c | 411 int idx; in list_isr() local 433 for (idx = 0; idx < MAX_HANDLERS; idx++) in list_isr() 435 if (isr_table[idx].handler != RT_NULL) in list_isr() 437 … rt_kprintf("%*.s %4d %p %p %16d", RT_NAME_MAX, isr_table[idx].name, idx, isr_table[idx].handler, in list_isr() 438 isr_table[idx].param, isr_table[idx].counter); in list_isr() 441 rt_kprintf(" %7d", isr_table[idx].cpu_counter[i]); in list_isr()
|
| A D | setup.c | 174 for (int idx = 0; idx < RT_ARRAY_SIZE(cpu_ops); ++idx) in cpu_info_init() local 176 struct cpu_ops_t *ops = cpu_ops[idx]; in cpu_info_init() 351 for (int idx = 0; !err && idx < RT_ARRAY_SIZE(cpu_ops); ++idx) in rt_hw_secondary_cpu_up() local 353 struct cpu_ops_t *ops = cpu_ops[idx]; in rt_hw_secondary_cpu_up()
|
| /libcpu/mips/gs232/ |
| A D | interrupt.c | 46 rt_int32_t idx; in rt_hw_interrupt_init() local 64 for (idx = 0; idx < MAX_INTR; idx ++) in rt_hw_interrupt_init() 66 irq_handle_table[idx].handler = rt_hw_interrupt_handler; in rt_hw_interrupt_init()
|
| /libcpu/unicore32/sep6200/ |
| A D | interrupt.c | 131 register rt_uint32_t idx; in rt_hw_interrupt_init() local 135 for(idx=0; idx < MAX_HANDLERS; idx++) in rt_hw_interrupt_init() 137 isr_table[idx].handler = (rt_isr_handler_t)rt_hw_interrupt_handle; in rt_hw_interrupt_init()
|
| /libcpu/arm/cortex-r52/ |
| A D | backtrace.c | 165 const struct unwind_idx *idx = RT_NULL; in unwind_find_idx() local 177 idx = search_index(addr, exidx_start, in unwind_find_idx() 182 LOG_D("%s: idx = %x", __func__, idx); in unwind_find_idx() 183 return idx; in unwind_find_idx() 385 const struct unwind_idx *idx; in unwind_frame() local 398 if (!idx) in unwind_frame() 420 if (idx->insn == 1) in unwind_frame() 423 else if ((idx->insn & 0x80000000) == 0) in unwind_frame() 426 else if ((idx->insn & 0xff000000) == 0x80000000) in unwind_frame() 428 ctrl.insn = &idx->insn; in unwind_frame() [all …]
|
| /libcpu/risc-v/common64/ |
| A D | stackframe.h | 40 #define BYTES(idx) ((idx) * REGBYTES) argument
|