repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Uninitialized vector entry?
[minix3.git]
/
lib
/
syslib
/
sys_trace.c
blob
e7b75c4d620adac046d9236c454273e326bbd414
1
#include
"syslib.h"
2
3
PUBLIC
int
sys_trace
(
req
,
proc_nr
,
addr
,
data_p
)
4
int
req
,
proc_nr
;
5
long
addr
, *
data_p
;
6
{
7
message m
;
8
int
r
;
9
10
m
.
CTL_ENDPT
=
proc_nr
;
11
m
.
CTL_REQUEST
=
req
;
12
m
.
CTL_ADDRESS
=
addr
;
13
if
(
data_p
)
m
.
CTL_DATA
= *
data_p
;
14
r
=
_taskcall
(
SYSTASK
,
SYS_TRACE
, &
m
);
15
if
(
data_p
) *
data_p
=
m
.
CTL_DATA
;
16
return
(
r
);
17
}