[PATCH libbsd 09/11] ehci_imx.c: Port to RTEMS
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Apr 2 15:18:49 UTC 2020
On 02/04/2020 17:15, Christian Mauderer wrote:
> On 02/04/2020 17:00, Sebastian Huber wrote:
>> On 02/04/2020 16:42, Christian Mauderer wrote:
>>
>>> 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
>> Could you please move changes in general file imported from FreeBSD to
>> separate commits.
> OK. I'll split them.
>
>> 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:
> Works fine too. The patch seems generic. Do you plan to add it soon as
> an extra patch?
I will try to send a patch tomorrow.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200402/0275e7dd/attachment.html>
More information about the devel
mailing list