<div dir="ltr"><div>I have a 64 bit machine</div><div><br></div><div>I am changing linux 3.5.4 source tree.</div><div><br></div><div>I modified syscall_64.tbl</div><div>I had put your code in linux_3.5.4/arch/x86/pks_first/pks_first_call.c</div><div><br></div><div>Then, I created pks_first/Makefile</div><div><br></div><div>Modified the arch/x86/Kbuild</div><div><br></div><div>Modified include/linux/syscalls.h</div><div><br></div><div><br></div><div>I ran "make menuconfig" and then simply exit.</div><div><br></div><div>Then I ran</div><div><br></div><div>"make"</div><div><br></div><div>I saw that pks_first_call.o was created</div><div><br></div><div>I then ran</div><div><br></div><div>"make modules_install"</div><div>"make install"</div><div><br></div><div>After then I restarted my system and booted linux 3.5.4. But it was stuck half way.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 9, 2016 at 7:39 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">Hi Nitin<br>
<span class=""><br>
On Sat, Apr 9, 2016 at 5:03 PM, Nitin Varyani <<a href="mailto:varyani.nitin1@gmail.com">varyani.nitin1@gmail.com</a>> wrote:<br>
> Neither of the solution is working.<br>
> @ Pranay: kernel is not booting after making the changes you have mentioned.<br>
> somethings like<br>
> "dropping to shell<br>
> initramfs:"<br>
> is displayed on booting.<br>
<br>
</span>I don't think this is related to the changes you made. I would advise<br>
you just build the sources for your<br>
distro and try to get to boot the kernel you compiled. Perhaps some<br>
steps you might have missed specific to your<br>
distro?<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> On Thu, Apr 7, 2016 at 1:08 PM, Pranay Srivastava <<a href="mailto:pranjas@gmail.com">pranjas@gmail.com</a>> wrote:<br>
>><br>
>> Nitin<br>
>><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>><br>
>> wrote:<br>
>> ><br>
>> > Hi,<br>
>> > I want to implement a system call as explained in Linux kernel<br>
>> > 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<br>
>> > which is 64 bit. I am not able to locate files entry. S and unistd.h which<br>
>> > he is telling in his tutorial.<br>
>> > Please help me out to figure out the exact steps. Please also mention<br>
>> > the linux kernel version I should use.<br>
>> ><br>
>><br>
>> Please refer this. I wrote this quite a while back but should be good to<br>
>> go.<br>
>><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>
>><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>
>> --<br>
>> ---P.K.S<br>
><br>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
---P.K.S<br>
</font></span></blockquote></div><br></div>