};
PRIVATE struct gate_table_s gate_table_common[] = {
- { syscall_entry, SYS386_VECTOR, USER_PRIVILEGE },
+ { ipc_entry, SYS386_VECTOR, USER_PRIVILEGE },
{ level0_call, LEVEL0_VECTOR, TASK_PRIVILEGE },
{ NULL, 0, 0}
};
* syscall is only from a process to kernel
*/
.balign 16
-.globl syscall_entry
-syscall_entry:
+.globl ipc_entry
+ipc_entry:
SAVE_PROCESS_CTX(0)
/* for stack trace */
movl $0, %ebp
- call sys_call
+ call do_ipc
/* restore the current process pointer and save the return value */
add $4 * 4, %esp
{ alignment_check, ALIGNMENT_CHECK_VECTOR, INTR_PRIVILEGE },
{ machine_check, MACHINE_CHECK_VECTOR, INTR_PRIVILEGE },
{ simd_exception, SIMD_EXCEPTION_VECTOR, INTR_PRIVILEGE },
- { syscall_entry, SYS386_VECTOR, USER_PRIVILEGE },/* 386 system call */
+ { ipc_entry, SYS386_VECTOR, USER_PRIVILEGE },/* 386 system call */
{ level0_call, LEVEL0_VECTOR, TASK_PRIVILEGE },
{ NULL, 0, 0}
};
/* Software interrupt handlers, in numerical order. */
_PROTOTYPE( void trp, (void) );
-_PROTOTYPE( void syscall_entry, (void) );
+_PROTOTYPE( void ipc_entry, (void) );
_PROTOTYPE( void level0_call, (void) );
/* memory.c */
m_ptr = (message *) proc->p_reg.bx;
bit_map = proc->p_reg.dx;
- /* sys_call() expects the given process's memory to be accessible. */
+ /* do_ipc() expects the given process's memory to be accessible. */
vm_set_cr3(proc);
/* Make the system call, for real this time. */
- proc->p_reg.retreg = sys_call(call_nr, src_dst_e, m_ptr, bit_map);
+ proc->p_reg.retreg = do_ipc(call_nr, src_dst_e, m_ptr, bit_map);
}
PUBLIC struct proc * arch_finish_schedcheck(void)
/*===========================================================================*
* sys_call *
*===========================================================================*/
-PUBLIC int sys_call(call_nr, src_dst_e, m_ptr, bit_map)
+PUBLIC int do_ipc(call_nr, src_dst_e, m_ptr, bit_map)
int call_nr; /* system call number and flags */
int src_dst_e; /* src to receive from or dst to send to */
message *m_ptr; /* pointer to message in the caller's space */
_PROTOTYPE( void minix_panic, (char *s, int n) );
/* proc.c */
-_PROTOTYPE( int sys_call, (int call_nr, int src_dst,
+_PROTOTYPE( int do_ipc, (int call_nr, int src_dst,
message *m_ptr, long bit_map) );
_PROTOTYPE( int lock_notify, (int src, int dst) );
_PROTOTYPE( int mini_notify, (struct proc *src, endpoint_t dst) );