[fpc-pascal] FPC_ARMEL system calls
Luca Olivetti
luca at ventoso.org
Sat Jan 1 03:11:15 CET 2005
En/na Luca Olivetti ha escrit:
> 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
the first link should have been
http://wiki.debian.org/ArmEabiPort#head-96054c6cb4209b4a589e645dd50ac0fe133b8ced
>
> 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
More information about the fpc-pascal
mailing list