FreeBSD Bugzilla – Attachment 183451 Details for
Bug 219882
[SMP][patch] 11.1-PRERELEASE panics at CPU detection on a single CPU i386 machine
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
noassign_on_up.patch
file_219882.txt (text/plain), 734 bytes, created by
John Baldwin
on 2017-06-13 16:13:24 UTC
(
hide
)
Description:
noassign_on_up.patch
Filename:
MIME Type:
Creator:
John Baldwin
Created:
2017-06-13 16:13:24 UTC
Size:
734 bytes
patch
obsolete
>Index: intr_machdep.c >=================================================================== >--- intr_machdep.c (revision 319717) >+++ intr_machdep.c (working copy) >@@ -312,7 +312,9 @@ intr_assign_cpu(void *arg, int cpu) > > #ifdef EARLY_AP_STARTUP > MPASS(mp_ncpus == 1 || smp_started); >- if (cpu != NOCPU) { >+ >+ /* Nothing to do if there is only a single CPU. */ >+ if (mp_ncpus > 1 && cpu != NOCPU) { > #else > /* > * Don't do anything during early boot. We will pick up the >@@ -500,6 +502,8 @@ intr_next_cpu(void) > > #ifdef EARLY_AP_STARTUP > MPASS(mp_ncpus == 1 || smp_started); >+ if (mp_ncpus == 1) >+ return (PCPU_GET(apic_id)); > #else > /* Leave all interrupts on the BSP during boot. */ > if (!assign_cpu)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 219882
:
183349
| 183451