Remote unused segctl kernel call
This commit is contained in:
@@ -86,7 +86,6 @@ SRCS= \
|
||||
sys_schedctl.c \
|
||||
sys_schedule.c \
|
||||
sys_sdevio.c \
|
||||
sys_segctl.c \
|
||||
sys_setalarm.c \
|
||||
sys_setgrant.c \
|
||||
sys_sigreturn.c \
|
||||
|
||||
@@ -12,7 +12,7 @@ phys_bytes bytes; /* how many bytes */
|
||||
{
|
||||
/* Transfer a block of data. The source and destination can each either be a
|
||||
* process number or SELF (to indicate own process number). Virtual addresses
|
||||
* are offsets within LOCAL_SEG (text, stack, data), REMOTE_SEG, or BIOS_SEG.
|
||||
* are offsets within LOCAL_SEG (text, stack, data), or BIOS_SEG.
|
||||
* Physicall addressing is also possible with PHYS_SEG.
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
#include "syslib.h"
|
||||
|
||||
/*===========================================================================*
|
||||
* sys_segctl *
|
||||
*===========================================================================*/
|
||||
PUBLIC int sys_segctl(index, seg, off, phys, size)
|
||||
int *index; /* return index of remote segment */
|
||||
u16_t *seg; /* return segment selector here */
|
||||
vir_bytes *off; /* return offset in segment here */
|
||||
phys_bytes phys; /* physical address to convert */
|
||||
vir_bytes size; /* size of segment */
|
||||
{
|
||||
message m;
|
||||
int s;
|
||||
m.SEG_PHYS = phys;
|
||||
m.SEG_SIZE = size;
|
||||
s = _kernel_call(SYS_SEGCTL, &m);
|
||||
*index = (int) m.SEG_INDEX;
|
||||
*seg = (u16_t) m.SEG_SELECT;
|
||||
*off = (vir_bytes) m.SEG_OFFSET;
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ phys_bytes bytes; /* how many bytes */
|
||||
{
|
||||
/* Transfer a block of data. The source and destination can each either be a
|
||||
* process number or SELF (to indicate own process number). Virtual addresses
|
||||
* are offsets within LOCAL_SEG (text, stack, data), REMOTE_SEG, or BIOS_SEG.
|
||||
* are offsets within LOCAL_SEG (text, stack, data), or BIOS_SEG.
|
||||
*/
|
||||
|
||||
message copy_mess;
|
||||
|
||||
Reference in New Issue
Block a user