Adding ipc_ prefix to ipc primitives
* Also change _orig to _intr for clarity
* Cleaned up {IPC,KER}VEC
* Renamed _minix_kernel_info_struct to get_minix_kerninfo
* Merged _senda.S into _ipc.S
* Moved into separate files get_minix_kerninfo and _do_kernel_call
* Adapted do_kernel_call to follow same _ convention as ipc functions
* Drop patches in libc/net/send.c and libc/include/namespace.h
Change-Id: If4ea21ecb65435170d7d87de6c826328e84c18d0
This commit is contained in:
@@ -177,9 +177,9 @@ ENTRY(svc_entry)
|
||||
/* save the pointer to the current process */
|
||||
ldr fp, [sp]
|
||||
|
||||
cmp r3, #KERVEC
|
||||
cmp r3, #KERVEC_INTR
|
||||
beq kernel_call_entry
|
||||
cmp r3, #IPCVEC
|
||||
cmp r3, #IPCVEC_INTR
|
||||
beq ipc_entry
|
||||
|
||||
/* return -1 to the current process as an invalid SWI was called .*/
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include "kernel/kernel.h"
|
||||
#include <minix/config.h>
|
||||
#include <minix/const.h>
|
||||
#include <minix/ipcconst.h>
|
||||
#include <minix/com.h>
|
||||
#include <machine/asm.h>
|
||||
#include <machine/interrupt.h>
|
||||
|
||||
@@ -178,7 +178,7 @@ struct proc {
|
||||
/* Macro to return: on which process is a certain process blocked?
|
||||
* return endpoint number (can be ANY) or NONE. It's important to
|
||||
* check RTS_SENDING first, and then RTS_RECEIVING, as they could
|
||||
* both be on (if a sendrec() blocks on sending), and p_getfrom_e
|
||||
* both be on (if a ipc_sendrec() blocks on sending), and p_getfrom_e
|
||||
* could be nonsense even though RTS_RECEIVING is on.
|
||||
*/
|
||||
#define P_BLOCKEDON(p) \
|
||||
|
||||
Reference in New Issue
Block a user