boot, kernel: Replace MAX_BOOT_CPUS with SMP_MAX_CPUS

This commit is contained in:
Pawel Dziepak
2013-12-06 19:43:08 +01:00
parent f0fe981769
commit 3e0e3be760
7 changed files with 14 additions and 17 deletions
@@ -40,8 +40,8 @@ typedef struct {
uint32 apic_phys;
FixedWidthPointer<void> apic;
uint32 ioapic_phys;
uint32 cpu_apic_id[MAX_BOOT_CPUS];
uint32 cpu_apic_version[MAX_BOOT_CPUS];
uint32 cpu_apic_id[SMP_MAX_CPUS];
uint32 cpu_apic_version[SMP_MAX_CPUS];
// hpet stuff
uint32 hpet_phys;
FixedWidthPointer<void> hpet;
+1 -1
View File
@@ -59,7 +59,7 @@ typedef struct kernel_args {
uint64 ignored_physical_memory;
uint32 num_cpus;
addr_range cpu_kstack[MAX_BOOT_CPUS];
addr_range cpu_kstack[SMP_MAX_CPUS];
// boot volume KMessage data
FixedWidthPointer<void> boot_volume;
@@ -15,8 +15,8 @@
#include <util/FixedWidthPointer.h>
// must match SMP_MAX_CPUS in arch_smp.h
#define MAX_BOOT_CPUS 8
#define SMP_MAX_CPUS 8
#define MAX_PHYSICAL_MEMORY_RANGE 32
#define MAX_PHYSICAL_ALLOCATED_RANGE 32
#define MAX_VIRTUAL_ALLOCATED_RANGE 32
-3
View File
@@ -17,9 +17,6 @@
#include <string.h>
#define SMP_MAX_CPUS MAX_BOOT_CPUS
struct kernel_args;