<div dir="ltr"><div><div>Neither of the solution is working. <br></div>@ Pranay: kernel is not booting after making the changes you have mentioned.<br></div>somethings like <br>"dropping to shell <br>initramfs:" <br>is displayed on booting.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 7, 2016 at 1:08 PM, Pranay Srivastava <span dir="ltr"><<a href="mailto:pranjas@gmail.com" target="_blank">pranjas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Nitin<br>
<span class=""><br>
<br>
On Thu, Apr 7, 2016 at 11:53 AM, Nitin Varyani <<a href="mailto:varyani.nitin1@gmail.com">varyani.nitin1@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
> I want to implement a system call as explained in Linux kernel development by Robert Love.<br>
><br>
> He does three things<br>
> adding entry to entry.S<br>
> adding entry to asm/unistd.h<br>
> and adding the system call code to sched.c<br>
><br>
><br>
> and then make + make install<br>
><br>
> I do not want to implement for all architectures but only for my PC which is 64 bit. I am not able to locate files entry. S and unistd.h which he is telling in his tutorial.<br>
> Please help me out to figure out the exact steps. Please also mention the linux kernel version I should use.<br>
><br>
<br>
</span>Please refer this. I wrote this quite a while back but should be good to go.<br>
<br>
<a href="http://codewithkernel.blogspot.my/2014/06/adding-new-system-call-in-linux-x86-and.html" rel="noreferrer" target="_blank">http://codewithkernel.blogspot.my/2014/06/adding-new-system-call-in-linux-x86-and.html</a><br>
<div class="HOEnZb"><div class="h5"><br>
> Nitin<br>
><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>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
---P.K.S<br>
</font></span></blockquote></div><br></div>