arm: protect state after signal handler
[minix.git] / lib / libsys / sys_cprof.c
blob397b3296007d71f53cc30766ff7ca7d0ae247d4c
1 #include "syslib.h"
3 /*===========================================================================*
4 * sys_cprof *
5 *===========================================================================*/
6 int sys_cprof(action, size, endpt, ctl_ptr, mem_ptr)
7 int action; /* get/reset profiling tables */
8 int size; /* size of allocated memory */
9 endpoint_t endpt; /* caller endpoint */
10 void *ctl_ptr; /* location of info struct */
11 void *mem_ptr; /* location of allocated memory */
13 message m;
15 m.PROF_ACTION = action;
16 m.PROF_MEM_SIZE = size;
17 m.PROF_ENDPT = endpt;
18 m.PROF_CTL_PTR = ctl_ptr;
19 m.PROF_MEM_PTR = mem_ptr;
21 return(_kernel_call(SYS_CPROF, &m));