Re: [RPI BSP] zero length array in kernel and refactor of video char output

2015-06-24 Thread Gedare Bloom
On Wed, Jun 24, 2015 at 2:31 AM, QIAO YANG wrote: > > On Jun 23, 2015, at 07:15 AM, Gedare Bloom wrote: > > On Tue, Jun 23, 2015 at 7:43 AM, QIAO YANG wrote: > > Hi, > > > As suggested by gedare, I think using zero length array to represent the > > mailbox buffer and tag data is a good way, much

[RPI BSP] zero length array in kernel and refactor of video char output

2015-06-23 Thread QIAO YANG
On Jun 23, 2015, at 07:15 AM, Gedare Bloom wrote: On Tue, Jun 23, 2015 at 7:43 AM, QIAO YANG wrote: Hi, As suggested by gedare, I think using zero length array to represent the mailbox buffer and tag data is a good way, much readable, clearer to abstract the structure of mailbox buffer, tag.

Re: [RPI BSP] zero length array in kernel and refactor of video char output

2015-06-23 Thread Gedare Bloom
On Tue, Jun 23, 2015 at 7:43 AM, QIAO YANG wrote: > Hi, > > As suggested by gedare, I think using zero length array to represent the > mailbox buffer and tag data is a good way, much readable, clearer to > abstract the structure of mailbox buffer, tag. > I've done an attemp, here is the scratch: >

[RPI BSP] zero length array in kernel and refactor of video char output

2015-06-23 Thread QIAO YANG
Hi, As suggested by gedare, I think using zero length array to represent the mailbox buffer and tag data is a good way, much readable, clearer to abstract the structure of mailbox buffer, tag. I've done an attemp, here is the scratch: https://github.com/yangqiao/rtems/commit/3ed7e9bde493bdc8e64