Changeset 2846 for trunk/kLdr/kLdr.h


Ignore:
Timestamp:
Nov 1, 2006, 7:26:35 PM (19 years ago)
Author:
bird
Message:

nearly done with kLdrDyldMod.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdr.h

    r2845 r2846  
    269269{
    270270    /** The base address of the stack (sub) segment, link address.
    271      * Set this to ~(uintptr_t)0 if the module doesn't include any stack (sub)segment. */
     271     * Set this to ~(uintmax_t)0 if the module doesn't include any stack (sub)segment. */
    272272    uintmax_t           uLinkAddress;
    273273    /** The base address of the stack (sub) segment, actual load address.
    274      * Set this to ~(uintptr_t)0 if the module doesn't include any stack (sub)segment or if
     274     * Set this to ~(uintmax_t)0 if the module doesn't include any stack (sub)segment or if
    275275     * the module isn't mapped (loaded) yet. */
    276276    uintmax_t           uLoadAddress;
     
    560560int     kLdrModOpenNative(const char *pszFilename, PPKLDRMOD ppMod);
    561561int     kLdrModClose(PKLDRMOD pMod);
    562 int     kLdrModGetSymbol(PKLDRMOD pMod, const void *pvBits, uintmax_t BaseAddress, const char *pszSymbol, uintmax_t *pValue, uint32_t *pfKind);
     562int     kLdrModQuerySymbol(PKLDRMOD pMod, const void *pvBits, uintmax_t BaseAddress, const char *pszSymbol, uintmax_t *pValue, uint32_t *pfKind);
    563563int     kLdrModEnumSymbols(PKLDRMOD pMod, unsigned fFlags, const void *pvBits, uintmax_t BaseAddress, PFNKLDRMODENUMSYMS pfnCallback, void *pvUser);
    564564int     kLdrModEnumImportModules(PKLDRMOD pMod, unsigned fFlags, const void *pvBits, FNKLDRMODENUMIMPMODS pfnCallback, void *pvUser);
     
    571571int     kLdrModCanExecuteOn(PKLDRMOD pMod, KLDRARCH enmArch, KLDRCPU enmCpu);
    572572int     kLdrModGetStackInfo(PKLDRMOD pMod, PKLDRSTACKINFO pStackInfo);
     573int     kLdrModQueryMainEntrypoint(PKLDRMOD pMod, void *pvBits, uintmax_t uBaseAddress, uintmax_t *puValue);
     574int     kLdrModAllocTLS(PKLDRMOD pMod);
     575int     kLdrModFreeTLS(PKLDRMOD pMod);
     576int     kLdrModReload(PKLDRMOD pMod);
     577int     kLdrModCallInit(PKLDRMOD pMod);
     578int     kLdrModCallTerm(PKLDRMOD pMod);
     579int     kLdrModCallThread(PKLDRMOD pMod, unsigned fAttachingOrDetaching);
    573580
    574581/** @} */
     
    771778/** Prerequisite recursed too deeply. */
    772779#define KLDR_ERR_PREREQUISITE_RECURSED_TOO_DEEPLY           (KLDR_ERR_BASE + 43)
    773 
     780/** Failed to allocate the main stack. */
     781#define KLDR_ERR_MAIN_STACK_ALLOC_FAILED                    (KLDR_ERR_BASE + 44)
     782/** Buffer overflow. */
     783#define KLDR_ERR_BUFFER_OVERFLOW                            (KLDR_ERR_BASE + 45)
    774784
    775785/** Encountered a bad fixup. */
Note: See TracChangeset for help on using the changeset viewer.