Re: cross-compile error

Robert Schuster <[email protected]> Mon, 21 Jan 2008 00:20:20 +0100
Newsgroups gmane.comp.java.vm.kaffe.general
Message-ID <[email protected]>
Hi Kiyo.

Kiyo Inaba schrieb:
> Hi Robert,
> It should not be related to EABI.
> This is common for recent version of linux distribution for arm.
> You simply add "#define KERNEL" just before the include for "unistd".
> Without having "KERNEL" defined, "__sys1" is not defined, and you
> get this error.
I tried that. Wrote a patch that defines KERNEL (in a 2nd attempt
__KERNEL__) before the inclusion of unistd.h. However it still could not
find __sys1. By looking at the particular header file I could not find
any declaration of this function.

The kernel headers are from Linux 2.6.20 btw.

Dalibor then pointed me to a solution that was used for software called
factor.

syscall(__ARM_NR_cacheflush, start, end, 0);

With that in place I got

kaffe-bin: exception.c:100: vmExcept_setJNIFrame: Assertion `fp !=
(JNIFrameAddress)0' failed.

at runtime. So it is probably not correct either. :(

I now found a cacheflush implementation in libffi. I adjust this for
kaffe and report back.

Regards
Robert

_______________________________________________
kaffe mailing list
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
signature.asc (application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHk9c5G9cfwmwwEtoRCI5jAKCSUv/UfFrcY3ViqH4j+b8VDiDoMgCfW0yC
ndZgG/wVqg2/uVE6+Lq8NOQ=
=Fxbb
-----END PGP SIGNATURE-----