VirtualBox

Ignore:
Timestamp:
Apr 6, 2017 9:12:29 AM (8 years ago)
Author:
vboxsync
Message:

bs3kit: Added Bs3GetCpuVendor.

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

Legend:

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

    r66452 r66454  
    4040$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3TestFailedF)
    4141$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3TestFailedV)
     42$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3GetCpuVendor)
    4243$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3StrCpy)
    4344$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3GetModeName)
     
    136137$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,bs3PagingGetLegacyPte)
    137138$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,bs3PagingGetPaePte)
    138 $(call BS3KIT_FN_GEN_MODE_NEARSTUB,bs3kit-common-16,Bs3GetCpuVendor)
    139139$(call BS3KIT_FN_GEN_MODE_NEARSTUB,bs3kit-common-16,Bs3SwitchTo32BitAndCallC)
    140140$(call BS3KIT_FN_GEN_MODE_NEARSTUB,bs3kit-common-16,Bs3TrapInit)
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-mangling-code-define.h

    r66452 r66454  
    3838#define Bs3ExtCtxRestore BS3_CMN_MANGLER(Bs3ExtCtxRestore)
    3939#define Bs3ExtCtxSave BS3_CMN_MANGLER(Bs3ExtCtxSave)
     40#define Bs3GetCpuVendor BS3_CMN_MANGLER(Bs3GetCpuVendor)
    4041#define Bs3GetModeName BS3_CMN_MANGLER(Bs3GetModeName)
    4142#define Bs3GetModeNameShortLower BS3_CMN_MANGLER(Bs3GetModeNameShortLower)
     
    166167#ifndef BS3_CMN_ONLY
    167168# define Bs3CpuDetect BS3_MODE_MANGLER(Bs3CpuDetect)
    168 # define Bs3GetCpuVendor BS3_MODE_MANGLER(Bs3GetCpuVendor)
    169169# define Bs3SwitchTo32BitAndCallC BS3_MODE_MANGLER(Bs3SwitchTo32BitAndCallC)
    170170# define Bs3TestDoModes BS3_MODE_MANGLER(Bs3TestDoModes)
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-mangling-code-undef.h

    r66452 r66454  
    3838#undef Bs3ExtCtxRestore
    3939#undef Bs3ExtCtxSave
     40#undef Bs3GetCpuVendor
    4041#undef Bs3GetModeName
    4142#undef Bs3GetModeNameShortLower
     
    166167#ifndef BS3_CMN_ONLY
    167168# undef Bs3CpuDetect
    168 # undef Bs3GetCpuVendor
    169169# undef Bs3SwitchTo32BitAndCallC
    170170# undef Bs3TestDoModes
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r66452 r66454  
    15011501BS3_CMN_PROTO_STUB(const char BS3_FAR *, Bs3GetModeNameShortLower,(uint8_t bMode));
    15021502
     1503/** CPU vendors. */
     1504typedef enum BS3CPUVENDOR
     1505{
     1506    BS3CPUVENDOR_INVALID = 0,
     1507    BS3CPUVENDOR_INTEL,
     1508    BS3CPUVENDOR_AMD,
     1509    BS3CPUVENDOR_VIA,
     1510    BS3CPUVENDOR_CYRIX,
     1511    BS3CPUVENDOR_UNKNOWN,
     1512    BS3CPUVENDOR_END
     1513} BS3CPUVENDOR;
     1514
     1515/**
     1516 * Tries to detect the CPU vendor.
     1517 *
     1518 * @returns CPU vendor.
     1519 */
     1520BS3_CMN_PROTO_STUB(BS3CPUVENDOR, Bs3GetCpuVendor,(void));
     1521
    15031522/**
    15041523 * Shutdown the system, never returns.
     
    37483767extern uint16_t g_uBs3CpuDetected;
    37493768
    3750 /** CPU vendors. */
    3751 typedef 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  */
    3767 BS3_MODE_PROTO_STUB(BS3CPUVENDOR, Bs3GetCpuVendor,(void));
    3768 
    37693769/**
    37703770 * 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