3 /*===========================================================================*
5 *===========================================================================*/
6 PUBLIC
int sys_segctl(index
, seg
, off
, phys
, size
)
7 int *index
; /* return index of remote segment */
8 u16_t
*seg
; /* return segment selector here */
9 vir_bytes
*off
; /* return offset in segment here */
10 phys_bytes phys
; /* physical address to convert */
11 vir_bytes size
; /* size of segment */
17 s
= _taskcall(SYSTASK
, SYS_SEGCTL
, &m
);
18 *index
= (int) m
.SEG_INDEX
;
19 *seg
= (u16_t
) m
.SEG_SELECT
;
20 *off
= (vir_bytes
) m
.SEG_OFFSET
;