Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108589615
D38235.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
424 B
Referenced Files
None
Subscribers
None
D38235.diff
View Options
diff --git a/sys/x86/x86/mp_x86.c b/sys/x86/x86/mp_x86.c
--- a/sys/x86/x86/mp_x86.c
+++ b/sys/x86/x86/mp_x86.c
@@ -980,10 +980,9 @@
cpu_add(u_int apic_id, char boot_cpu)
{
- if (apic_id > max_apic_id) {
+ if (apic_id > max_apic_id)
panic("SMP: APIC ID %d too high", apic_id);
- return;
- }
+
KASSERT(cpu_info[apic_id].cpu_present == 0, ("CPU %u added twice",
apic_id));
cpu_info[apic_id].cpu_present = 1;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 5:14 PM (6 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16201508
Default Alt Text
D38235.diff (424 B)
Attached To
Mode
D38235: smp: Drop confusing braces and return statement as panic() is never returns.
Attached
Detach File
Event Timeline
Log In to Comment