Patch by Vincent Duvert:

Remove the 4 cores limit at boot, and fix the allocator to handle 8 cores.
There are still performance problems, but this allows booting with 8 cores.
WARNING: since this changes x86 platform kernel args, you really don't want to update haiku_loader and kernel_x86 separately!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33349 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2009-09-29 13:07:10 +00:00
parent 90a4f23370
commit 858a20cab8
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
// must match SMP_MAX_CPUS in arch_smp.h
#define MAX_BOOT_CPUS 4
#define MAX_BOOT_CPUS 8
#define MAX_PHYSICAL_MEMORY_RANGE 6
#define MAX_PHYSICAL_ALLOCATED_RANGE 6
#define MAX_VIRTUAL_ALLOCATED_RANGE 6

View File

@ -61,7 +61,7 @@ class hoardHeap {
// number of threads -- Hoard imposes no such limit.) This must be
// a power of two! NB: This number is twice the maximum number of
// PROCESSORS supported by Hoard.
enum { MAX_HEAPS = B_MAX_CPU_COUNT };
enum { MAX_HEAPS = B_MAX_CPU_COUNT * 2 };
// ANDing with this rounds to MAX_HEAPS.
enum { MAX_HEAPS_MASK = MAX_HEAPS - 1 };