Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102049250
D41800.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
812 B
Referenced Files
None
Subscribers
None
D41800.diff
View Options
diff --git a/sys/arm/arm/gic_acpi.c b/sys/arm/arm/gic_acpi.c
--- a/sys/arm/arm/gic_acpi.c
+++ b/sys/arm/arm/gic_acpi.c
@@ -84,7 +84,7 @@
struct madt_table_data {
device_t parent;
ACPI_MADT_GENERIC_DISTRIBUTOR *dist;
- ACPI_MADT_GENERIC_INTERRUPT *intr[MAXCPU];
+ ACPI_MADT_GENERIC_INTERRUPT *intr[GIC_MAXCPU];
};
static void
@@ -107,7 +107,7 @@
break;
case ACPI_MADT_TYPE_GENERIC_INTERRUPT:
intr = (ACPI_MADT_GENERIC_INTERRUPT *)entry;
- if (intr->CpuInterfaceNumber < MAXCPU)
+ if (intr->CpuInterfaceNumber < GIC_MAXCPU)
madt_data->intr[intr->CpuInterfaceNumber] = intr;
break;
}
@@ -151,7 +151,7 @@
}
intr = NULL;
- for (i = 0; i < MAXCPU; i++) {
+ for (i = 0; i < GIC_MAXCPU; i++) {
if (madt_data.intr[i] != NULL) {
if (intr == NULL) {
intr = madt_data.intr[i];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 11:40 PM (20 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14523289
Default Alt Text
D41800.diff (812 B)
Attached To
Mode
D41800: gic_acpi: Limit the number of CPUs to GIC_MAXCPU
Attached
Detach File
Event Timeline
Log In to Comment