Better strict typing.
#include "kernel/kernel.h"
EXTERN vir_bytes lapic_addr;
-EXTERN u32_t lapic_eoi_addr;
+EXTERN vir_bytes lapic_eoi_addr;
#define MAX_NR_IOAPICS 32
#define MAX_NR_BUSES 32
CHECK(rp->p_reg.gs, ds);
CHECK(rp->p_reg.fs, ds);
CHECK(rp->p_reg.ss, ds);
- if(rp->p_endpoint != -2) {
+ if(rp->p_endpoint != SYSTEM) {
CHECK(rp->p_reg.es, ds);
}
CHECK(rp->p_reg.ds, ds);
processes[0] = cp;
#endif
+ /* FIXME: this compares a proc_nr_t with a endpoint_t */
while (src_dst != ANY) { /* check while process nr */
endpoint_t dep;
xp = proc_addr(src_dst); /* follow chain of processes */
return 0;
if(dep == ANY)
+ /* FIXME: this assigns a proc_nr_t to a endpoint_t */
src_dst = ANY;
else
okendpt(dep, &src_dst);
EXTERN struct proc *rdy_head[NR_SCHED_QUEUES]; /* ptrs to ready list headers */
EXTERN struct proc *rdy_tail[NR_SCHED_QUEUES]; /* ptrs to ready list tails */
-_PROTOTYPE( int mini_send, (struct proc *caller_ptr, int dst_e,
+_PROTOTYPE( int mini_send, (struct proc *caller_ptr, endpoint_t dst_e,
message *m_ptr, int flags));
#endif /* __ASSEMBLY__ */
* yet a system process, make sure it gets its own privilege structure.
*/
struct proc *rp;
- int proc_nr;
- int priv_id;
+ proc_nr_t proc_nr;
+ sys_id_t priv_id;
int ipc_to_m, kcalls;
int i, r;
struct io_range io_range;
int));
FORWARD _PROTOTYPE( int gen_opcl, (endpoint_t driver_e, int op,
dev_t dev, int proc_e, int flags));
-FORWARD _PROTOTYPE( int gen_io, (int task_nr, message *mess_ptr));
+FORWARD _PROTOTYPE( int gen_io, (endpoint_t task_nr, message *mess_ptr));
/*===========================================================================*
_PROTOTYPE( struct inode *alloc_inode, (dev_t dev, mode_t bits) );
_PROTOTYPE( void dup_inode, (struct inode *ip) );
_PROTOTYPE( struct inode *find_inode, (dev_t dev, int numb) );
-_PROTOTYPE( void free_inode, (dev_t dev, Ino_t numb) );
+_PROTOTYPE( void free_inode, (dev_t dev, ino_t numb) );
_PROTOTYPE( int fs_getnode, (void) );
_PROTOTYPE( int fs_putnode, (void) );
_PROTOTYPE( void init_inode_cache, (void) );
/*===========================================================================*
* process_ksig *
*===========================================================================*/
-PUBLIC int process_ksig(int proc_nr_e, int signo)
+PUBLIC int process_ksig(endpoint_t proc_nr_e, int signo)
{
register struct mproc *rmp;
int proc_nr;
/*===========================================================================*
* rs_isokendpt *
*===========================================================================*/
-PUBLIC int rs_isokendpt(int endpoint, int *proc)
+PUBLIC int rs_isokendpt(endpoint_t endpoint, int *proc)
{
*proc = _ENDPOINT_P(endpoint);
if(*proc < -NR_TASKS || *proc >= NR_PROCS)