This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
developersguide:newkernelcall [2015/01/02 21:49] karadza3a |
developersguide:newkernelcall [2015/09/22 20:10] shawnsustrich Changed directory path for where a user should do make; make install after editing parse.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 } |