Ignore:
Timestamp:
Apr 29, 2013, 5:12:04 PM (11 years ago)
Author:
alain
Message:

Improving trace in kernel_init()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/boot/boot_init.c

    r232 r236  
    590590    }
    591591
    592     // set PTE2 after checking double mapping error
     592    // set PTE2
    593593    pt_flags = (unsigned int *) (ptba + 8 * ix2);
    594594    pt_ppn = (unsigned int *) (ptba + 8 * ix2 + 4);
     595
     596    *pt_flags = flags;
     597    *pt_ppn = ppn;
     598
     599/*
     600if ( vpn == 0x00000300)
     601{
     602boot_puts("vpn       = ");
     603boot_putx( vpn );
     604boot_puts("\n");
     605boot_puts("pt_flags  = ");
     606boot_putx( (unsigned int)pt_flags );
     607boot_puts("\n");
     608boot_puts("*pt_flags = ");
     609boot_putx( *pt_flags );
     610boot_puts("\n");
     611boot_exit();
     612}
    595613
    596614    if ((*pt_flags & PTE_V) != 0) {  // page already mapped
     
    602620        boot_exit();
    603621    }
    604     // set PTE2
    605     *pt_flags = flags;
    606     *pt_ppn = ppn;
    607 
     622*/
    608623}                // end boot_add_pte()
    609624
     
    10071022        }
    10081023    }
    1009 } // end boot_pseg_init()
     1024} // end boot_psegs_init()
    10101025
    10111026
     
    10381053
    10391054#if BOOT_DEBUG_PT
    1040         boot_puts
    1041             ("\n[BOOT DEBUG] ****** mapping private vsegs in vspace ");
     1055        boot_puts("\n[BOOT DEBUG] ****** mapping private vsegs in vspace ");
    10421056        boot_puts(vspace[vspace_id].name);
    10431057        boot_puts(" ******\n");
     
    17161730            boot_puts(") allocated to processor ");
    17171731            boot_putd(gpid);
    1718             boot_puts("  - ctx[LTID]   = ");
     1732            boot_puts("\n  - ctx[LTID]   = ");
    17191733            boot_putd(ltid);
    1720             boot_puts("\n");
    1721 
    1722             boot_puts("  - ctx[SR]     = ");
     1734            boot_puts("\n  - ctx[SR]     = ");
    17231735            boot_putx(ctx_sr);
    1724             boot_puts("\n");
    1725 
    1726             boot_puts("  - ctx[SR]     = ");
     1736            boot_puts("\n  - ctx[SR]     = ");
    17271737            boot_putx(ctx_sp);
    1728             boot_puts("\n");
    1729 
    1730             boot_puts("  - ctx[RA]     = ");
     1738            boot_puts("\n  - ctx[RA]     = ");
    17311739            boot_putx(ctx_ra);
    1732             boot_puts("\n");
    1733 
    1734             boot_puts("  - ctx[EPC]    = ");
     1740            boot_puts("\n  - ctx[EPC]    = ");
    17351741            boot_putx(ctx_epc);
    1736             boot_puts("\n");
    1737 
    1738             boot_puts("  - ctx[PTPR]   = ");
     1742            boot_puts("\n  - ctx[PTPR]   = ");
    17391743            boot_putx(ctx_ptpr);
    1740             boot_puts("\n");
    1741 
    1742             boot_puts("  - ctx[TTY]    = ");
     1744            boot_puts("\n  - ctx[TTY]    = ");
    17431745            boot_putd(ctx_tty);
    1744             boot_puts("\n");
    1745 
    1746             boot_puts("  - ctx[NIC]    = ");
     1746            boot_puts("\n  - ctx[NIC]    = ");
    17471747            boot_putd(ctx_nic);
    1748             boot_puts("\n");
    1749 
    1750             boot_puts("  - ctx[TIMER]  = ");
     1748            boot_puts("\n  - ctx[TIMER]  = ");
    17511749            boot_putd(ctx_timer);
    1752             boot_puts("\n");
    1753 
    1754             boot_puts("  - ctx[DMA]    = ");
     1750            boot_puts("\n  - ctx[DMA]    = ");
    17551751            boot_putd(ctx_dma);
    1756             boot_puts("\n");
    1757 
    1758             boot_puts("  - ctx[PTAB]   = ");
     1752            boot_puts("\n  - ctx[PTAB]   = ");
    17591753            boot_putx(ctx_ptab);
    1760             boot_puts("\n");
    1761 
    1762             boot_puts("  - ctx[VSID]   = ");
     1754            boot_puts("\n  - ctx[VSID]   = ");
    17631755            boot_putd(vspace_id);
    17641756            boot_puts("\n");
    1765 
    17661757#endif
    17671758
     
    17841775/////////////////////////////////////////////////////////////////////
    17851776void boot_init() {
     1777
    17861778    // mapping_info checking
    17871779    boot_check_mapping();
Note: See TracChangeset for help on using the changeset viewer.