We added a system call to modify idt table, then programed it
in modify_idt.c
1. Put our modify_idt.c file in /usr/src/linux-3.10.15/arch/x86/kernel
2. /usr/src/linux-3.10.15/arch/x86/syscalls#
vim syscall_64.tbl
add a new line
?
1 |
|
3. Add the prototype of our system call in
/usr/src/linux-3.10.15/include/linux/syscalls.h
?
1 |
|
4. Add the file to the Makefile in /usr/src/linux-3.10.15/arch/x86/kernel/Makefile
by
adding modify_idt.o to the list in obj-y += ...
?
1 2 3 4 |
|
5. Do not forget to recompile & reload the kernel before
testing!