VirtualBox

Changeset 66452 in vbox


Ignore:
Timestamp:
Apr 6, 2017 8:57:11 AM (8 years ago)
Author:
vboxsync
Message:

bs3kit: Added Bs3GetCpuVendor.

Location:
trunk/src/VBox/ValidationKit/bootsectors/bs3kit
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/Makefile.kmk

    r66446 r66452  
    5555        bs3-cmn-A20Disable.asm \
    5656        bs3-cmn-A20Enable.asm \
     57        bs3-cmn-GetCpuVendor.c \
    5758        bs3-cmn-GetModeName.c \
    5859        bs3-cmn-GetModeNameShortLower.c \
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-autostubs.kmk

    r66446 r66452  
    136136$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,bs3PagingGetLegacyPte)
    137137$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,bs3PagingGetPaePte)
     138$(call BS3KIT_FN_GEN_MODE_NEARSTUB,bs3kit-common-16,Bs3GetCpuVendor)
    138139$(call BS3KIT_FN_GEN_MODE_NEARSTUB,bs3kit-common-16,Bs3SwitchTo32BitAndCallC)
    139140$(call BS3KIT_FN_GEN_MODE_NEARSTUB,bs3kit-common-16,Bs3TrapInit)
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-mangling-code-define.h

    r66240 r66452  
    166166#ifndef BS3_CMN_ONLY
    167167# define Bs3CpuDetect BS3_MODE_MANGLER(Bs3CpuDetect)
     168# define Bs3GetCpuVendor BS3_MODE_MANGLER(Bs3GetCpuVendor)
    168169# define Bs3SwitchTo32BitAndCallC BS3_MODE_MANGLER(Bs3SwitchTo32BitAndCallC)
    169170# define Bs3TestDoModes BS3_MODE_MANGLER(Bs3TestDoModes)
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-mangling-code-undef.h

    r66240 r66452  
    166166#ifndef BS3_CMN_ONLY
    167167# undef Bs3CpuDetect
     168# undef Bs3GetCpuVendor
    168169# undef Bs3SwitchTo32BitAndCallC
    169170# undef Bs3TestDoModes
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r66450 r66452  
    37483748extern uint16_t g_uBs3CpuDetected;
    37493749
     3750/** CPU vendors. */
     3751typedef enum BS3CPUVENDOR
     3752{
     3753    BS3CPUVENDOR_INVALID = 0,
     3754    BS3CPUVENDOR_INTEL,
     3755    BS3CPUVENDOR_AMD,
     3756    BS3CPUVENDOR_VIA,
     3757    BS3CPUVENDOR_CYRIX,
     3758    BS3CPUVENDOR_UNKNOWN,
     3759    BS3CPUVENDOR_END
     3760} BS3CPUVENDOR;
     3761
     3762/**
     3763 * Tries to detect the CPU vendor.
     3764 *
     3765 * @returns CPU vendor.
     3766 */
     3767BS3_MODE_PROTO_STUB(BS3CPUVENDOR, Bs3GetCpuVendor,(void));
     3768
    37503769/**
    37513770 * Call 32-bit prot mode C function.
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