boot, kernel: Replace MAX_BOOT_CPUS with SMP_MAX_CPUS
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -17,9 +17,6 @@
|
||||
#include <string.h>
|
||||
|
||||
|
||||
#define SMP_MAX_CPUS MAX_BOOT_CPUS
|
||||
|
||||
|
||||
struct kernel_args;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user