<br><br><div class="gmail_quote">On Mon, Jan 14, 2013 at 6:02 AM, horseriver <span dir="ltr"><<a href="mailto:horserivers@gmail.com" target="_blank">horserivers@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Jan 14, 2013 at 02:44:11PM +0000, Anuz Pratap Singh Tomar wrote:<br>
> On Mon, Jan 14, 2013 at 4:50 AM, horseriver <<a href="mailto:horserivers@gmail.com">horserivers@gmail.com</a>> wrote:<br>
><br>
> > On Sun, Jan 13, 2013 at 09:27:45PM -0800, Dave Hylands wrote:<br>
> > > Hi,<br>
> > ><br>
> > > On Sun, Jan 13, 2013 at 11:29 AM, horseriver <<a href="mailto:horserivers@gmail.com">horserivers@gmail.com</a>><br>
> > wrote:<br>
> > > ><br>
> > > > hi:<br>
> > > ><br>
> > > > In kernel code . some function is defined by<br>
> > > __attribute__((__section__(".initcall" level ".init")))<br>
> > > ><br>
> > > > what does this do ?<br>
> > ><br>
> > > It puts the address of the function in a linker section named<br>
> > > .initcallX.init where X is replaced by the level.<br>
> > ><br>
> > > These functions are called in order to initialize various subsystems and<br>
> > > drivers during kernel bootup.<br>
> ><br>
> > Thanks!<br>
> ><br>
> > Another question:<br>
> ><br>
> > __attribute__((regparm(3))) ; what does this do ?<br>
> ><br>
> ><br>
> ><br>
> > A simple google search should have answered this<br>
> <a href="http://ohse.de/uwe/articles/gcc-attributes.html" target="_blank">http://ohse.de/uwe/articles/gcc-attributes.html</a><br>
><br>
> Synopsis<br>
><br>
> regparm (NUMBER) Found in versions: 2.7-3.4 Description:<br>
><br>
</div><div class="im">> Functions that take a variable number of<br>
> arguments will continue to be passed all of their arguments on the<br>
> stack.<br>
><br>
</div>> what does this mean?<br>
<div class="HOEnZb"><div class="h5">><br></div></div></blockquote><div> </div><div>May be you should really read more. <br>I would suggest reading some i386 assembly. <br><br></div></div>Thank you <br>Warm Regards<br>
Anuz<br>