drop from segments physcopy/vircopy invocations
. sys_vircopy always uses D for both src and dst . sys_physcopy uses PHYS_SEG if and only if corresponding endpoint is NONE, so we can derive the mode (PHYS_SEG or D) from the endpoint arg in the kernel, dropping the seg args . fields in msg still filled in for backwards compatability, using same NONE-logic in the library
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* The parameters for this kernel call are:
|
||||
* m5_i1: CP_SRC_PROC_NR (process number)
|
||||
* m5_s1: CP_SRC_SPACE (segment where address is: T, D, or S)
|
||||
* m5_s1: UMAP_SEG (segment where address is: T, D, or S)
|
||||
* m5_l1: CP_SRC_ADDR (virtual address)
|
||||
* m5_l2: CP_DST_ADDR (returns physical address)
|
||||
* m5_l3: CP_NR_BYTES (size of datastructure)
|
||||
@@ -24,7 +24,7 @@
|
||||
*==========================================================================*/
|
||||
int do_umap(struct proc * caller, message * m_ptr)
|
||||
{
|
||||
int seg_index = m_ptr->CP_SRC_SPACE & SEGMENT_INDEX;
|
||||
int seg_index = m_ptr->UMAP_SEG & SEGMENT_INDEX;
|
||||
int endpt = (int) m_ptr->CP_SRC_ENDPT;
|
||||
|
||||
/* This call is a subset of umap_remote, it allows mapping virtual addresses
|
||||
|
||||
Reference in New Issue
Block a user