Changeset 2846 for trunk/kLdr/kLdrDyld.c
- Timestamp:
- Nov 1, 2006, 7:26:35 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/kLdrDyld.c
r2845 r2846 107 107 108 108 109 /** @name The main stack. 110 * @{ */ 111 /** Indicates that the other MainStack globals have been filled in. */ 112 unsigned g_fkLdrDyldDoneMainStack = 0; 113 /** Whether the stack was allocated seperatly or was part of the executable. */ 114 unsigned g_fkLdrDyldMainStackAllocated = 0; 115 /** Pointer to the main stack object. */ 116 void *g_pvkLdrDyldMainStack = NULL; 117 /** The size of the main stack object. */ 118 size_t g_cbkLdrDyldMainStack = 0; 119 /** @} */ 120 121 109 122 /** The load stack. 110 123 * This contains frames with modules affected by active loads. … … 186 199 kLdrDyldFlags = 0; 187 200 g_szkLdrDyldError[0] = '\0'; 201 202 g_fkLdrDyldDoneMainStack = 0; 203 g_fkLdrDyldMainStackAllocated = 0; 204 g_pvkLdrDyldMainStack = NULL; 205 g_cbkLdrDyldMainStack = 0; 206 188 207 return 0; 189 208 } … … 257 276 258 277 /* 259 * Query the stack informationand go to OS specific code to278 * Query the stack and go to OS specific code to 260 279 * setup and switch stack. The OS specific code will call us 261 280 * back at kldrDyldDoLoadExe. 262 281 */ 263 rc = kldrDyldModGet StackInfo(pExe, &pvStack, &cbStack);282 rc = kldrDyldModGetMainStack(pExe, &pvStack, &cbStack); 264 283 if (rc) 265 284 kldrDyldFailure(rc, "Failed to map the executable '%s', rc=%d", pExe->pMod->pszFilename, rc);
Note:
See TracChangeset
for help on using the changeset viewer.