Skip to contentSkip to conversation

SPARC: added unaligned definitions, patch supplied by Magnus Sjalander.

PATCH New Daniel Hellstrom 2 participants 3 messages May 18, 2010 – May 26, 2010 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/17 SPARC: added unaligned definitions, patch supplied by Magnus Sjalander.

---
 arch/sparc/include/asm/byteorder.h |    1 +
 arch/sparc/include/asm/unaligned.h |   10 ++++++++++
 2 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 arch/sparc/include/asm/unaligned.h
arch/sparc/include/asm/byteorder.h +1 -0
index b9fc656..e3b3dec 100644
@@ -32,6 +32,7 @@
 
 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
 #define __BYTEORDER_HAS_U64__
+#define __SWAB_64_THRU_32__
 #endif
 #include <linux/byteorder/big_endian.h>
 #endif				/* _SPARC_BYTEORDER_H */
arch/sparc/include/asm/unaligned.h new file +10 -0
new file mode 100644
index 0000000..0e646f7
@@ -0,0 +1,10 @@
+#ifndef _ASM_SPARC_UNALIGNED_H
+#define _ASM_SPARC_UNALIGNED_H
+
+/*
+ * The SPARC can not do unaligned accesses, it must be split into multiple
+ * byte accesses. The SPARC is in big endian mode.
+ */
+#include <asm-generic/unaligned.h>
+
+#endif	/* _ASM_SPARC_UNALIGNED_H */
Signature · 1 line
1.5.4
#1 lore raw

PATCH 1/17 SPARC: added unaligned definitions, patch supplied by Magnus Sjalander.

the subject line is incorrect. you dont credit people via summary/changelogs, you do it via the tags. so if Magnus wrote this patch, he should be credited with authorship (so use --author when committing). if he gave tips or something, then perhaps use Reported-by.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100519/89a69174/attachment.pgp

#2 lore raw

PATCH 1/17 SPARC: added unaligned definitions, patch supplied by Magnus Sjalander.

Hi,

Thank you for the input, I will resend the patch with Magnus as author.

Daniel

Quoted 7 lines · Mike Frysinger

the subject line is incorrect. you dont credit people via summary/changelogs, you do it via the tags. so if Magnus wrote this patch, he should be credited with authorship (so use --author when committing). if he gave tips or something, then perhaps use Reported-by.
-mike