On Fri, May 04, 2007 at 03:02:08PM +0530, Sujith Manoharan wrote: > 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 ? That can't work: Caller and callee must agree on where to find the parameters. If the caller passes them on the stack and the callee expects them in registers, that obviously wouldn't work. > Thanks in advance. > > Sujith. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ