Changeset 453 for trunk/kernel/mm
- Timestamp:
- Jul 19, 2018, 2:25:40 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/vseg.c
r440 r453 168 168 vseg->file_size = hal_remote_lw ( XPTR( cxy , &ptr->file_size ) ); 169 169 vseg->mapper_xp = (xptr_t) hal_remote_lwd( XPTR( cxy , &ptr->mapper_xp ) ); 170 171 switch (vseg->type) 172 { 173 case VSEG_TYPE_DATA: { 174 vseg->cxy = 0xffff; 175 break; 176 } 177 case VSEG_TYPE_CODE: 178 case VSEG_TYPE_STACK: { 179 vseg->cxy = local_cxy; 180 break; 181 } 182 case VSEG_TYPE_ANON: 183 case VSEG_TYPE_FILE: 184 case VSEG_TYPE_REMOTE: { 185 vseg->cxy = (cxy_t) hal_remote_lw( XPTR(cxy, &ptr->cxy) ); 186 break; 187 } 188 default: { 189 assert( false, __FUNCTION__, "Illegal vseg type" ); 190 break; 191 } 192 } 170 193 } 171 194
Note: See TracChangeset
for help on using the changeset viewer.