<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>On 02/04/2020 17:15, Christian Mauderer wrote:<br>
</p>
<blockquote type="cite"
cite="mid:b3a02688-f673-f638-7982-57cc6c932078@embedded-brains.de">
<pre class="moz-quote-pre" wrap="">On 02/04/2020 17:00, Sebastian Huber wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre class="moz-quote-pre" wrap="">On 02/04/2020 16:42, Christian Mauderer wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre class="moz-quote-pre" wrap="">diff --git a/freebsd/sys/dev/usb/usb_busdma.c
b/freebsd/sys/dev/usb/usb_busdma.c
index 9a70c687..c8000170 100644
--- a/freebsd/sys/dev/usb/usb_busdma.c
+++ b/freebsd/sys/dev/usb/usb_busdma.c
@@ -78,6 +78,52 @@ static void usb_pc_common_mem_cb(void *,
bus_dma_segment_t *, int, int,
uint8_t);
#endif
+#ifdef __rtems__
+#include <bsp.h>
+#if defined(LIBBSP_ARM_IMX_BSP_H)
+#define NEED_MISSALIGNED_COPY
+#endif
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Could you please move changes in general file imported from FreeBSD to
separate commits.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">OK. I'll split them.
</pre>
<blockquote type="cite" style="color: #000000;">
<pre class="moz-quote-pre" wrap="">I don't like this change here at all. I had a similar issue with
misaligned memcpy() to device memory here on the STM32H7 platform. Could
you first try this patch here:
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Works fine too. The patch seems generic. Do you plan to add it soon as
an extra patch?</pre>
</blockquote>
I will try to send a patch tomorrow.<br>
</body>
</html>