Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2021-12

64 bit Linux syscall from 32 bit fpc program

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sven Barth
to Rainer Stratmann

Rainer Stratmann via fpc-pascal schrieb
am Fr., 24. Dez. 2021, 15:04:

Is it possible to make a direct 64 bit Linux syscall from a 32 bit fpc programm?

No, because your program is running as a 32-bit process and thus only has access to the 32-bit space of syscalls.

Why, what do you want to do?

Regards,
Sven

Reply by email

Rainer Stratmann
to Sven Barth
Sven Barth wrote 10 lines
Rainer Stratmann via fpc-pascal schrieb am Fr., 24. Dez. 2021, 15:04: > Is it possible to make a direct 64 bit Linux syscall from a 32 bit fpc > programm? No, because your program is running as a 32-bit process and thus only has access to the 32-bit space of syscalls. Why, what do you want to do?

My Kernel Mode Setting Program is not working on the latest Debian Linux 64 Bit Kernel.

Debian 10 - 32 Bit Linux - it works
Debian 10 - 64 Bit Linux - it works
Debian 11 - 32 Bit Linux - it works
Debian 11 - 64 Bit Linux - it does not work

It has something to do with mmap2 and may be the vtconsole. I guess mmap2 is not working correctly in Debian 11 - 64 Bit Linux. Or the vtconsole takes over the framebuffer.

Regards, Sven

Reply by email