This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
developersguide:newkernelcall [2015/01/02 21:49] karadza3a |
developersguide:newkernelcall [2015/09/22 20:18] (current) shawnsustrich Changed line text indicating where user should add sys_sample.c |
||
---|---|---|---|
Line 55: | Line 55: | ||
<code> | <code> | ||
... | ... | ||
- | # define SYS_SAFEMEMSET (KERNEL_CALL + 56) /* sys_statectl() */ | + | # define SYS_PADCONF (KERNEL_CALL + 57) /* sys_padconf() */ |
- | # define SYS_SAMPLE (KERNEL_CALL + 57) /* sys_sample() */ | + | # define SYS_SAMPLE (KERNEL_CALL + 58) /* sys_sample() */ |
/* Total */ | /* Total */ | ||
- | #define NR_SYS_CALLS 58 /* number of kernel calls */ | + | #define NR_SYS_CALLS 59 /* number of kernel calls */ |
... | ... | ||
</code> | </code> | ||
- | - Add the SAMPLE service to the system tab: ///usr/src/minix/commands/service/parse.c//; build the updated system tab and install it with //make; make install// from ///usr/src/commands/service/// | + | - Add the SAMPLE service to the system tab: ///usr/src/minix/commands/service/parse.c//; build the updated system tab and install it with //make; make install// from ///usr/src/minix/commands/service/// |
<code> | <code> | ||
... | ... | ||
Line 73: | Line 73: | ||
{ | { | ||
... | ... | ||
- | { "MEMSET", SYS_MEMSET }, | + | { "PADCONF", SYS_PADCONF }, |
{ "SAMPLE", SYS_SAMPLE }, | { "SAMPLE", SYS_SAMPLE }, | ||
{ NULL, 0 } | { NULL, 0 } | ||
Line 96: | Line 96: | ||
LIB= sys | LIB= sys | ||
- | SRCS= \ | + | SRCS+= \ |
... | ... | ||
sys_sample.c \ | sys_sample.c \ |