Remote unused segctl kernel call

This commit is contained in:
Erik van der Kouwe
2011-04-26 23:28:23 +02:00
parent 7db58ddc19
commit e969b5e11b
21 changed files with 5 additions and 179 deletions

View File

@@ -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 \

View File

@@ -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.
*/

View File

@@ -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;
}

View File

@@ -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;