/lk-master/kernel/include/kernel/ |
A D | mp.h | 52 static inline int mp_is_cpu_active(uint cpu) { in mp_is_cpu_active() argument 53 return mp.active_cpus & (1 << cpu); in mp_is_cpu_active() 56 static inline int mp_is_cpu_idle(uint cpu) { in mp_is_cpu_idle() argument 57 return mp.idle_cpus & (1 << cpu); in mp_is_cpu_idle() 61 static inline void mp_set_cpu_idle(uint cpu) { in mp_set_cpu_idle() argument 62 mp.idle_cpus |= 1UL << cpu; in mp_set_cpu_idle() 65 static inline void mp_set_cpu_busy(uint cpu) { in mp_set_cpu_busy() argument 66 mp.idle_cpus &= ~(1UL << cpu); in mp_set_cpu_busy() 74 mp.realtime_cpus |= 1UL << cpu; in mp_set_cpu_realtime() 78 mp.realtime_cpus &= ~(1UL << cpu); in mp_set_cpu_non_realtime() [all …]
|
/lk-master/dev/interrupt/arm_gic/ |
A D | arm_gic.c | 89 uint cpu = arch_curr_cpu_num(); in register_int_handler() local 386 uint cpu = arch_curr_cpu_num(); in __platform_irq() local 414 uint cpu = arch_curr_cpu_num(); in platform_irq() local 558 ASSERT(cpu < 8); in suspend_resume_fiq() 568 ASSERT(cpu < 8); in sm_intc_fiq_enter() 573 LTRACEF("spurious fiq: cpu %d, old %d, new %d\n", cpu, current_fiq[cpu], irq); in sm_intc_fiq_enter() 590 current_fiq[cpu] = irq; in sm_intc_fiq_enter() 598 ASSERT(cpu < 8); in sm_intc_fiq_exit() 600 LTRACEF("cpu %d, irq %i\n", cpu, current_fiq[cpu]); in sm_intc_fiq_exit() 605 update_fiq_targets(cpu, true, current_fiq[cpu], false); in sm_intc_fiq_exit() [all …]
|
/lk-master/arch/arm64/ |
A D | fpu.c | 18 uint cpu = arch_curr_cpu_num(); in arm64_fpu_load_state() local 21 if (fpstate == current_fpstate[cpu] && fpstate->current_cpu == cpu) { in arm64_fpu_load_state() 22 LTRACEF("cpu %d, thread %s, fpstate already valid\n", cpu, t->name); in arm64_fpu_load_state() 26 cpu, t->name, fpstate, fpstate->current_cpu, current_fpstate[cpu]); in arm64_fpu_load_state() 27 fpstate->current_cpu = cpu; in arm64_fpu_load_state() 28 current_fpstate[cpu] = fpstate; in arm64_fpu_load_state()
|
A D | arch.c | 142 uint cpu = arch_curr_cpu_num(); in arm64_secondary_entry() local 143 if (cpu != asm_cpu_num) in arm64_secondary_entry() 156 LTRACEF("cpu num %d\n", cpu); in arm64_secondary_entry()
|
/lk-master/platform/bcm28xx/ |
A D | intc.c | 93 for (uint cpu = 0; cpu < 4; cpu++) { in mask_interrupt() local 94 uintptr_t reg = INTC_LOCAL_TIMER_INT_CONTROL0 + cpu * 4; in mask_interrupt() 125 for (uint cpu = 0; cpu < 4; cpu++) { in unmask_interrupt() local 126 uintptr_t reg = INTC_LOCAL_TIMER_INT_CONTROL0 + cpu * 4; in unmask_interrupt() 164 uint cpu = arch_curr_cpu_num(); in platform_irq() local 169 uint32_t pend = *REG32(INTC_LOCAL_IRQ_PEND0 + cpu * 4); in platform_irq() 214 LTRACEF("cpu %u vector %u\n", cpu, vector); in platform_irq() 221 pend = *REG32(INTC_LOCAL_MAILBOX0_CLR0 + 0x10 * cpu); in platform_irq() 225 *REG32(INTC_LOCAL_MAILBOX0_CLR0 + 0x10 * cpu) = pend; in platform_irq() 240 panic("irq %u fired on cpu %u but no handler set!\n", vector, cpu); in platform_irq()
|
/lk-master/kernel/ |
A D | timer.c | 53 static void insert_timer_in_queue(uint cpu, timer_t *timer) { in insert_timer_in_queue() argument 60 list_for_every_entry(&timers[cpu].timer_queue, entry, timer_t, node) { in insert_timer_in_queue() 68 list_add_tail(&timers[cpu].timer_queue, &timer->node); in insert_timer_in_queue() 93 uint cpu = arch_curr_cpu_num(); in timer_set() local 94 insert_timer_in_queue(cpu, timer); in timer_set() 157 uint cpu = arch_curr_cpu_num(); in timer_cancel() local 205 uint cpu = arch_curr_cpu_num(); in timer_tick() local 207 LTRACEF("cpu %u now %u, sp %p\n", cpu, now, __GET_FRAME()); in timer_tick() 213 timer = list_peek_head_type(&timers[cpu].timer_queue, timer_t, node); in timer_tick() 251 insert_timer_in_queue(cpu, timer); in timer_tick() [all …]
|
A D | thread.c | 62 #define idle_thread(cpu) (&_idle_threads[cpu]) argument 455 return idle_thread(cpu); in get_top_thread() 473 uint cpu = arch_curr_cpu_num(); in thread_resched() local 503 mp_set_cpu_idle(cpu); in thread_resched() 505 mp_set_cpu_busy(cpu); in thread_resched() 509 mp_set_cpu_realtime(cpu); in thread_resched() 520 thread_stats[cpu].idle_time += now - thread_stats[cpu].last_idle_timestamp; in thread_resched() 887 thread_set_pinned_cpu(t, cpu); in thread_secondary_cpu_init_early() 893 thread_set_curr_cpu(t, cpu); in thread_secondary_cpu_init_early() 894 thread_set_pinned_cpu(t, cpu); in thread_secondary_cpu_init_early() [all …]
|
A D | mp.c | 52 uint cpu = arch_curr_cpu_num(); in mp_mbx_reschedule_irq() local 54 LTRACEF("cpu %u\n", cpu); in mp_mbx_reschedule_irq() 58 return (mp.active_cpus & (1U << cpu)) ? INT_RESCHEDULE : INT_NO_RESCHEDULE; in mp_mbx_reschedule_irq()
|
/lk-master/target/sifive-unleashed/dt/ |
A D | fu540-c000.dtsi | 25 cpu0: cpu@0 { 27 device_type = "cpu"; 37 compatible = "riscv,cpu-intc"; 41 cpu1: cpu@1 { 48 device_type = "cpu"; 65 cpu2: cpu@2 { 73 device_type = "cpu"; 90 cpu3: cpu@3 { 98 device_type = "cpu"; 115 cpu4: cpu@4 { [all …]
|
/lk-master/top/ |
A D | main.c | 142 uint cpu = arch_curr_cpu_num(); in lk_secondary_cpu_entry() local 144 if (cpu > secondary_bootstrap_thread_count) { in lk_secondary_cpu_entry() 146 cpu, SMP_MAX_CPUS, secondary_bootstrap_thread_count); in lk_secondary_cpu_entry() 151 thread_resume(secondary_bootstrap_threads[cpu - 1]); in lk_secondary_cpu_entry() 153 dprintf(SPEW, "entering scheduler on cpu %d\n", cpu); in lk_secondary_cpu_entry()
|
/lk-master/arch/riscv/include/arch/ |
A D | riscv.h | 173 struct riscv_percpu *cpu; in riscv_get_percpu() local 174 __asm__ volatile("mv %0, tp" : "=&r"(cpu)); in riscv_get_percpu() 175 return cpu; in riscv_get_percpu() 178 static inline void riscv_set_percpu(struct riscv_percpu *cpu) { in riscv_set_percpu() argument 179 __asm__ volatile("mv tp, %0" :: "r"(cpu)); in riscv_set_percpu()
|
/lk-master/lib/fdtwalk/ |
A D | fdtwalk.c | 140 if (cb->cpu) { in fdt_walk() 142 cb->cpu(id, cb->cpucookie); in fdt_walk() 179 if (cb->cpu && ecam_size > 0) { in fdt_walk()
|
/lk-master/scripts/ |
A D | do-or1ksim | 9 qemu-system-or1k -nographic -M or1k-sim -cpu any \
|
A D | do-qemumips | 9 qemu-system-mips -machine mips -cpu M14K -kernel build-qemu-mips-test/lk.elf -nographic $@
|
A D | do-qemum68k | 11 qemu-system-m68k -machine virt -cpu m68040 -kernel build-${PROJECT}/lk.elf -nographic $@
|
A D | config_scorpion.cmm | 9 sys.cpu scorpion
|
A D | config_a11.cmm | 10 sys.cpu arm1136j
|
/lk-master/external/platform/pico/rp2_common/pico_printf/ |
A D | printf_none.S | 11 .cpu cortex-m0plus
|
/lk-master/lib/fdtwalk/include/lib/ |
A D | fdtwalk.h | 20 void (*cpu)(uint64_t id, void *cookie); member
|
/lk-master/target/armemu/ |
A D | armemu.conf | 1 [cpu]
|
/lk-master/external/platform/cc13xx/cc13xxware/ |
A D | rules.mk | 7 $(LOCAL_DIR)/driverlib/cpu.c \
|
/lk-master/arch/arm/arm/ |
A D | arch.c | 151 uint cpu = arch_curr_cpu_num(); in arm_secondary_entry() local 152 if (cpu != asm_cpu_num) in arm_secondary_entry() 171 LTRACEF("cpu num %d\n", cpu); in arm_secondary_entry()
|
/lk-master/arch/arm/include/arch/ |
A D | defines.h | 39 #error unknown cpu
|
/lk-master/external/platform/pico/rp2_common/boot_stage2/ |
A D | boot2_usb_blinky.S | 22 .cpu cortex-m0
|
/lk-master/external/platform/pico/rp2_common/hardware_irq/ |
A D | irq_handler_chain.S | 12 .cpu cortex-m0plus
|