 b900311656
			
		
	
	
		b900311656
		
	
	
	
	
		
			
			- headers use the endpoint_t in syslib.h and the implmentation was using int instead. Both uses endpoint_t now - every variable named like proc, proc_nr or proc_nr_e of type endpoint_t has name proc_ep now - endpoint_t defined as u32_t not int
		
			
				
	
	
		
			26 lines
		
	
	
		
			805 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			805 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include "syslib.h"
 | |
| 
 | |
| /*===========================================================================*
 | |
|  *                                sys_umap				     *
 | |
|  *===========================================================================*/
 | |
| PUBLIC int sys_umap(proc_ep, seg, vir_addr, bytes, phys_addr)
 | |
| endpoint_t proc_ep;			/* process number to do umap for */
 | |
| int seg;				/* T, D, or S segment */
 | |
| vir_bytes vir_addr;			/* address in bytes with segment*/
 | |
| vir_bytes bytes;			/* number of bytes to be copied */
 | |
| phys_bytes *phys_addr;			/* placeholder for result */
 | |
| {
 | |
|     message m;
 | |
|     int result;
 | |
| 
 | |
|     m.CP_SRC_ENDPT = proc_ep;
 | |
|     m.CP_SRC_SPACE = seg;
 | |
|     m.CP_SRC_ADDR = vir_addr;
 | |
|     m.CP_NR_BYTES = bytes;
 | |
| 
 | |
|     result = _taskcall(SYSTASK, SYS_UMAP, &m);
 | |
|     *phys_addr = m.CP_DST_ADDR;
 | |
|     return(result);
 | |
| }
 | |
| 
 |