On 05.11.21 19:14, C Smith wrote:
> Here's an updated patch addressing mentioned issues.
> I've noticed ipc/internal.h re-defines COMPAT_CASE(__op) as well.
>
> I don't know what gmail is doing to the inline text (this should be
> plain text) so I've also attached a .gz version of the patch.
>
Here's an updated patch addressing mentioned issues.
I've noticed ipc/internal.h re-defines COMPAT_CASE(__op) as well.
I don't know what gmail is doing to the inline text (this should be
plain text) so I've also attached a .gz version of the patch.
Subject: [PATCH] 32-bit userspace app support
On Fri, 2021-11-05 at 09:14 +0100, Jan Kiszka wrote:
> On 05.11.21 08:09, C Smith wrote:
> > Please review and accept this patch, which allows 32 bit apps to send
> > and receive CAN. It is tested successfully with 32bit and 64bit compiles
> > of utils/can/rtcansend.c / and rtcanrecv.c. The compat
On 05.11.21 08:09, C Smith wrote:
> Please review and accept this patch, which allows 32 bit apps to send
> and receive CAN. It is tested successfully with 32bit and 64bit compiles
> of utils/can/rtcansend.c / and rtcanrecv.c. The compat interface is now
> implemented, rtdm_get_iovec() is used and
Please review and accept this patch, which allows 32 bit apps to send and
receive CAN. It is tested successfully with 32bit and 64bit compiles of
utils/can/rtcansend.c / and rtcanrecv.c. The compat interface is now
implemented, rtdm_get_iovec() is used and the get_sockaddr() methodology
from the
> printk("rtcan_raw.c, 850: sizeof(can_frame_t):
> > %ld\n",
> > > > > sizeof(can_frame_t));
> > > > > printk("rtcan_raw.c, 852: iov->iov_len:
> > > > > %ld\n
if (iov->iov_len != sizeof(can_frame_t)) {
> > > > printk("rtcan_raw.c, 850: sizeof(can_frame_t): %ld\n",
> > > >sizeof(can_frame_t));
> > > > printk("rtcan_raw.c, 852: iov->iov_len: %ld\n",
> > > > iov-
uot;rtcan_raw.c, 852: iov->iov_len: %ld\n",
> > > iov->iov_len);
> > > return -EMSGSIZE;
> > > }
> > >
> > > when running rtcansend (32-bit compile, which fails with EMSGSIZE):
> > > [root@pc can]#
;> printk("rtcan_raw.c, 850: sizeof(can_frame_t): %ld\n",
>>sizeof(can_frame_t));
>> printk("rtcan_raw.c, 852: iov->iov_len: %ld\n",
>> iov->iov_len);
>> return -EMSGSIZE;
>> }
sizeof(can_frame_t): %ld\n",
>sizeof(can_frame_t));
> printk("rtcan_raw.c, 852: iov->iov_len: %ld\n",
> iov->iov_len);
> return -EMSGSIZE;
> }
>
> when running rtcansend (32-bit compile, which fails with EMSGSIZE):
>
printk("rtcan_raw.c, 852: iov->iov_len: %ld\n",
iov->iov_len);
return -EMSGSIZE;
}
when running rtcansend (32-bit compile, which fails with EMSGSIZE):
[root@pc can]# /usr/xenomai/bin/rtcansend rtcan0 -s 0xde 0xad
sizeof(can_frame_t): 16
send: Me
On 02.11.21 19:57, C Smith via Xenomai wrote:
> I ran into a problem wherein my real-time Xenomai 32-bit app
> fails on the socket operations of the 64-bit CAN driver.
> My real-time userspace app is Cobalt x86, compiled -m32.
>
> When I try the Xenomai rtcansend.c sample app compiled 32-bit, I
I ran into a problem wherein my real-time Xenomai 32-bit app
fails on the socket operations of the 64-bit CAN driver.
My real-time userspace app is Cobalt x86, compiled -m32.
When I try the Xenomai rtcansend.c sample app compiled 32-bit, I get the
same error :
[root@pc can]#
13 matches
Mail list logo