Changeset 2846 for trunk/kLdr/kLdrDyld.c


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/kLdrDyld.c

    r2845 r2846  
    107107
    108108
     109/** @name The main stack.
     110 * @{ */
     111/** Indicates that the other MainStack globals have been filled in. */
     112unsigned        g_fkLdrDyldDoneMainStack = 0;
     113/** Whether the stack was allocated seperatly or was part of the executable. */
     114unsigned        g_fkLdrDyldMainStackAllocated = 0;
     115/** Pointer to the main stack object. */
     116void           *g_pvkLdrDyldMainStack = NULL;
     117/** The size of the main stack object. */
     118size_t          g_cbkLdrDyldMainStack = 0;
     119/** @} */
     120
     121
    109122/** The load stack.
    110123 * This contains frames with modules affected by active loads.
     
    186199    kLdrDyldFlags = 0;
    187200    g_szkLdrDyldError[0] = '\0';
     201
     202    g_fkLdrDyldDoneMainStack = 0;
     203    g_fkLdrDyldMainStackAllocated = 0;
     204    g_pvkLdrDyldMainStack = NULL;
     205    g_cbkLdrDyldMainStack = 0;
     206
    188207    return 0;
    189208}
     
    257276
    258277    /*
    259      * Query the stack information and go to OS specific code to
     278     * Query the stack and go to OS specific code to
    260279     * setup and switch stack. The OS specific code will call us
    261280     * back at kldrDyldDoLoadExe.
    262281     */
    263     rc = kldrDyldModGetStackInfo(pExe, &pvStack, &cbStack);
     282    rc = kldrDyldModGetMainStack(pExe, &pvStack, &cbStack);
    264283    if (rc)
    265284        kldrDyldFailure(rc, "Failed to map the executable '%s', rc=%d", pExe->pMod->pszFilename, rc);
Note: See TracChangeset for help on using the changeset viewer.