Searched refs:cpu (Results 1 - 25 of 255) sorted by relevance

1234567891011

/haiku/src/system/kernel/arch/x86/32/
H A Ddescriptors.cpp20 #include <cpu.h>
70 set_interrupt_gate(int32 cpu, int n, void (*addr)()) argument
72 set_gate(&sIDTs[cpu][n], (addr_t)addr, 14, DPL_KERNEL);
82 set_trap_gate(int32 cpu, int n, void (*addr)()) argument
84 set_gate(&sIDTs[cpu][n], (unsigned int)addr, 15, DPL_USER);
89 \a cpu to a task-gate descripter referring to the TSS segment identified
95 set_task_gate(int32 cpu, int32 n, int32 segment) argument
97 sIDTs[cpu][n].a = (segment << 16);
98 sIDTs[cpu][n].b = 0x8000 | (0 << 13) | (0x5 << 8); // present, dpl 0, type 5
111 load_gdt(int cpu) argument
126 load_idt(int cpu) argument
146 int cpu = x86_double_fault_get_cpu(); local
186 cpu_ent& cpu = gCPU[x86_double_fault_get_cpu()]; local
240 init_gdt_percpu(kernel_args* args, int cpu) argument
287 init_idt_percpu(kernel_args* args, int cpu) argument
553 x86_descriptors_preboot_init_percpu(kernel_args* args, int cpu) argument
[all...]
H A Derrata.cpp9 #include <cpu.h>
/haiku/src/system/kernel/arch/x86/64/
H A Derrata.cpp9 #include <cpu.h>
14 patch_errata_percpu_amd(int currentCPU, const cpu_ent* cpu) argument
21 const uint32 family = cpu->arch.family + cpu->arch.extended_family,
22 model = (cpu->arch.extended_model << 4) | cpu->arch.model;
101 const cpu_ent* cpu = get_cpu_struct(); local
102 if (cpu->arch.vendor == VENDOR_AMD)
103 return patch_errata_percpu_amd(currentCPU, cpu);
H A Ddescriptors.cpp11 #include <cpu.h>
97 unsigned SetTSS(unsigned cpu,
99 unsigned SetUserTLS(unsigned cpu,
270 GlobalDescriptorTable::SetTSS(unsigned cpu, const TSSDescriptor& tss) argument
272 auto index = kFirstTSS + cpu * 3;
281 GlobalDescriptorTable::SetUserTLS(unsigned cpu, uintptr_t base, size_t limit) argument
283 auto index = kFirstTSS + cpu * 3 + 2;
355 cpu_ent* cpu = &gCPU[smp_get_current_cpu()]; local
356 if (cpu->fault_handler != 0) {
358 frame->ip = cpu
381 x86_descriptors_preboot_init_percpu(kernel_args* args, int cpu) argument
446 x86_64_set_user_tls_segment_base(int cpu, addr_t base) argument
[all...]
/haiku/src/system/kernel/arch/x86/timers/
H A Dapic_timer.h10 status_t apic_timer_per_cpu_init(struct kernel_args *args, int32 cpu);
/haiku/src/system/kernel/arch/x86/
H A Darch_cpu.cpp13 #include <cpu.h>
46 /* cpu vendor info */
168 set_mtrr(void* _parameter, int cpu) argument
180 if (cpu == 0)
197 set_mtrrs(void* _parameter, int cpu) argument
208 if (cpu == 0)
225 init_mtrrs(void* _unused, int cpu) argument
234 if (cpu == 0)
334 dump_feature_string(int currentCPU, cpu_ent* cpu) argument
339 if (cpu
[all...]
H A Darch_system_info.cpp15 #include <cpu.h>
66 cpu_ent* cpu = get_cpu_struct(); local
68 switch (cpu->arch.vendor) {
95 sCPUModel = (cpu->arch.extended_family << 20)
96 | (cpu->arch.extended_model << 16) | (cpu->arch.type << 12)
97 | (cpu->arch.family << 8) | (cpu->arch.model << 4) | cpu->arch.stepping;
105 arch_fill_topology_node(cpu_topology_node_info* node, int32 cpu) argument
[all...]
H A Darch_smp.cpp13 #include <cpu.h>
19 #include <arch/cpu.h>
52 // genuine inter-cpu interrupt
53 int cpu = smp_get_current_cpu(); local
54 TRACE(("inter-cpu interrupt on cpu %d\n", cpu));
55 return smp_intercpu_int_handler(cpu);
63 TRACE(("spurious interrupt on cpu %" B_PRId32 "\n", smp_get_current_cpu()));
76 TRACE(("smp error interrupt on cpu
82 x86_get_cpu_apic_id(int32 cpu) argument
121 arch_smp_per_cpu_init(kernel_args *args, int32 cpu) argument
[all...]
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A Dsmp.cpp10 #include <cpu.h>
/haiku/src/add-ons/kernel/interrupt_controllers/openpic/
H A Dopenpic.h89 /* 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/src/system/boot/platform/amiga_m68k/
H A Dcpu.cpp10 #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/headers/private/kernel/arch/ppc/
H A Darch_int.h35 struct ppc_cpu_exception_context *ppc_get_cpu_exception_context(int cpu);
H A Darch_thread.h12 #include <arch/cpu.h>
/haiku/src/system/kernel/arch/mips/
H A Darch_cpu.cpp6 #include <kernel/arch/cpu.h>
/haiku/src/system/kernel/arch/ppc/
H A Darch_commpage.cpp12 #include <cpu.h>
/haiku/headers/private/kernel/arch/
H A Dsystem_info.h21 void arch_fill_topology_node(cpu_topology_node_info* node, int32 cpu);
/haiku/headers/private/kernel/arch/arm64/
H A Darch_thread.h9 #include <arch/cpu.h>
/haiku/src/system/kernel/arch/riscv64/
H A Darch_commpage.cpp12 #include <cpu.h>
/haiku/src/system/kernel/arch/sparc/
H A Darch_commpage.cpp12 #include <cpu.h>
/haiku/headers/private/kernel/
H A Dsmp.h50 inline void SetBit(int32 cpu);
51 inline void ClearBit(int32 cpu);
53 inline void SetBitAtomic(int32 cpu);
54 inline void ClearBitAtomic(int32 cpu);
56 inline bool GetBit(int32 cpu) const;
74 status_t smp_per_cpu_init(struct kernel_args *args, int32 cpu);
76 bool smp_trap_non_boot_cpus(int32 cpu, uint32* rendezVous);
92 int smp_intercpu_int_handler(int32 cpu);
121 CPUSet::SetBit(int32 cpu) argument
123 int32* element = (int32*)&fBitmap[cpu
129 ClearBit(int32 cpu) argument
137 SetBitAtomic(int32 cpu) argument
145 ClearBitAtomic(int32 cpu) argument
[all...]
/haiku/src/system/kernel/
H A Dcpu.cpp10 /* This file contains the cpu functions (init, etc). */
13 #include <cpu.h>
14 #include <arch/cpu.h>
27 /* global per-cpu structure */
144 // set the cpu number in the local cpu structure so that
157 cpu_get_active_time(int32 cpu) argument
159 if (cpu < 0 || cpu > smp_get_num_cpus())
166 count = acquire_read_seqlock(&gCPU[cpu]
356 _user_cpu_enabled(int32 cpu) argument
366 _user_set_cpu_enabled(int32 cpu, bool enabled) argument
[all...]
/haiku/src/system/kernel/arch/m68k/
H A Darch_int.cpp99 arch_int_assign_to_cpu(int32 irq, int32 cpu) argument
121 frame->cpu.pc, frame->cpu.sr);
135 switch (iframe->cpu.type) {
140 return iframe->cpu.type_2.instruction_address;
142 return iframe->cpu.type_3.effective_address;
144 return iframe->cpu.type_7.effective_address;
146 return iframe->cpu.type_9.instruction_address;
148 return iframe->cpu.type_a.fault_address;
150 return iframe->cpu
[all...]
/haiku/headers/private/kernel/arch/arm/
H A Darch_thread.h13 #include <arch/cpu.h>
/haiku/headers/private/kernel/arch/mipsel/
H A Darch_int.h37 struct mipsel_cpu_exception_context* mipsel_get_cpu_exception_context(int cpu);
/haiku/src/system/kernel/arch/arm/
H A Darch_commpage.cpp13 #include <cpu.h>

Completed in 172 milliseconds

1234567891011