Changeset 315 for trunk/kernel/mm/vseg.c
- Timestamp:
- Aug 3, 2017, 10:15:18 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/vseg.c
r184 r315 92 92 vpn_t vpn_size, 93 93 uint32_t type, 94 cxy_t cxy, 95 fdid_t fdid, 96 uint32_t offset ) 94 cxy_t cxy ) 97 95 { 98 96 vseg->type = type; … … 101 99 vseg->vpn_base = vpn_base; 102 100 vseg->vpn_size = vpn_size; 103 vseg->mapper = XPTR_NULL; 104 vseg->fdid = fdid; 105 vseg->offset = offset; 101 vseg->mapper_xp = XPTR_NULL; 106 102 vseg->cxy = cxy; 107 103 … … 171 167 hal_core_sleep(); 172 168 } 173 } 169 170 } // end vseg_init() 174 171 175 172 ////////////////////////////////////////// … … 182 179 183 180 // initialize vseg with remote_read access 184 vseg->type = hal_remote_lw ( XPTR( cxy , &ptr->type ) ); 185 vseg->min = (intptr_t)hal_remote_lpt( XPTR( cxy , &ptr->min ) ); 186 vseg->max = (intptr_t)hal_remote_lpt( XPTR( cxy , &ptr->max ) ); 187 vseg->vpn_base = hal_remote_lw ( XPTR( cxy , &ptr->vpn_base ) ); 188 vseg->vpn_size = hal_remote_lw ( XPTR( cxy , &ptr->vpn_size ) ); 189 vseg->flags = hal_remote_lw ( XPTR( cxy , &ptr->flags ) ); 190 vseg->mapper = (xptr_t) hal_remote_lwd( XPTR( cxy , &ptr->mapper ) ); 191 192 if( vseg->type == VSEG_TYPE_FILE ) 193 { 194 vseg->fdid = hal_remote_lw( XPTR( cxy , &ptr->fdid ) ); 195 vseg->offset = hal_remote_lw( XPTR( cxy , &ptr->offset ) ); 196 } 197 else 198 { 199 vseg->fdid = 0; 200 vseg->offset = 0; 201 } 181 vseg->type = hal_remote_lw ( XPTR( cxy , &ptr->type ) ); 182 vseg->min = (intptr_t)hal_remote_lpt( XPTR( cxy , &ptr->min ) ); 183 vseg->max = (intptr_t)hal_remote_lpt( XPTR( cxy , &ptr->max ) ); 184 vseg->vpn_base = hal_remote_lw ( XPTR( cxy , &ptr->vpn_base ) ); 185 vseg->vpn_size = hal_remote_lw ( XPTR( cxy , &ptr->vpn_size ) ); 186 vseg->flags = hal_remote_lw ( XPTR( cxy , &ptr->flags ) ); 187 vseg->mapper_xp = (xptr_t) hal_remote_lwd( XPTR( cxy , &ptr->mapper_xp ) ); 202 188 } 203 189
Note: See TracChangeset
for help on using the changeset viewer.