[fpc-pascal] FPC_ARMEL system calls

Luca Olivetti luca at ventoso.org
Sat Jan 1 03:10:18 CET 2005


En/na Luca Olivetti ha escrit:
> En/na Luca Olivetti ha escrit:
> 
>> The following program:
>>
>> program hello;
>>
>> begin
>> writeln('hello');
>> end.
>>
>>
>> runs but it doesn't print anything, neither under scratchbox nor on 
>> the tablet.
> 
> I installed strace on the tablet:
> ~ $ strace ./hello
> execve("./hello", ["./hello"], [/* 59 vars */]) = 0
> syscall: unknown syscall trap 0x00008000

According to here
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3105/4

and here
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3105/4

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.

Bye
-- 
Luca



More information about the fpc-pascal mailing list