Changeset 60788 in vbox
- Timestamp:
- May 2, 2016 1:21:20 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 106987
- Location:
- trunk/src/VBox/ValidationKit/bootsectors
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-basic-2-x0.c
r60774 r60788 1719 1719 if ( off <= X86_PAGE_SIZE - 2 1720 1720 && Bs3MemCmp(&pbTest[off], pbExpected, 2) != 0) 1721 Bs3Test Printf("Mismatch (#10): Expected limit %.2Rhxs, got %.2Rhxs; off=%#x\n",1722 pbExpected, &pbTest[off], off);1721 Bs3TestFailedF("Mismatch (#10): Expected limit %.2Rhxs, got %.2Rhxs; off=%#x\n", 1722 pbExpected, &pbTest[off], off); 1723 1723 if ( off < X86_PAGE_SIZE - 2 1724 1724 && !ASMMemIsAllU8(&pbTest[off + 2], X86_PAGE_SIZE - off - 2, bFiller)) 1725 Bs3Test Printf("Wrote partial base on #PF (#10): bFiller=%#x, got %.*Rhxs; off=%#x\n",1726 bFiller, X86_PAGE_SIZE - off - 2, &pbTest[off + 2], off);1725 Bs3TestFailedF("Wrote partial base on #PF (#10): bFiller=%#x, got %.*Rhxs; off=%#x\n", 1726 bFiller, X86_PAGE_SIZE - off - 2, &pbTest[off + 2], off); 1727 1727 if (off == X86_PAGE_SIZE - 1 && pbTest[off] != bFiller) 1728 Bs3Test Printf("Wrote partial limit on #PF (#10): Expected %02x, got %02x\n", bFiller, pbTest[off]);1728 Bs3TestFailedF("Wrote partial limit on #PF (#10): Expected %02x, got %02x\n", bFiller, pbTest[off]); 1729 1729 } 1730 1730 g_usBs3TestStep++; … … 1754 1754 if ( -off < cbIdtr 1755 1755 && !ASMMemIsAllU8(pbTest, cbIdtr + off, bFiller)) 1756 Bs3Test Printf("Wrote partial content on #PF (#12): bFiller=%#x, found %.*Rhxs; off=%d\n",1757 bFiller, cbIdtr + off, pbTest, off);1756 Bs3TestFailedF("Wrote partial content on #PF (#12): bFiller=%#x, found %.*Rhxs; off=%d\n", 1757 bFiller, cbIdtr + off, pbTest, off); 1758 1758 } 1759 1759 if (!ASMMemIsAllU8(&pbTest[RT_MAX(cbIdtr + off, 0)], 16, bFiller)) 1760 Bs3Test Printf("Wrote beyond expected area (#13): bFiller=%#x, found %.16Rhxs; off=%d\n",1761 bFiller, &pbTest[RT_MAX(cbIdtr + off, 0)], off);1760 Bs3TestFailedF("Wrote beyond expected area (#13): bFiller=%#x, found %.16Rhxs; off=%d\n", 1761 bFiller, &pbTest[RT_MAX(cbIdtr + off, 0)], off); 1762 1762 g_usBs3TestStep++; 1763 1763 } … … 1809 1809 if ( off <= X86_PAGE_SIZE - 2 1810 1810 && Bs3MemCmp(&pbTest[off], pbExpected, 2) != 0) 1811 Bs3Test Printf("Mismatch (#15): Expected limit %.2Rhxs, got %.2Rhxs; off=%#x\n",1812 pbExpected, &pbTest[off], off);1811 Bs3TestFailedF("Mismatch (#15): Expected limit %.2Rhxs, got %.2Rhxs; off=%#x\n", 1812 pbExpected, &pbTest[off], off); 1813 1813 cb = X86_PAGE_SIZE - off - 2; 1814 1814 if ( off < X86_PAGE_SIZE - 2 1815 1815 && !ASMMemIsAllU8(&pbTest[off + 2], cb, bFiller)) 1816 Bs3Test Printf("Wrote partial base on #PF (#15): bFiller=%#x, got %.*Rhxs; off=%#x\n",1817 bFiller, cb, &pbTest[off + 2], off);1816 Bs3TestFailedF("Wrote partial base on #PF (#15): bFiller=%#x, got %.*Rhxs; off=%#x\n", 1817 bFiller, cb, &pbTest[off + 2], off); 1818 1818 if (off == X86_PAGE_SIZE - 1 && pbTest[off] != bFiller) 1819 Bs3Test Printf("Wrote partial limit on #PF (#15): Expected %02x, got %02x\n", bFiller, pbTest[off]);1819 Bs3TestFailedF("Wrote partial limit on #PF (#15): Expected %02x, got %02x\n", bFiller, pbTest[off]); 1820 1820 } 1821 1821 } … … 1830 1830 bs3CpuBasic2_CompareGpCtx(&TrapCtx, &Ctx, 0); 1831 1831 if (Bs3MemCmp(&pbTest[off], pbExpected, 2) != 0) 1832 Bs3Test Printf("Mismatch (#16): Expected limit %.2Rhxs, got %.2Rhxs; off=%#x\n",1833 pbExpected, &pbTest[off], off);1832 Bs3TestFailedF("Mismatch (#16): Expected limit %.2Rhxs, got %.2Rhxs; off=%#x\n", 1833 pbExpected, &pbTest[off], off); 1834 1834 cb = X86_PAGE_SIZE - off - 2; 1835 1835 if ( off < X86_PAGE_SIZE - 2 1836 1836 && !ASMMemIsAllU8(&pbTest[off + 2], cb, bFiller)) 1837 Bs3Test Printf("Wrote partial base with limit (#16): bFiller=%#x, got %.*Rhxs; off=%#x\n",1838 bFiller, cb, &pbTest[off + 2], off);1837 Bs3TestFailedF("Wrote partial base with limit (#16): bFiller=%#x, got %.*Rhxs; off=%#x\n", 1838 bFiller, cb, &pbTest[off + 2], off); 1839 1839 } 1840 1840 else … … 1844 1844 if ( off < X86_PAGE_SIZE 1845 1845 && !ASMMemIsAllU8(&pbTest[off], X86_PAGE_SIZE - off, bFiller)) 1846 Bs3Test Printf("Mismatch (#16): Partial limit write on #PF: bFiller=%#x, got %.*Rhxs\n",1847 bFiller, X86_PAGE_SIZE - off, &pbTest[off]);1846 Bs3TestFailedF("Mismatch (#16): Partial limit write on #PF: bFiller=%#x, got %.*Rhxs\n", 1847 bFiller, X86_PAGE_SIZE - off, &pbTest[off]); 1848 1848 } 1849 1849 } … … 1857 1857 if ( off < X86_PAGE_SIZE 1858 1858 && !ASMMemIsAllU8(&pbTest[off], X86_PAGE_SIZE - off, bFiller)) 1859 Bs3Test Printf("Mismatch (#17): Partial write on #GP: bFiller=%#x, got %.*Rhxs\n",1860 bFiller, X86_PAGE_SIZE - off, &pbTest[off]);1859 Bs3TestFailedF("Mismatch (#17): Partial write on #GP: bFiller=%#x, got %.*Rhxs\n", 1860 bFiller, X86_PAGE_SIZE - off, &pbTest[off]); 1861 1861 } 1862 1862 … … 2033 2033 } Expected; 2034 2034 2035 //if (bMode != BS3_MODE_LM64) return BS3TESTDOMODE_SKIPPED; 2035 2036 bs3CpuBasic2_SetGlobals(bMode); 2036 2037 … … 2060 2061 } Expected; 2061 2062 2063 //if (bMode != BS3_MODE_LM64) return BS3TESTDOMODE_SKIPPED; 2062 2064 bs3CpuBasic2_SetGlobals(bMode); 2063 2065 … … 3163 3165 } uBuf; 3164 3166 size_t cbUnused; 3165 //if (bMode != BS3_MODE_LM64) return BS3TESTDOMODE_SKIPPED; 3166 3167 3168 //if (bMode != BS3_MODE_LM64) return BS3TESTDOMODE_SKIPPED; 3167 3169 bs3CpuBasic2_SetGlobals(bMode); 3168 3170 -
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-basic-2.c
r60774 r60788 58 58 { 59 59 { "iret", bs3CpuBasic2_iret_f16, 0 }, 60 #if 060 #if 1 61 61 { "sidt", bs3CpuBasic2_sidt_f16, 0 }, 62 62 { "sgdt", bs3CpuBasic2_sgdt_f16, 0 },
Note:
See TracChangeset
for help on using the changeset viewer.