Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-26 Thread Fabio Luis Girardi via fpc-pascal
Hi Florian! Now it works as expected. Thanks! Em dom., 16 de fev. de 2020 às 18:32, Florian Klämpfl < flor...@freepascal.org> escreveu: > Am 01.02.20 um 18:13 schrieb je...@j-software.dk: > > Agreed, the rtl should definitely divide by pagesize if MMAP2 is > > defined. I've run into this

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-17 Thread Fabio Luis Girardi via fpc-pascal
About windows CE? Em Seg, 17 de fev de 2020 17:12, Bo Berglund via fpc-pascal < fpc-pascal@lists.freepascal.org> escreveu: > On Sun, 16 Feb 2020 23:36:09 -0300, Fabio Luis Girardi via fpc-pascal > wrote: > > >I'll test it tomorrow. > > > >Em Dom, 16 de fev de 2020 18:32, Florian Klämpfl >

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-17 Thread Bo Berglund via fpc-pascal
On Sun, 16 Feb 2020 23:36:09 -0300, Fabio Luis Girardi via fpc-pascal wrote: >I'll test it tomorrow. > >Em Dom, 16 de fev de 2020 18:32, Florian Klämpfl >escreveu: > >> Am 01.02.20 um 18:13 schrieb je...@j-software.dk: >> > Agreed, the rtl should definitely divide by pagesize if MMAP2 is >> >

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-16 Thread Fabio Luis Girardi via fpc-pascal
I'll test it tomorrow. Em Dom, 16 de fev de 2020 18:32, Florian Klämpfl escreveu: > Am 01.02.20 um 18:13 schrieb je...@j-software.dk: > > Agreed, the rtl should definitely divide by pagesize if MMAP2 is > > defined. I've run into this discrepancy before on ARM at work > > I have fixed it

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-16 Thread Florian Klämpfl
Am 01.02.20 um 18:13 schrieb je...@j-software.dk: Agreed, the rtl should definitely divide by pagesize if MMAP2 is defined. I've run into this discrepancy before on ARM at work I have fixed it meanwhile. ___ fpc-pascal maillist -

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-01 Thread je...@j-software.dk
Agreed, the rtl should definitely divide by pagesize if MMAP2 is defined. I've run into this discrepancy before on ARM at work  Original message From: Jonas Maebe Date: Sat, 1 Feb 2020, 17:46To: Fabio Luis Girardi via fpc-pascal Subject: Re: [fpc-pascal] fpmmap arm-linux issueOn

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-01 Thread Fabio Luis Girardi via fpc-pascal
Ok. I'll fill out a bug report. Em Sáb, 1 de fev de 2020 13:47, Jonas Maebe escreveu: > On 31/01/2020 22:17, Fabio Luis Girardi via fpc-pascal wrote: > > In C: > > > > CM_BaseAddr = mmap(NULL, 0x4000, PROT_READ | PROT_WRITE, > > MAP_SHARED, devmemfd, *0x44e0*); > > > > to get the

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-01 Thread Jonas Maebe
On 31/01/2020 22:17, Fabio Luis Girardi via fpc-pascal wrote: > In C:  > > CM_BaseAddr = mmap(NULL, 0x4000, PROT_READ | PROT_WRITE,                >         MAP_SHARED,  devmemfd, *0x44e0*);  > > to get the "same" code working in FPC I have to change some constants. > > CM_BaseAddr :=

[fpc-pascal] fpmmap arm-linux issue

2020-01-31 Thread Fabio Luis Girardi via fpc-pascal
Hi all! I'm porting a program written in C that uses mmap (fpmmap) that maps GPIOs and other utilities on a beaglebone. Everything is going well, until the test, where I see the all base address of beaglebone in FPC should be divided by 4096 dec ($1000 hex) to get it working. Example: In C: