On Wed, 2012-03-28 at 22:27 -0400, Kevin O'Connor wrote:
On Wed, Mar 28, 2012 at 04:39:07PM +0200, Gerd Hoffmann wrote:
On 03/28/12 06:28, Alexey Korolev wrote:
This linked list implementation is partially based on kernel code. So it should be quite stable
How about just copying the file?
I've used the linux kernel list implementation elsewhere too and it worked just fine with only minor tweaks (remove some likely()/unlikely() macros IIRC).
Linux is GPLv2 while SeaBIOS is LGPLv3, so some care should be taken.
FWIW In Xen we decided to go with the BSD list macros in our LGPL library interfaces to avoid a similar sort issue. http://xenbits.xen.org/hg/xen-unstable.hg/file/74d2af0b56ea/tools/include/xe... has that plus a handy sed script to namespace the interface, although I don't suppose that will matter inside seabios.
Ian.