Hi Henry, Luca I got a 'ppcarm' after compiling the fpc-svn. I copied the pparm to the qemu-system-arm emulated machine and tried to compile a Helloworld.pas. fpc showed some errors related to FPU and stopped. Then i copied many *.o and *.ppu files from host to qemu machine. This time fpc compiled and linked the crt0.o and system.o and few other file, and the program worked.
But when i copied to the actual target AT91SAM9263 , it wont work - just waits endlessly. strace in the target gives:- syscall(0x90004c,0x3,0xbebd6de8,0xbebd6df0,0x40000) = -1 EINTR (Interrupted system call) And finally a bad file descriptor. Exit(0). The architecture is "armvtejl" in both target as well as the emulated machine. I tried generating assembler files in emulated and the assembling in the target. But getting same. What could be done now? regards Nataraj On Wed, Jun 4, 2008 at 3:33 AM, Henry Vermaak <[EMAIL PROTECTED]> wrote: > 2008/6/3 Luca Olivetti <[EMAIL PROTECTED]> > > > > the syscall number should be put in r7 > > Also the alignment of the parameters in the registers is different. > > Of course I cannot make head or tails of syscall.inc, so it's possible > that > > everything is already done as it should be. > > mov r7, r0 puts the syscall nr into r7. i haven't looked at the > alignment, though :-\ > > "With EABI, 64-bit function parameters passed in registers are aligned > to an even-numbered register instead of using the next available > pair." > > what output does: > > qemu-arm -strace hello > > give? (run on your i386 after cross-compiling) > > did you compile this with the 2.18 binutils? my qemu-arm is happy > with my simple hello program. even does writeln(2/3) properly. > > henry > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal