Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178167479
D41472.1796169090.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
891 B
Referenced Files
None
Subscribers
None
D41472.1796169090.diff
View Options
diff --git a/sys/arm64/arm64/mp_machdep.c b/sys/arm64/arm64/mp_machdep.c
--- a/sys/arm64/arm64/mp_machdep.c
+++ b/sys/arm64/arm64/mp_machdep.c
@@ -147,7 +147,7 @@
static volatile int aps_ready;
/* Temporary variables for init_secondary() */
-static void *dpcpu[MAXCPU - 1];
+static void **dpcpu;
static bool
is_boot_cpu(uint64_t target_cpu)
@@ -320,6 +320,7 @@
kmem_free(bootstacks[cpu - 1], MP_BOOTSTACK_SIZE);
}
kmem_free(bootstacks, mp_maxid * sizeof(*bootstacks));
+ kmem_free(dpcpu, mp_maxid * sizeof(*dpcpu));
}
SYSINIT(smp_after_idle_runnable, SI_SUB_SMP, SI_ORDER_ANY,
smp_after_idle_runnable, NULL);
@@ -781,6 +782,7 @@
* we need an array suze of mp_maxid.
*/
bootstacks = kmem_malloc(mp_maxid * sizeof(*bootstacks), M_WAITOK);
+ dpcpu = kmem_malloc(mp_maxid * sizeof(*dpcpu), M_WAITOK);
/* CPU 0 is always boot CPU. */
CPU_SET(0, &all_cpus);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 1, 11:51 PM (19 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42134515
Default Alt Text
D41472.1796169090.diff (891 B)
Attached To
Mode
D41472: arm64: Dynamically allocate the dpcpu array
Attached
Detach File
Event Timeline