- Timestamp:
- Apr 29, 2013, 5:12:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/boot/boot_init.c
r232 r236 590 590 } 591 591 592 // set PTE2 after checking double mapping error592 // set PTE2 593 593 pt_flags = (unsigned int *) (ptba + 8 * ix2); 594 594 pt_ppn = (unsigned int *) (ptba + 8 * ix2 + 4); 595 596 *pt_flags = flags; 597 *pt_ppn = ppn; 598 599 /* 600 if ( vpn == 0x00000300) 601 { 602 boot_puts("vpn = "); 603 boot_putx( vpn ); 604 boot_puts("\n"); 605 boot_puts("pt_flags = "); 606 boot_putx( (unsigned int)pt_flags ); 607 boot_puts("\n"); 608 boot_puts("*pt_flags = "); 609 boot_putx( *pt_flags ); 610 boot_puts("\n"); 611 boot_exit(); 612 } 595 613 596 614 if ((*pt_flags & PTE_V) != 0) { // page already mapped … … 602 620 boot_exit(); 603 621 } 604 // set PTE2 605 *pt_flags = flags; 606 *pt_ppn = ppn; 607 622 */ 608 623 } // end boot_add_pte() 609 624 … … 1007 1022 } 1008 1023 } 1009 } // end boot_pseg _init()1024 } // end boot_psegs_init() 1010 1025 1011 1026 … … 1038 1053 1039 1054 #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 "); 1042 1056 boot_puts(vspace[vspace_id].name); 1043 1057 boot_puts(" ******\n"); … … 1716 1730 boot_puts(") allocated to processor "); 1717 1731 boot_putd(gpid); 1718 boot_puts(" - ctx[LTID] = ");1732 boot_puts("\n - ctx[LTID] = "); 1719 1733 boot_putd(ltid); 1720 boot_puts("\n"); 1721 1722 boot_puts(" - ctx[SR] = "); 1734 boot_puts("\n - ctx[SR] = "); 1723 1735 boot_putx(ctx_sr); 1724 boot_puts("\n"); 1725 1726 boot_puts(" - ctx[SR] = "); 1736 boot_puts("\n - ctx[SR] = "); 1727 1737 boot_putx(ctx_sp); 1728 boot_puts("\n"); 1729 1730 boot_puts(" - ctx[RA] = "); 1738 boot_puts("\n - ctx[RA] = "); 1731 1739 boot_putx(ctx_ra); 1732 boot_puts("\n"); 1733 1734 boot_puts(" - ctx[EPC] = "); 1740 boot_puts("\n - ctx[EPC] = "); 1735 1741 boot_putx(ctx_epc); 1736 boot_puts("\n"); 1737 1738 boot_puts(" - ctx[PTPR] = "); 1742 boot_puts("\n - ctx[PTPR] = "); 1739 1743 boot_putx(ctx_ptpr); 1740 boot_puts("\n"); 1741 1742 boot_puts(" - ctx[TTY] = "); 1744 boot_puts("\n - ctx[TTY] = "); 1743 1745 boot_putd(ctx_tty); 1744 boot_puts("\n"); 1745 1746 boot_puts(" - ctx[NIC] = "); 1746 boot_puts("\n - ctx[NIC] = "); 1747 1747 boot_putd(ctx_nic); 1748 boot_puts("\n"); 1749 1750 boot_puts(" - ctx[TIMER] = "); 1748 boot_puts("\n - ctx[TIMER] = "); 1751 1749 boot_putd(ctx_timer); 1752 boot_puts("\n"); 1753 1754 boot_puts(" - ctx[DMA] = "); 1750 boot_puts("\n - ctx[DMA] = "); 1755 1751 boot_putd(ctx_dma); 1756 boot_puts("\n"); 1757 1758 boot_puts(" - ctx[PTAB] = "); 1752 boot_puts("\n - ctx[PTAB] = "); 1759 1753 boot_putx(ctx_ptab); 1760 boot_puts("\n"); 1761 1762 boot_puts(" - ctx[VSID] = "); 1754 boot_puts("\n - ctx[VSID] = "); 1763 1755 boot_putd(vspace_id); 1764 1756 boot_puts("\n"); 1765 1766 1757 #endif 1767 1758 … … 1784 1775 ///////////////////////////////////////////////////////////////////// 1785 1776 void boot_init() { 1777 1786 1778 // mapping_info checking 1787 1779 boot_check_mapping();
Note: See TracChangeset
for help on using the changeset viewer.