Changeset 315 for trunk/kernel/syscalls
- Timestamp:
- Aug 3, 2017, 10:15:18 AM (7 years ago)
- Location:
- trunk/kernel/syscalls
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_exec.c
r302 r315 85 85 kmem_req_t req; // kmem request 86 86 page_t * page; // page descriptor 87 xptr_t base_xp; // extended pointer on page base 87 88 uint32_t order; // ln2( number of pages to store strings ) 88 89 char ** k_pointers; // base of kernel array of pointers … … 103 104 if( page == NULL ) return ENOMEM; 104 105 105 k_pointers = ppm_page2vaddr( page ); 106 base_xp = ppm_page2base( XPTR( local_cxy , page ) ); 107 k_pointers = (char **)GET_PTR( base_xp ); 106 108 107 109 // allocate several physical pages to store the strings themselve … … 111 113 if( page == NULL ) return ENOMEM; 112 114 113 k_buf_base = ppm_page2vaddr( page ); 115 base_xp = ppm_page2base( XPTR( local_cxy , page ) ); 116 k_buf_base = (char *)GET_PTR( base_xp ); 114 117 115 118 // copy the array of pointers to kernel buffer -
trunk/kernel/syscalls/sys_write.c
r313 r315 93 93 error = vfs_user_move( false, // from buffer 94 94 file_xp, 95 kbuf ,96 nbytes);95 buf , 96 count ); 97 97 98 98 if( error )
Note: See TracChangeset
for help on using the changeset viewer.