int proc_nr; /* number of process to allow I/O */
{
message m_iop;
- m_iop.PROC_NR = proc_nr;
+ m_iop.IO_ENDPT = proc_nr;
return _taskcall(SYSTASK, SYS_IOPENABLE, &m_iop);
}
* terminated.
*/
+#if DEBUG
printf("pci_dev_name: got name %s\n", name);
+#endif
return name;
}
*devindp= m.m1_i1;
*vidp= m.m1_i2;
*didp= m.m1_i3;
+#if DEBUG
printf("pci_first_dev: got device %d, %04x/%04x\n",
*devindp, *vidp, *didp);
+#endif
return 1;
}
if (m.m_type != 0)
r= findproc("pci", &pci_procnr);
if (r != 0)
panic("pci", "pci_init1: findproc failed for 'pci'", r);
- printf("'pci' is at %d\n", pci_procnr);
m.m_type= BUSC_PCI_INIT;
len= strlen(name);
va_start(ap, how);
if ((m.ABRT_HOW = how) == RBT_MONITOR) {
- m.ABRT_MON_PROC = va_arg(ap, int);
+ m.ABRT_MON_ENDPT = va_arg(ap, int);
m.ABRT_MON_ADDR = va_arg(ap, char *);
m.ABRT_MON_LEN = va_arg(ap, size_t);
}
message m;
int result;
- m.SIG_PROC = proc_nr;
+ m.SIG_ENDPT = proc_nr;
result = _taskcall(SYSTASK, SYS_ENDKSIG, &m);
return(result);
}
/*===========================================================================*
* sys_enable_iop *
*===========================================================================*/
-PUBLIC int sys_enable_iop(proc_nr)
-int proc_nr; /* number of process to allow I/O */
+PUBLIC int sys_enable_iop(proc_nr_e)
+int proc_nr_e; /* number of process to allow I/O */
{
message m_iop;
- m_iop.PROC_NR = proc_nr;
+ m_iop.IO_ENDPT = proc_nr_e;
return _taskcall(SYSTASK, SYS_IOPENABLE, &m_iop);
}
message m;
- m.PR_PROC_NR = proc;
+ m.PR_ENDPT = proc;
m.PR_STACK_PTR = ptr;
m.PR_NAME_PTR = prog_name;
m.PR_IP_PTR = (char *)initpc;
*/
message m;
- m.PR_PROC_NR = proc;
+ m.PR_ENDPT = proc;
return(_taskcall(SYSTASK, SYS_EXIT, &m));
}
#include "syslib.h"
-PUBLIC int sys_fork(parent, child)
+PUBLIC int sys_fork(parent, child, child_endpoint)
int parent; /* process doing the fork */
int child; /* which proc has been created by the fork */
+int *child_endpoint;
{
/* A process has forked. Tell the kernel. */
message m;
+ int r;
- m.PR_PPROC_NR = parent;
- m.PR_PROC_NR = child;
- return(_taskcall(SYSTASK, SYS_FORK, &m));
+ m.PR_ENDPT = parent;
+ m.PR_SLOT = child;
+ r = _taskcall(SYSTASK, SYS_FORK, &m);
+ *child_endpoint = m.PR_ENDPT;
+ return r;
}
message m;
m.I_REQUEST = request;
- m.I_PROC_NR = SELF; /* always store values at caller */
+ m.I_ENDPT = SELF; /* always store values at caller */
m.I_VAL_PTR = ptr;
m.I_VAL_LEN = len;
m.I_VAL_PTR2 = ptr2;
- m.I_VAL_LEN2 = len2;
+ m.I_VAL_LEN2_E = len2;
return(_taskcall(SYSTASK, SYS_GETINFO, &m));
}
int result;
result = _taskcall(SYSTASK, SYS_GETKSIG, &m);
- *k_proc_nr = m.SIG_PROC;
+ *k_proc_nr = m.SIG_ENDPT;
*k_sig_map = (sigset_t) m.SIG_MAP;
return(result);
}
/* A proc has to be signaled via MM. Tell the kernel. */
message m;
- m.SIG_PROC = proc;
+ m.SIG_ENDPT = proc;
m.SIG_NUMBER = signr;
return(_taskcall(SYSTASK, SYS_KILL, &m));
}
message m;
- m.PR_PROC_NR = proc;
+ m.PR_ENDPT = proc;
m.PR_MEM_PTR = (char *) ptr;
return(_taskcall(SYSTASK, SYS_NEWMAP, &m));
}
message copy_mess;
if (bytes == 0L) return(OK);
- copy_mess.CP_SRC_PROC_NR = src_proc;
+ copy_mess.CP_SRC_ENDPT = src_proc;
copy_mess.CP_SRC_SPACE = src_seg;
copy_mess.CP_SRC_ADDR = (long) src_vir;
- copy_mess.CP_DST_PROC_NR = dst_proc;
+ copy_mess.CP_DST_ENDPT = dst_proc;
copy_mess.CP_DST_SPACE = dst_seg;
copy_mess.CP_DST_ADDR = (long) dst_vir;
copy_mess.CP_NR_BYTES = (long) bytes;
{
message m;
- m.CTL_PROC_NR = proc;
+ m.CTL_ENDPT = proc;
m.CTL_REQUEST = request;
m.CTL_MM_PRIV = i;
m.CTL_ARG_PTR = p;
m_io.DIO_REQUEST = req;
m_io.DIO_TYPE = type;
m_io.DIO_PORT = port;
- m_io.DIO_VEC_PROC = proc_nr;
+ m_io.DIO_VEC_ENDPT = proc_nr;
m_io.DIO_VEC_ADDR = buffer;
m_io.DIO_VEC_SIZE = count;
message m;
int result;
- m.SIG_PROC = proc_nr;
+ m.SIG_ENDPT = proc_nr;
m.SIG_CTXT_PTR = (char *) sig_ctxt;
result = _taskcall(SYSTASK, SYS_SIGRETURN, &m);
return(result);
message m;
int result;
- m.SIG_PROC = proc_nr;
+ m.SIG_ENDPT = proc_nr;
m.SIG_CTXT_PTR = (char *) sig_ctxt;
result = _taskcall(SYSTASK, SYS_SIGSEND, &m);
return(result);
{
message m;
- m.CTL_PROC_NR = proc;
+ m.CTL_ENDPT = proc;
m.CTL_REQUEST = request;
m.CTL_MM_PRIV = priv;
m.CTL_ARG_PTR = (char *) argp;
message m;
int r;
- m.T_PROC_NR = proc;
+ m.T_ENDPT = proc;
r = _taskcall(SYSTASK, SYS_TIMES, &m);
ptr[0] = m.T_USER_TIME;
ptr[1] = m.T_SYSTEM_TIME;
message m;
int r;
- m.CTL_PROC_NR = proc_nr;
+ m.CTL_ENDPT = proc_nr;
m.CTL_REQUEST = req;
m.CTL_ADDRESS = addr;
if (data_p) m.CTL_DATA = *data_p;
message m;
int result;
- m.CP_SRC_PROC_NR = proc_nr;
+ m.CP_SRC_ENDPT = proc_nr;
m.CP_SRC_SPACE = seg;
m.CP_SRC_ADDR = vir_addr;
m.CP_NR_BYTES = bytes;
message copy_mess;
if (bytes == 0L) return(OK);
- copy_mess.CP_SRC_PROC_NR = src_proc;
+ copy_mess.CP_SRC_ENDPT = src_proc;
copy_mess.CP_SRC_SPACE = src_seg;
copy_mess.CP_SRC_ADDR = (long) src_vir;
- copy_mess.CP_DST_PROC_NR = dst_proc;
+ copy_mess.CP_DST_ENDPT = dst_proc;
copy_mess.CP_DST_SPACE = dst_seg;
copy_mess.CP_DST_ADDR = (long) dst_vir;
copy_mess.CP_NR_BYTES = (long) bytes;
/* Get copy of boot monitor parameters. */
m.m_type = SYS_GETINFO;
m.I_REQUEST = GET_MONPARAMS;
- m.I_PROC_NR = SELF;
+ m.I_ENDPT = SELF;
m.I_VAL_LEN = sizeof(mon_params);
m.I_VAL_PTR = mon_params;
if ((s=_taskcall(SYSTASK, SYS_GETINFO, &m)) != OK) {
int s;
m.m_type = SYS_TIMES; /* request time information */
- m.T_PROC_NR = NONE; /* ignore process times */
+ m.T_ENDPT = NONE; /* ignore process times */
s = _taskcall(SYSTASK, SYS_TIMES, &m);
*ticks = m.T_BOOT_TICKS;
return(s);
/* Send the buffer to this output driver. */
m.DIAG_BUF_COUNT = buf_count;
m.DIAG_PRINT_BUF = print_buf;
- m.DIAG_PROC_NR = SELF;
+ m.DIAG_ENDPT = SELF;
m.m_type = DIAGNOSTICS;
(void) _sendrec(procs[p], &m);
}
if (ticks <= 0) return; /* check for robustness */
- m.ALRM_PROC_NR = SELF; /* SELF means this process nr */
+ m.ALRM_ENDPT = SELF; /* SELF means this process nr */
m.ALRM_EXP_TIME = ticks; /* request message after ticks */
m.ALRM_ABS_TIME = 0; /* ticks are relative to now */
s = _taskcall(SYSTASK, SYS_SETALARM, &m);