/haiku-fatelf/src/system/kernel/arch/x86/timers/ |
H A D | apic_timer.h | 10 status_t apic_timer_per_cpu_init(struct kernel_args *args, int32 cpu);
|
/haiku-fatelf/src/system/kernel/ |
H A D | cpu.cpp | 9 /* This file contains the cpu functions (init, etc). */ 12 #include <cpu.h> 13 #include <arch/cpu.h> 22 /* global per-cpu structure */ 59 // set the cpu number in the local cpu structure so that 69 cpu_get_active_time(int32 cpu) argument 71 if (cpu < 0 || cpu > smp_get_num_cpus()) 79 return gCPU[cpu] 101 _user_cpu_enabled(int32 cpu) argument 111 _user_set_cpu_enabled(int32 cpu, bool enabled) argument [all...] |
/haiku-fatelf/src/system/kernel/arch/x86/ |
H A D | arch_cpu.cpp | 11 #include <cpu.h> 39 /* cpu vendor info */ 143 for (int32 cpu = 1; cpu < smp_get_num_cpus(); cpu++) { 144 _user_set_cpu_enabled(cpu, false); 185 set_mtrr(void* _parameter, int cpu) argument 191 smp_cpu_rendezvous(&sCpuRendezvous, cpu); 197 if (cpu == 0) 208 smp_cpu_rendezvous(&sCpuRendezvous2, cpu); 214 set_mtrrs(void* _parameter, int cpu) argument 242 init_mtrrs(void* _unused, int cpu) argument 350 dump_feature_string(int currentCPU, cpu_ent* cpu) argument 512 cpu_ent* cpu = get_cpu_struct(); local 625 cpu_ent* cpu = get_cpu_struct(); local 640 x86_get_double_fault_stack(int32 cpu, size_t* _size) argument 662 arch_cpu_preboot_init_percpu(kernel_args* args, int cpu) argument 710 cpu_ent* cpu = get_cpu_struct(); local 725 arch_cpu_init_percpu(kernel_args* args, int cpu) argument [all...] |
H A D | arch_system_info.cpp | 15 #include <cpu.h> 89 cpu_ent *cpu = get_cpu_struct(); local 91 switch (cpu->arch.vendor) { 125 || (base == B_CPU_AMD_x86 && cpu->arch.family == 0xF)) { 126 model = (cpu->arch.extended_family << 20) 127 + (cpu->arch.extended_model << 16) 128 + (cpu->arch.family << 4) + cpu->arch.model; 130 model = (cpu->arch.family << 4) 131 + cpu [all...] |
/haiku-fatelf/src/tests/add-ons/kernel/kernelland_emu/ |
H A D | smp.cpp | 10 #include <cpu.h>
|
/haiku-fatelf/src/add-ons/kernel/interrupt_controllers/openpic/ |
H A D | openpic.h | 89 /* interrupt destination cpu */ 99 #define OPENPIC_IPI(cpu, ipi) (0x20040 + (cpu) * 0x1000 + (ipi)) 102 #define OPENPIC_CPU_PRIORITY(cpu) (0x20080 + (cpu) * 0x1000) 106 #define OPENPIC_IACK(cpu) (0x200a0 + (cpu) * 0x1000) 109 #define OPENPIC_EOI(cpu) (0x200b0 + (cpu) * 0x1000)
|
/haiku-fatelf/src/system/boot/platform/amiga_m68k/ |
H A D | cpu.cpp | 10 #include "cpu.h" 18 #include <arch/cpu.h> 40 int cpu = 0; local 55 cpu = 68030; 57 cpu = fpu = 68040; 61 //panic("cpu %d fpu %d flags 0x%04x", cpu, fpu, flags); 62 cpu = fpu = 68040; //XXX 63 if (!cpu || !fpu) 66 gKernelArgs.arch_args.cpu_type = cpu; [all...] |
/haiku-fatelf/src/system/kernel/scheduler/ |
H A D | scheduler_common.h | 35 cpu_ent* cpu = fromThread->cpu; local 36 toThread->previous_cpu = toThread->cpu = cpu; 37 fromThread->cpu = NULL; 38 cpu->running_thread = toThread; 39 cpu->previous_thread = fromThread; 51 user_timer_continue_cpu_timers(fromThread, cpu->previous_thread);
|
H A D | scheduler_simple_smp.cpp | 17 #include <cpu.h> 102 int32 cpu = sNextCPUForSelection; local 103 for (int32 i = 0; i < sCPUCount; i++, cpu++) { 104 if (cpu >= sCPUCount) 105 cpu = 0; 107 if (!gCPU[cpu].disabled) { 108 int32 cpuPriority = gCPU[cpu].running_thread->priority; 110 targetCPU = cpu; 252 thread_get_current_thread()->cpu->invoke_scheduler = true; 253 thread_get_current_thread()->cpu [all...] |
H A D | scheduler_simple.cpp | 17 #include <cpu.h> 187 thread_get_current_thread()->cpu->invoke_scheduler = true; 188 thread_get_current_thread()->cpu->invoke_scheduler_if_idle = false; 189 thread_get_current_thread()->cpu->preempted = 1; 205 if (oldThread->cpu->invoke_scheduler) { 206 oldThread->cpu->invoke_scheduler = false; 207 if (oldThread->cpu->invoke_scheduler_if_idle 209 oldThread->cpu->invoke_scheduler_if_idle = false; 309 oldThread->cpu->active_time += 310 (oldThread->kernel_time - oldThread->cpu [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/power/x86_cpuidle/ |
H A D | intel_cpuidle.cpp | 10 #include <cpu.h> 42 cpu_ent *cpu = get_cpu_struct(); local 43 if (cpu->invoke_scheduler) 47 x86_monitor((void *)&cpu->invoke_scheduler, 0, 0); 48 if (!cpu->invoke_scheduler) 84 cpu_ent *cpu = get_cpu_struct(); local 85 if (cpu->arch.vendor != VENDOR_INTEL || cpu->arch.family != 6) 89 uint32 model = (cpu->arch.extended_model << 4) + cpu [all...] |
/haiku-fatelf/headers/private/kernel/arch/ppc/ |
H A D | arch_int.h | 35 struct ppc_cpu_exception_context *ppc_get_cpu_exception_context(int cpu);
|
H A D | arch_kernel.h | 8 #include <arch/cpu.h>
|
H A D | arch_thread.h | 12 #include <arch/cpu.h>
|
/haiku-fatelf/src/system/kernel/arch/mips/ |
H A D | arch_cpu.cpp | 6 #include <kernel/arch/cpu.h>
|
/haiku-fatelf/src/system/kernel/arch/ppc/ |
H A D | arch_commpage.cpp | 12 #include <cpu.h>
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sched_yield/ |
H A D | 1-1.c | 82 int set_process_affinity(int cpu) argument 88 if (cpu >= 0 && cpu <= CPU_SETSIZE) { 89 CPU_SET(cpu, &cpu_mask); 91 fprintf (stderr, "Wrong cpu id: %d\n", cpu); 106 int set_thread_affinity(int cpu) argument 112 if (cpu >= 0 && cpu <= CPU_SETSIZE) { 113 CPU_SET(cpu, 170 buzy_process(int cpu) argument [all...] |
/haiku-fatelf/src/system/kernel/arch/m68k/ |
H A D | arch_user_debugger.cpp | 58 frame->cpu.sr &= ~(M68K_SR_T_MASK); 59 frame->cpu.sr |= (1 << M68K_SR_T1); 61 frame->cpu.sr &= ~(M68K_SR_T_MASK);
|
/haiku-fatelf/headers/private/kernel/arch/arm/ |
H A D | arch_kernel.h | 8 #include <arch/cpu.h>
|
H A D | arch_thread.h | 13 #include <arch/cpu.h>
|
/haiku-fatelf/headers/private/kernel/arch/m68k/ |
H A D | arch_kernel.h | 8 #include <arch/cpu.h>
|
/haiku-fatelf/headers/private/kernel/arch/mipsel/ |
H A D | arch_int.h | 37 struct mipsel_cpu_exception_context* mipsel_get_cpu_exception_context(int cpu);
|
/haiku-fatelf/headers/private/kernel/arch/ |
H A D | smp.h | 22 status_t arch_smp_per_cpu_init(struct kernel_args *args, int32 cpu);
|
/haiku-fatelf/headers/private/kernel/arch/x86/ |
H A D | arch_system_info.h | 19 status_t _user_get_cpuid(cpuid_info* info, uint32 eax, uint32 cpu);
|
/haiku-fatelf/headers/private/kernel/ |
H A D | cpu.h | 16 #include <arch/cpu.h> 19 // define PAUSE, if not done in arch/cpu.h 77 bigtime_t cpu_get_active_time(int32 cpu); 83 bool _user_cpu_enabled(int32 cpu); 84 status_t _user_set_cpu_enabled(int32 cpu, bool enabled);
|