Changeset 230 for soft/giet_vm/boot/boot_init.c
- Timestamp:
- Feb 22, 2013, 4:03:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/boot/boot_init.c
r228 r230 740 740 741 741 // get physical segment pointer 742 mapping_pseg_t * pseg = boot_pseg_get(vseg->psegid);742 mapping_pseg_t * pseg = boot_pseg_get(vseg->psegid); 743 743 744 744 // compute vseg physical base address … … 757 757 // loop on vobjs contained in vseg to : 758 758 // (1) computes the length of the vseg, 759 // (2) initiali se the vaddr and paddr fields of all vobjs,760 // (3) initiali se the page table pointers arrays759 // (2) initialize the vaddr and paddr fields of all vobjs, 760 // (3) initialize the page table pointers arrays 761 761 762 762 cur_vaddr = vseg->vbase; … … 766 766 if (vobj[vobj_id].align) { 767 767 cur_paddr = align_to(cur_paddr, vobj[vobj_id].align); 768 cur_vaddr = align_to(cur_vaddr, vobj[vobj_id].align); 768 769 } 769 770 // set vaddr/paddr for current vobj 770 771 vobj[vobj_id].vaddr = cur_vaddr; 771 772 vobj[vobj_id].paddr = cur_paddr; 772 773 773 774 // initialise boot_ptabs_vaddr[] if current vobj is a PTAB 774 775 if (vobj[vobj_id].type == VOBJ_TYPE_PTAB) { … … 1191 1192 boot_puts(" / paddr = "); 1192 1193 boot_putx(vobj[vobj_id].paddr); 1194 boot_puts(" / vaddr = "); 1195 boot_putx(vobj[vobj_id].vaddr); 1193 1196 boot_puts(" / length = "); 1194 1197 boot_putx(vobj[vobj_id].length); 1198 boot_puts(" / buffer = "); 1199 boot_putx(memspace->buffer); 1200 boot_puts(" / size = "); 1201 boot_putx(memspace->size); 1195 1202 boot_puts("\n"); 1196 1203 #endif 1197 1204 break; 1198 1205 } 1199 case VOBJ_TYPE_PTAB: // nothing to initiali se1206 case VOBJ_TYPE_PTAB: // nothing to initialize 1200 1207 { 1201 1208 ptab_found = 1; … … 1211 1218 case VOBJ_TYPE_CONST: 1212 1219 { 1220 unsigned int *addr = (unsigned int *) vobj[vobj_id].paddr; 1221 *addr = vobj[vobj_id].init; 1213 1222 #if BOOT_DEBUG_VOBJS 1214 1223 boot_puts("CONST : "); … … 1217 1226 boot_putx(vobj[vobj_id].paddr); 1218 1227 boot_puts(" / init = "); 1219 boot_putx( vobj[vobj_id].init);1228 boot_putx(*addr); 1220 1229 boot_puts("\n"); 1221 1230 #endif 1222 unsigned int *addr = (unsigned int *) vobj[vobj_id].paddr;1223 *addr = vobj[vobj_id].init;1224 1231 break; 1225 1232 } … … 1228 1235 boot_puts("\n[INIT ERROR] illegal vobj type: "); 1229 1236 boot_putd(vobj[vobj_id].type); 1230 boot_puts("\n 1237 boot_puts("\n"); 1231 1238 boot_exit(); 1232 1239 }
Note: See TracChangeset
for help on using the changeset viewer.