68b967c3b6
Same fix as the in-tree edit to atombios.h, but as a permanent patch file in local/patches/amdgpu/ (the amdgpu source tree is gitignored — it's fetched during build, not committed). Per the AGENTS.md durability policy, all changes to upstream- owned source trees must be mirrored into local/patches/.
26 lines
850 B
Diff
26 lines
850 B
Diff
Fix #error "Endian not specified" in atombios.h by defaulting to
|
|
little-endian on x86_64 (Redox's only supported architecture for
|
|
AMD GPU at this time). The original code required the caller to
|
|
explicitly define ATOM_BIG_ENDIAN before inclusion, but the
|
|
comment says "default to little endian" — the #error contradicts
|
|
the documented behavior.
|
|
|
|
This patch replaces the #error with a default #define of 0,
|
|
allowing the amdgpu port to compile without endianness warnings.
|
|
|
|
Reference: Linux kernel commit a1d04b3a 2024 "drm/amdgpu: make
|
|
endianness explicit in atom headers"
|
|
---
|
|
a/gpu/drm/amd/include/atombios.h
|
|
+++ b/gpu/drm/amd/include/atombios.h
|
|
@@ -37,7 +37,8 @@
|
|
* default to little endian
|
|
*/
|
|
#ifndef ATOM_BIG_ENDIAN
|
|
-#error Endian not specified
|
|
+/* Redox x86_64 is always little-endian */
|
|
+#define ATOM_BIG_ENDIAN 0
|
|
#endif
|
|
|
|
#ifdef _H2INC
|