[fpc-devel] M68k: important milestone reached

Sven Barth pascaldragon at googlemail.com
Mon Feb 24 15:41:58 CET 2014


Am 24.02.2014 15:32, schrieb Michael Schnell:
> On 02/24/2014 03:07 PM, Sven Barth wrote:
>> As long as the Pascal code is restricted to one thread you won't have 
>> a problem, otherwise the reference counting needs to be threadsafe 
>> (it uses InterlockedIncrement/-Decrement which currently is 
>> implemented as a simple inc/dec).
> I understand that this code resides in the RTL, which I would need to 
> re-implement for the "embedded" system anyway. Here I simply could 
> disable/enable interrupt to disallow a task switch.
Yes, they reside in $fpc/m68k/m68k.inc and are normally OS independant 
as they normally use corresponding CPU instructions. There are 
exceptions though like the kuser_xchg, etc functions provided on certain 
arm-linux systems.

Regards,
Sven



More information about the fpc-devel mailing list