VirtualBox

Changeset 60788 in vbox


Ignore:
Timestamp:
May 2, 2016 1:21:20 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106987
Message:

bs3kit: updates

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  
    17191719                if (   off <= X86_PAGE_SIZE - 2
    17201720                    && Bs3MemCmp(&pbTest[off], pbExpected, 2) != 0)
    1721                     Bs3TestPrintf("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);
    17231723                if (   off < X86_PAGE_SIZE - 2
    17241724                    && !ASMMemIsAllU8(&pbTest[off + 2], X86_PAGE_SIZE - off - 2, bFiller))
    1725                     Bs3TestPrintf("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);
    17271727                if (off == X86_PAGE_SIZE - 1 && pbTest[off] != bFiller)
    1728                     Bs3TestPrintf("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]);
    17291729            }
    17301730            g_usBs3TestStep++;
     
    17541754                if (   -off < cbIdtr
    17551755                    && !ASMMemIsAllU8(pbTest, cbIdtr + off, bFiller))
    1756                     Bs3TestPrintf("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);
    17581758            }
    17591759            if (!ASMMemIsAllU8(&pbTest[RT_MAX(cbIdtr + off, 0)], 16, bFiller))
    1760                 Bs3TestPrintf("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);
    17621762            g_usBs3TestStep++;
    17631763        }
     
    18091809                            if (   off <= X86_PAGE_SIZE - 2
    18101810                                && Bs3MemCmp(&pbTest[off], pbExpected, 2) != 0)
    1811                                 Bs3TestPrintf("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);
    18131813                            cb = X86_PAGE_SIZE - off - 2;
    18141814                            if (   off < X86_PAGE_SIZE - 2
    18151815                                && !ASMMemIsAllU8(&pbTest[off + 2], cb, bFiller))
    1816                                 Bs3TestPrintf("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);
    18181818                            if (off == X86_PAGE_SIZE - 1 && pbTest[off] != bFiller)
    1819                                 Bs3TestPrintf("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]);
    18201820                        }
    18211821                    }
     
    18301830                                bs3CpuBasic2_CompareGpCtx(&TrapCtx, &Ctx, 0);
    18311831                            if (Bs3MemCmp(&pbTest[off], pbExpected, 2) != 0)
    1832                                 Bs3TestPrintf("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);
    18341834                            cb = X86_PAGE_SIZE - off - 2;
    18351835                            if (   off < X86_PAGE_SIZE - 2
    18361836                                && !ASMMemIsAllU8(&pbTest[off + 2], cb, bFiller))
    1837                                 Bs3TestPrintf("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);
    18391839                        }
    18401840                        else
     
    18441844                            if (   off < X86_PAGE_SIZE
    18451845                                && !ASMMemIsAllU8(&pbTest[off], X86_PAGE_SIZE - off, bFiller))
    1846                                 Bs3TestPrintf("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]);
    18481848                        }
    18491849                    }
     
    18571857                        if (   off < X86_PAGE_SIZE
    18581858                            && !ASMMemIsAllU8(&pbTest[off], X86_PAGE_SIZE - off, bFiller))
    1859                             Bs3TestPrintf("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]);
    18611861                    }
    18621862
     
    20332033    } Expected;
    20342034
     2035    //if (bMode != BS3_MODE_LM64) return BS3TESTDOMODE_SKIPPED;
    20352036    bs3CpuBasic2_SetGlobals(bMode);
    20362037
     
    20602061    } Expected;
    20612062
     2063    //if (bMode != BS3_MODE_LM64) return BS3TESTDOMODE_SKIPPED;
    20622064    bs3CpuBasic2_SetGlobals(bMode);
    20632065
     
    31633165    } uBuf;
    31643166    size_t cbUnused;
    3165 //if (bMode != BS3_MODE_LM64) return BS3TESTDOMODE_SKIPPED;
    3166 
     3167
     3168    //if (bMode != BS3_MODE_LM64) return BS3TESTDOMODE_SKIPPED;
    31673169    bs3CpuBasic2_SetGlobals(bMode);
    31683170
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-basic-2.c

    r60774 r60788  
    5858{
    5959    { "iret", bs3CpuBasic2_iret_f16, 0 },
    60 #if 0
     60#if 1
    6161    { "sidt", bs3CpuBasic2_sidt_f16, 0 },
    6262    { "sgdt", bs3CpuBasic2_sgdt_f16, 0 },
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette