Help! In how to add a system call using a built-in kernel in Slackware
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Help! In how to add a system call using a built-in kernel in Slackware
I'm new in slackware and I did this to add a system call.
>added gb.c in usr/src/linux/kernel
>added gb.o into obj-y =
>added #define __NR_gb 341 in "/usr/src/linux/arch/x86/include/asm/unistd_32.h "
>added asmlinkage int sys_gb(); in "/usr/src/linux/arch/x86/include/asm/syscalls.h"
>added .long sys_gb in "/usr/src/linux/arch/x86/kernel/syscall_table_32.h"
>So that's done
>slackpkg update
#Compiling part#
make xconfig
make
make modules_install install
cd /boot
mkinitrd -o initrd-img-2.6.37.6 2.6.37.6
"edited lilo added initrd= /boot/initrd-img-2.6.37.6"
lilo
init 6 (reboot)
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609
Rep:
Another post where a lot of data on context is missing... What are you talking about? Which system call? For what purpose? Who wrote what? (Did YOU code something or did you get a THIRD PARTY patch ?)...
Edit: Use the 'CODE' tags to write your dumps and code... Also tell us what was the command which dump that stuff...
Last edited by NoStressHQ; 09-29-2011 at 12:34 PM.
What is the exact boot error that you get?
And yes, I agree that a little more context would be helpful.
BTW, have you read the README.initrd document?
Also, which .config did you use? One of the stock ones in /boot, a zcat /proc/config.gz > /usr/src/linux/.config, or whateve was in the linux source to start with?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.