<div dir="ltr">I am using Ubuntu</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 9, 2016 at 8:04 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"><span class="">On Sat, Apr 9, 2016 at 7:51 PM, Nitin Varyani <<a href="mailto:varyani.nitin1@gmail.com">varyani.nitin1@gmail.com</a>> wrote:<br>
> I have a 64 bit machine<br>
><br>
<br>
</span>Before changing the source try to build, install and boot your kernel.<br>
I'm sure there are some extra steps you might need to perform to boot your<br>
compiled kernel. Which distro are you using? I used OpenSuse for this work.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> I am changing linux 3.5.4 source tree.<br>
><br>
> I modified syscall_64.tbl<br>
> I had put your code in linux_3.5.4/arch/x86/pks_first/pks_first_call.c<br>
><br>
> Then, I created pks_first/Makefile<br>
><br>
> Modified the arch/x86/Kbuild<br>
><br>
> Modified include/linux/syscalls.h<br>
><br>
><br>
> I ran "make menuconfig" and then simply exit.<br>
><br>
> Then I ran<br>
><br>
> "make"<br>
><br>
> I saw that pks_first_call.o was created<br>
><br>
> I then ran<br>
><br>
> "make modules_install"<br>
> "make install"<br>
><br>
> After then I restarted my system and booted linux 3.5.4. But it was stuck<br>
> half way.<br>
><br>
> On Sat, Apr 9, 2016 at 7:39 PM, Pranay Srivastava <<a href="mailto:pranjas@gmail.com">pranjas@gmail.com</a>> wrote:<br>
>><br>
>> Hi Nitin<br>
>><br>
>> On Sat, Apr 9, 2016 at 5:03 PM, Nitin Varyani <<a href="mailto:varyani.nitin1@gmail.com">varyani.nitin1@gmail.com</a>><br>
>> wrote:<br>
>> > Neither of the solution is working.<br>
>> > @ Pranay: kernel is not booting after making the changes you have<br>
>> > mentioned.<br>
>> > somethings like<br>
>> > "dropping to shell<br>
>> > initramfs:"<br>
>> > is displayed on booting.<br>
>><br>
>> 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>
>><br>
>> ><br>
>> ><br>
>> > On Thu, Apr 7, 2016 at 1:08 PM, Pranay Srivastava <<a href="mailto:pranjas@gmail.com">pranjas@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Nitin<br>
>> >><br>
>> >><br>
>> >> On Thu, Apr 7, 2016 at 11:53 AM, Nitin Varyani<br>
>> >> <<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<br>
>> >> > 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<br>
>> >> to<br>
>> >> go.<br>
>> >><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>
>> --<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>