1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:08:12 +00:00
serenity/Kernel/Arch/x86
Daniel Bertalan fcdd202741 Kernel: Return the actual number of CPU cores that we have
... instead of returning the maximum number of Processor objects that we
can allocate.

Some ports (e.g. gdb) rely on this information to determine the number
of worker threads to spawn. When gdb spawned 64 threads, the kernel
could not cope with generating backtraces for it, which prevented us
from debugging it properly.

This commit also removes the confusingly named
`Processor::processor_count` function so that this mistake can't happen
again.
2021-12-29 03:17:41 -08:00
..
common Kernel: Implement and use the syscall/sysret instruction pair on x86_64 2021-12-28 23:15:38 +01:00
i386 Kernel: Initialize regs.fs in Processor::init_context 2021-11-06 11:54:28 +01:00
x86_64 Kernel: Implement and use the syscall/sysret instruction pair on x86_64 2021-12-28 23:15:38 +01:00
ASM_wrapper.h Kernel: Add an x86 include check+error in x86/ASM_Wrapper.h 2021-12-01 11:22:04 -08:00
CPU.h Kernel: Dispatch handle-able signals instead of crashing if possible 2021-12-01 21:44:11 +02:00
CPUID.h Kernel: Add an x86 include check+error in x86/CPUID.h 2021-12-01 11:22:04 -08:00
DescriptorTable.h Kernel: Reorder the 64-bit GDT a bit 2021-12-28 23:15:38 +01:00
InterruptDisabler.h Kernel: Add an x86 include check+error in x86/InerruptDisabler.h 2021-12-01 11:22:04 -08:00
Interrupts.h Kernel: Add an x86 include check+error in x86/Inerrupts.h 2021-12-01 11:22:04 -08:00
IO.h Kernel: Remove unused String.h includes 2021-12-11 13:15:26 -08:00
ISRStubs.h Kernel: Add an x86 include check+error in x86/ISRStubs.h 2021-12-01 11:22:04 -08:00
MSR.h Kernel: Add an x86 include check+error in x86/MSR.h 2021-12-01 11:22:04 -08:00
PageDirectory.h Kernel: Add an x86 include check+error in x86/PageDirectory.h 2021-12-01 11:22:04 -08:00
PageFault.h Kernel: Add an x86 include check+error in x86/PageFault.h 2021-12-01 11:22:04 -08:00
Processor.h Kernel: Return the actual number of CPU cores that we have 2021-12-29 03:17:41 -08:00
ProcessorInfo.h Kernel: Add an x86 include check+error in x86/ProcessorInfo.h 2021-12-01 11:22:04 -08:00
RegisterState.h Kernel: Implement and use the syscall/sysret instruction pair on x86_64 2021-12-28 23:15:38 +01:00
SafeMem.h Kernel: Implement safe_* memory access functions for x86_64 2021-06-27 15:46:42 +02:00
Spinlock.h Kernel: Add an x86 include check+error in x86/Spinlock.h 2021-12-01 11:22:04 -08:00
TrapFrame.h Kernel: Add an x86 include check+error in x86/TrapFrame.h 2021-12-01 11:22:04 -08:00
TSS.h Kernel: Add an x86 include check+error in x86/TSS.h 2021-12-01 11:22:04 -08:00