Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149177574
D25179.id76087.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
782 B
Referenced Files
None
Subscribers
None
D25179.id76087.diff
View Options
Index: head/sys/arm64/acpica/acpi_iort.c
===================================================================
--- head/sys/arm64/acpica/acpi_iort.c
+++ head/sys/arm64/acpica/acpi_iort.c
@@ -234,7 +234,11 @@
node->entries.mappings = mapping;
for (i = 0; i < node->nentries; i++, mapping++, map_entry++) {
mapping->base = map_entry->InputBase;
- mapping->end = map_entry->InputBase + map_entry->IdCount - 1;
+ /*
+ * IdCount means "The number of IDs in the range minus one" (ARM DEN 0049D).
+ * We use <= for comparison against this field, so don't add one here.
+ */
+ mapping->end = map_entry->InputBase + map_entry->IdCount;
mapping->outbase = map_entry->OutputBase;
mapping->out_node_offset = map_entry->OutputReference;
mapping->flags = map_entry->Flags;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 23, 7:12 PM (12 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30201151
Default Alt Text
D25179.id76087.diff (782 B)
Attached To
Mode
D25179: acpi_iort: fix mapping end calculation
Attached
Detach File
Event Timeline
Log In to Comment