Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108950263
D31710.id94387.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
778 B
Referenced Files
None
Subscribers
None
D31710.id94387.diff
View Options
diff --git a/sys/contrib/dev/acpica/include/actypes.h b/sys/contrib/dev/acpica/include/actypes.h
--- a/sys/contrib/dev/acpica/include/actypes.h
+++ b/sys/contrib/dev/acpica/include/actypes.h
@@ -658,8 +658,13 @@
/* Pointer/Integer type conversions */
#define ACPI_TO_POINTER(i) ACPI_CAST_PTR (void, (ACPI_SIZE) (i))
+#ifdef __FreeBSD__
+#define ACPI_TO_INTEGER(p) ((ACPI_SIZE) (p))
+#define ACPI_OFFSET(d, f) ((ACPI_SIZE) __offsetof(d, f))
+#else
#define ACPI_TO_INTEGER(p) ACPI_PTR_DIFF (p, (void *) 0)
#define ACPI_OFFSET(d, f) ACPI_PTR_DIFF (&(((d *) 0)->f), (void *) 0)
+#endif
#define ACPI_PHYSADDR_TO_PTR(i) ACPI_TO_POINTER(i)
#define ACPI_PTR_TO_PHYSADDR(i) ACPI_TO_INTEGER(i)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 30, 10:09 PM (2 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16345127
Default Alt Text
D31710.id94387.diff (778 B)
Attached To
Mode
D31710: Fix acpica macros that subtract null pointers
Attached
Detach File
Event Timeline
Log In to Comment