VirtualBox

Ignore:
Timestamp:
Nov 21, 2022 11:13:29 AM (2 years ago)
Author:
vboxsync
Message:

ValKit/bs3kit: Added Bs3SelSetupGate and Bs3SelSetupGate64 for setting up call gates and such. bugref:9898

File:
1 edited

Legend:

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

    r97613 r97624  
    19951995BS3_CMN_PROTO_STUB(void, Bs3SelSetup32BitCode,(X86DESC BS3_FAR *pDesc, uint32_t uBaseAddr, uint32_t uLimit, uint8_t bDpl));
    19961996
     1997/**
     1998 * Sets up a 16-bit or 32-bit gate descriptor.
     1999 *
     2000 * This can be used both for GDT/LDT and IDT.
     2001 *
     2002 * @param   pDesc       Pointer to the descriptor table entry.
     2003 * @param   bType       The gate type.
     2004 * @param   bDpl        The gate DPL.
     2005 * @param   uSel        The gate selector value.
     2006 * @param   off         The gate IP/EIP value.
     2007 * @param   cParams     Number of parameters to copy if call-gate.
     2008 */
     2009BS3_CMN_PROTO_STUB(void, Bs3SelSetupGate,(X86DESC BS3_FAR *pDesc, uint8_t bType, uint8_t bDpl,
     2010                                          uint16_t uSel, uint32_t off, uint8_t cParams));
     2011
     2012/**
     2013 * Sets up a 64-bit gate descriptor.
     2014 *
     2015 * This can be used both for GDT/LDT and IDT.
     2016 *
     2017 * @param   pDescPair   Pointer to the _two_ descriptor table entries.
     2018 * @param   bType       The gate type.
     2019 * @param   bDpl        The gate DPL.
     2020 * @param   uSel        The gate selector value.
     2021 * @param   off         The gate IP/EIP value.
     2022 */
     2023BS3_CMN_PROTO_STUB(void, Bs3SelSetupGate64,(X86DESC BS3_FAR *pDescPair, uint8_t bType, uint8_t bDpl, uint16_t uSel, uint64_t off));
     2024
    19972025
    19982026/**
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