Rename SYSCTL kernel call to DIAGCTL

Change-Id: I1b17373f01808d887dcbeab493838946fbef4ef6
This commit is contained in:
David van Moolenbroek
2013-09-21 00:58:46 +02:00
committed by Lionel Sambuc
parent 9fab85c2de
commit de975579a4
18 changed files with 62 additions and 62 deletions

View File

@@ -38,6 +38,7 @@ SRCS+= \
sys_abort.c \
sys_clear.c \
sys_cprof.c \
sys_diagctl.c \
sys_endsig.c \
sys_exec.c \
sys_exit.c \
@@ -66,7 +67,6 @@ SRCS+= \
sys_sprof.c \
sys_statectl.c \
sys_stime.c \
sys_sysctl.c \
sys_times.c \
sys_trace.c \
sys_umap.c \

View File

@@ -20,7 +20,7 @@ void kputc(int c)
static int buf_count; /* # characters in the buffer */
if ((c == 0 && buf_count > 0) || buf_count == sizeof(print_buf)) {
sys_sysctl(SYSCTL_CODE_DIAG, print_buf, buf_count);
sys_diagctl(DIAGCTL_CODE_DIAG, print_buf, buf_count);
buf_count = 0;
}
if (c != 0) {

19
lib/libsys/sys_diagctl.c Normal file
View File

@@ -0,0 +1,19 @@
#include "syslib.h"
int sys_diagctl(int code, char *arg1, int arg2)
{
message m;
m.DIAGCTL_CODE = code;
m.DIAGCTL_ARG1 = arg1;
m.DIAGCTL_ARG2 = arg2;
return(_kernel_call(SYS_DIAGCTL, &m));
}
int sys_diagctl_stacktrace(endpoint_t ep)
{
return sys_diagctl(DIAGCTL_CODE_STACKTRACE, NULL, ep);
}

View File

@@ -1,20 +0,0 @@
#include "syslib.h"
int sys_sysctl(int code, char *arg1, int arg2)
{
message m;
m.SYSCTL_CODE = code;
m.SYSCTL_ARG1 = arg1;
m.SYSCTL_ARG2 = arg2;
return(_kernel_call(SYS_SYSCTL, &m));
}
int sys_sysctl_stacktrace(endpoint_t ep)
{
return sys_sysctl(SYSCTL_CODE_STACKTRACE, NULL, ep);
}