From 858a20cab88e79a8e9ea123958f8559830112206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 29 Sep 2009 13:07:10 +0000 Subject: [PATCH] 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 --- .../kernel/boot/platform/bios_ia32/platform_kernel_args.h | 2 +- src/system/libroot/posix/malloc/heap.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/headers/private/kernel/boot/platform/bios_ia32/platform_kernel_args.h b/headers/private/kernel/boot/platform/bios_ia32/platform_kernel_args.h index 3073dfb2d7..946bddd4c7 100644 --- a/headers/private/kernel/boot/platform/bios_ia32/platform_kernel_args.h +++ b/headers/private/kernel/boot/platform/bios_ia32/platform_kernel_args.h @@ -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 diff --git a/src/system/libroot/posix/malloc/heap.h b/src/system/libroot/posix/malloc/heap.h index 730c9003d7..9d0c51a6ea 100644 --- a/src/system/libroot/posix/malloc/heap.h +++ b/src/system/libroot/posix/malloc/heap.h @@ -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 };