CONFIG_REGPARM doubt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The kernel that comes with Fedora Core 4 [ 2.6.11-1.1369_FC4 ] has
CONFIG_REGPARM enabled by default.

If I enforce my own calling convention by using
__attribute__((regparm(0))) for all functions, would it be a problem ?
Or should I compile my kernel module against this kernel using the gcc
option -mregparm=3 ?

Basically, I want to stipulate that the function parameters have to be
passed through the stack even if the kernel has been compiled with
CONFIG_REGPARM enabled.

What would be the best way to achieve this ?

Thanks in advance.

Sujith.




--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux