Skip to contentSkip to conversation

Question: removal of syscall macros?

DISCUSSION Teunis Peters 4 participants 5 messages Dec 13, 2006 – Mar 13, 2007

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Now that syscall macros have been pulled from the -mm tree, what method is recommended to use syscalls?

(I've wasted a day grubbing through sources before giving up and copying the old syscall macros into one key driver)

_syscall macros are used by:
ATI driver (no choice. I'm working with laptops)
vmware (I'm trying to phase this out for qemu, but it's a slow process) (and others I suspect)

I realize that these are "closed source" but my work is rather dependant on them remaining operational - and as the 2.6.19 kernel series is the only one that works on most of the hardware provided by my workplace, I'm kind of stuck patching things myself.

There doesn't seem to be any documentation on this so I ask about how to replace the _syscallX calls.

Thank you!
- Teunis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFgEuYbFT/SAfwLKMRAqYoAJ4xiJGcoJ6EB6kKX1VGALib1NrQyQCeNUzv AgYtPKfC6SpwBY6PgyLbZeI=
=jN5z
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 11 lines · Teunis Peters

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Now that syscall macros have been pulled from the -mm tree, what method is recommended to use syscalls?

(I've wasted a day grubbing through sources before giving up and copying the old syscall macros into one key driver)

_syscall macros are used by:
ATI driver (no choice. I'm working with laptops)

.. which uses it to call mprotect() from inside the driver. That's a nice security hole right there... better ask ATI to fix it urgently :)

#2 lore raw
In reply to Teunis Peters
Quoted 2 lines · Teunis Peters

Now that syscall macros have been pulled from the -mm tree, what method is recommended to use syscalls?

glibc forever had a syscall() function for just that purpose. It was never a good idea to use the macros since they didn't work in PIC.

#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 6 lines · Ulrich Drepper
Quoted 2 lines · Teunis Peters

Now that syscall macros have been pulled from the -mm tree, what method is recommended to use syscalls?

glibc forever had a syscall() function for just that purpose. It was never a good idea to use the macros since they didn't work in PIC.

sorry - I should be a little more context specific.

for KERNEL modules that used the _syscallX macros - what mechanism should be used?
I'm aware that the drivers I'm having a problem with (ATI, vmware) are closed source - but my own work machine's dependant on it and I'm not going to waste another 3 months to get a response from either company.

and since the macros were pulled... and I'm kind of stuck with bleeding edge until some of the other hardware I'm working with is supported... *frustrated sigh*
At the moment my workaround is just to copy the macros from released kernel in. I don't like that solution - but it DOES work.

Unless someone can suggest a low-price but recent - and still sold - laptop model that works well with linux. (rhetorical - if anyone DOES answer, keep it off the list - thanks *g*)
- - Teunis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFgGZBbFT/SAfwLKMRAvAWAJ91BZCCIFrcGTkPaahf+Vd+tPvtewCfee/g 6BAirwLkefSqJbqGruk3L3o=
=Mr7+
-----END PGP SIGNATURE-----

#4 lore raw
In reply to Teunis Peters

2006/12/14, Teunis Peters <[email protected]>:

Quoted 8 lines

Now that syscall macros have been pulled from the -mm tree, what method is recommended to use syscalls?

(I've wasted a day grubbing through sources before giving up and copying the old syscall macros into one key driver)

_syscall macros are used by:
ATI driver (no choice. I'm working with laptops)

I have the same problem as yours. Do you have any idea to use ATI firegl driver
in recent kernels ? Thanks in advance.

Regards,
albcamus