Re: [Sablevm-developer] Instruction cache flush (non)portability
Brought to you by:
egagnon
From: Etienne M. G. <eti...@uq...> - 2002-11-22 14:31:57
|
Hi Grzegorz, Regarding the #include <linux/types.h> suggestion. What is the license of <linux/types.h> ? If it is the GPL, then we're ou= t of=20 luck, as it would force us to GPL the whole SableVM code, and probably th= e class=20 libraries too (making the Classpath exception useless). I really hope it= is the=20 LGPL... Did you investigate whether GNU libc had a similar include file? GNU lib= c is=20 LGPLed, and would cause no license related problems. I know, these license things can seem quite annoying, but it's the right = of the=20 copyright holder to determine the license terms on the code they write. Etienne Grzegorz Prokopski wrote: > W li=B6cie z wto, 19-11-2002, godz. 18:23, Grzegorz Prokopski pisze:=20 >=20 >>Hi! >=20 > I was a bit in a hurry, so see the corections below. >=20 > (below paragraph is about already compiled binary version > of sablevm which should survive upgrade of glibc, gcc etc.) >=20 >>It's even more complicated if we link to that symbol and it's >>definition changes. On i386 (and most of the arches) we're >>_staticly_ linked to libgcc2 library (which contains the symbol). >>Thus - we don't have to worry about gcc upgrades etc. >>However on some arches, like m68k >=20 > this lib (libgcc2) is dynamically linked with every program >=20 >>- or so I was told >=20 > =20 >=20 >>I personally would vote that we use this symbol in one of next >>versions, after my old "every arch" patch is applied. >=20 > Not sure yet, but it would be possible to use > #include <linux/types.h> > when available and fallback to autodetection when it fails. >=20 > BTW: I was yet unable to actually test that __clear_cache > function (sorry), because it does nothing for i386 and Bdale > is very busy today so we haven't managed to test that for ia64 > yet :-/ >=20 > (I have assembler version for ia64 ready for another test anyway) >=20 > GBP >=20 >=20 --=20 Etienne M. Gagnon http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |