5 int sys_diagctl(int code
, char *arg1
, int arg2
)
9 m
.m_lsys_krn_sys_diagctl
.code
= code
;
12 case DIAGCTL_CODE_DIAG
:
13 m
.m_lsys_krn_sys_diagctl
.buf
= (vir_bytes
)arg1
;
14 m
.m_lsys_krn_sys_diagctl
.len
= arg2
;
16 case DIAGCTL_CODE_STACKTRACE
:
17 m
.m_lsys_krn_sys_diagctl
.endpt
= (endpoint_t
)arg2
;
19 case DIAGCTL_CODE_REGISTER
:
21 case DIAGCTL_CODE_UNREGISTER
:
24 panic("Unknown SYS_DIAGCTL request %d\n", code
);
27 return(_kernel_call(SYS_DIAGCTL
, &m
));