Rename SYSCTL kernel call to DIAGCTL
Change-Id: I1b17373f01808d887dcbeab493838946fbef4ef6
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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
19
lib/libsys/sys_diagctl.c
Normal 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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user