Recent

Author Topic: Platform eXtended Library on aarch64  (Read 1039 times)

ertank

  • Sr. Member
  • ****
  • Posts: 274
Platform eXtended Library on aarch64
« on: March 04, 2024, 02:42:02 pm »
Hello,

I wonder if someone already has a solution for compiling subject library.
It has some Pi 2 (ARMv7) assembler instructions not compiling under 64 bit OS.

PXL.Boards.RPi.pas: line 383:
Code: [Select]
procedure WriteMemSafe(const Address: Pointer; const Value: Cardinal);
asm
{$IFDEF RPi2}
  dmb
  str r1, [r0]
  dmb
{$ELSE}
  str r1, [r0]
  str r1, [r0]
{$ENDIF}
end;

I get Unknown identifier "R1" compiler error and I don't know assembler and just stuck when I wanted to modify an older project.

Any help is appreciated.

Thanks & Regards,
Ertan

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Platform eXtended Library on aarch64
« Reply #1 on: March 04, 2024, 02:50:00 pm »
Code: Pascal  [Select][+][-]
  1. If you feel lucky, try to replace r[#] with x[#].

ertank

  • Sr. Member
  • ****
  • Posts: 274
Re: Platform eXtended Library on aarch64
« Reply #2 on: March 04, 2024, 03:54:12 pm »
Thank you.
This fixed the compiler error.
But, I am stuck with the /dev/gpiomem access
Searching for additional help in here: https://forums.raspberrypi.com/viewtopic.php?t=366809


 

TinyPortal © 2005-2018