Displaying 1 result from an estimated 1 matches for "18eb061".
Did you mean:
18061
2016 Jul 27
0
[PATCH] nouveau: bios pointers may be unaligned, use proper accessors
...?id=96836
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
drm/nouveau/nouveau_bios.h | 6 ++----
drm/nouveau/nvkm/subdev/mxm/mxms.c | 4 ++--
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/drm/nouveau/nouveau_bios.h b/drm/nouveau/nouveau_bios.h
index 0067586..18eb061 100644
--- a/drm/nouveau/nouveau_bios.h
+++ b/drm/nouveau/nouveau_bios.h
@@ -31,10 +31,8 @@
#define DCB_LOC_ON_CHIP 0
-#define ROM16(x) le16_to_cpu(*(u16 *)&(x))
-#define ROM32(x) le32_to_cpu(*(u32 *)&(x))
-#define ROM48(x) ({ u8 *p = &(x); (u64)ROM16(p[4]) << 32 | ROM32(p[0]...