VirtualBox

Ignore:
Timestamp:
Jun 1, 2016 6:34:57 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107696
Message:

bs3-fpustate-1: Extended the tests to force the ring-0 and raw-mode VMM code to do interesting things.

Location:
trunk/src/VBox/ValidationKit/bootsectors/bs3kit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-rm-InitMemory.c

    r60686 r61385  
    3232#include "bs3-cmn-memory.h"
    3333#include <iprt/asm.h>
     34#include <VBox/VMMDevTesting.h>
    3435
    3536
     
    248249BS3_DECL(void) BS3_FAR_CODE Bs3InitMemory_rm_far(void)
    249250{
    250     uint16_t        i;
    251     uint16_t        cPages;
    252     uint32_t        u32;
    253     INT15E820ENTRY  Entry;
     251    uint16_t            i;
     252    uint16_t            cPages;
     253    uint32_t            u32;
     254    INT15E820ENTRY      Entry;
     255    uint32_t BS3_FAR   *pu32Mmio;
    254256
    255257    /*
     
    332334
    333335    /*
     336     * Check if we've got the VMMDev MMIO testing memory mapped above 1MB.
     337     */
     338    pu32Mmio = (uint32_t BS3_FAR *)BS3_FP_MAKE(VMMDEV_TESTING_MMIO_RM_SEL,
     339                                               VMMDEV_TESTING_MMIO_RM_OFF2(VMMDEV_TESTING_MMIO_OFF_NOP));
     340    if (*pu32Mmio == VMMDEV_TESTING_NOP_RET)
     341    {
     342        Bs3Printf("Memory: Found VMMDev MMIO testing region\n");
     343        if (!ASMBitTestAndSet(g_Bs3Mem4KUpperTiled.Core.bmAllocated, 1))
     344            g_Bs3Mem4KUpperTiled.Core.cFreeChunks--;
     345
     346    }
     347
     348    /*
    334349     * Initialize the slab lists.
    335350     */
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r60777 r61385  
    31643164 * Basic CPU detection.
    31653165 *
    3166  * This sets the #g_bBs3CpuDetected global variable to the return value.
     3166 * This sets the #g_uBs3CpuDetected global variable to the return value.
    31673167 *
    31683168 * @returns BS3CPU_XXX value with the BS3CPU_F_CPUID flag set depending on
Note: See TracChangeset for help on using the changeset viewer.

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