<div dir="ltr">Because L1 cache is 8k deep.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 29, 2016 at 10:31 PM, Shiva Shankar <span dir="ltr"><<a href="mailto:klshiva4a4@gmail.com" target="_blank">klshiva4a4@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 dir="ltr">Hi <br>I was going through arm vmlinux script file. and i found below statements<div><br></div><div><div>/*</div><div><span style="white-space:pre-wrap">                </span> * first, the init task union, aligned</div><div><span style="white-space:pre-wrap">                </span> * to an 8192 byte boundary.</div><div><span style="white-space:pre-wrap">                </span> */</div><div><br><div> INIT_TASK_DATA(THREAD_SIZE)</div></div></div><div><br></div><div><div>#define INIT_TASK_DATA(align)<span style="white-space:pre-wrap">                                                </span>\</div><div><span style="white-space:pre-wrap">        </span>. = ALIGN(align);<span style="white-space:pre-wrap">                                                </span>\</div><div><span style="white-space:pre-wrap">        </span>*(.data..init_task)</div></div><div><br>As i know we align data structures on a n byte boundary to save access time</div><div>and for speed execution but i did not understand why do we need to align this particular data structure on a 8192 byte boundary. </div><div><br></div><div>sometimes it will be on 1024 or 2048 byte boundary.</div><div><br></div><div>Any inputs would be appreciated!!!</div><div><br>Regards<br><br></div></div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br></div>