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

2015-06-24 Thread QIAO YANG
On Jun 23, 2015, at 07:15 AM, Gedare Bloom ged...@rtems.org wrote: On Tue, Jun 23, 2015 at 7:43 AM, QIAO YANG yangqiao0...@me.com 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

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 yangqiao0...@me.com wrote: On Jun 23, 2015, at 07:15 AM, Gedare Bloom ged...@rtems.org wrote: On Tue, Jun 23, 2015 at 7:43 AM, QIAO YANG yangqiao0...@me.com wrote: Hi, As suggested by gedare, I think using zero length array to represent the

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 yangqiao0...@me.com 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