diff options
author | Mark Johnston <markj@FreeBSD.org> | 2023-04-25 16:09:24 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2023-05-25 22:09:55 +0000 |
commit | 9fb6718d1b180c341373b25c03dbfc221ddee311 (patch) | |
tree | a6f5de08ea1f4160b18c5fcaafe4c1fcdbcf572a /sys/x86 | |
parent | fed03614bd2d070ffb351af8042fda9805341c29 (diff) | |
download | src-9fb6718d1b180c341373b25c03dbfc221ddee311.tar.gz src-9fb6718d1b180c341373b25c03dbfc221ddee311.zip |
smp: Dynamically allocate the stoppcbs array
This avoids bloating the kernel image when MAXCPU is large.
A follow-up patch for kgdb and other kernel debuggers is needed since
the stoppcbs symbol is now a pointer. Bump __FreeBSD_version so that
debuggers can use osreldate to figure out how to handle stoppcbs.
PR: 269572
MFC after: never
Reviewed by: mjg, emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39806
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/include/x86_smp.h | 1 | ||||
-rw-r--r-- | sys/x86/x86/mp_x86.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/sys/x86/include/x86_smp.h b/sys/x86/include/x86_smp.h index 9d8e1c4ebaec..356d8b881962 100644 --- a/sys/x86/include/x86_smp.h +++ b/sys/x86/include/x86_smp.h @@ -30,7 +30,6 @@ extern unsigned int boot_address; /* global data in mp_x86.c */ extern int mp_naps; extern int boot_cpu_id; -extern struct pcb stoppcbs[]; extern int cpu_apic_ids[]; extern int bootAP; extern void *dpcpu; diff --git a/sys/x86/x86/mp_x86.c b/sys/x86/x86/mp_x86.c index 34c54b27eeff..581ec0ac518a 100644 --- a/sys/x86/x86/mp_x86.c +++ b/sys/x86/x86/mp_x86.c @@ -99,7 +99,6 @@ int bootAP; void *bootstacks[MAXCPU]; void *dpcpu; -struct pcb stoppcbs[MAXCPU]; struct susppcb **susppcbs; #ifdef COUNT_IPIS |