Ignore:
Timestamp:
Sep 27, 2001, 5:04:12 AM (24 years ago)
Author:
bird
Message:

Varible mappings. And some minor fixing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/kKrnlLib/include/OS2KLDR.h

    r6815 r6837  
    1 /* $Id: OS2KLDR.h,v 1.2 2001-09-26 03:52:35 bird Exp $
     1/* $Id: OS2KLDR.h,v 1.3 2001-09-27 03:04:12 bird Exp $
    22 *
    33 * OS/2 kernel Loader Stuff.
     
    225225*   Global Variables                                                           *
    226226*******************************************************************************/
     227#ifndef KKRNLLIB
     228    #if defined(__IBMC__) || defined(__IBMCPP__)
     229        #pragma map(LdrLibPath, "_LdrLibPath")
     230        #pragma map(mte_h     , "_mte_h")
     231        #pragma map(program_h , "_program_h")
     232        #pragma map(program_l , "_program_l")
     233        #pragma map(global_h  , "_global_h")
     234        #pragma map(global_l  , "_global_l")
     235        #pragma map(specific_h, "_specific_h")
     236        #pragma map(specific_l, "_specific_l")
     237        #pragma map(LdrSem,     "_LdrSem")
     238        #pragma map(ldrpFileNameBuf, "_ldrpFileNameBuf")
     239    #else
     240        #pragma LdrLibPath       _LdrLibPath
     241        #pragma mte_h            _mte_h
     242        #pragma program_h        _program_h
     243        #pragma program_l        _program_l
     244        #pragma global_h         _global_h
     245        #pragma global_l         _global_l
     246        #pragma specific_h       _specific_h
     247        #pragma specific_l       _specific_l
     248        #pragma LdrSem           _LdrSem
     249        #pragma ldrpFileNameBuf  _ldrpFileNameBuf
     250    #endif
     251#endif
     252
    227253#ifdef KKRNLLIB
    228254extern PSZ*    pLdrLibPath;             /* Pointer to the libpath pointer. */
     
    244270extern PMTE    specific_l;
    245271#endif
     272
     273/*
     274 * Pointer to the loader semaphore.
     275 */
     276#ifdef _OS2KSEM_h_
     277#ifdef KKRNLLIB
     278extern PKSEMMTX    pLdrSem;
     279#else
     280extern KSEMMTX     LdrSem;
     281#endif
     282#endif
     283
     284/**
     285 * Pointer to the loader filename buffer.
     286 * Upon return from ldrOpen (and ldrOpenPath which calls ldrOpen) this is
     287 * set to the fully qualified filename of the file last opened (successfully).
     288 */
     289#ifdef KKRNLLIB
     290extern PSZ *    pldrpFileNameBuf;
     291#define ldrpFileNameBuf (*pldrpFileNameBuf)
     292#else
     293extern PSZ      ldrpFileNameBuf;
     294#endif
     295
    246296
    247297/*******************************************************************************
     
    470520 * @sketch
    471521 */
    472 #ifdef _ptda_h_
     522#ifdef _OS2KPTDA_h_
    473523ULONG LDRCALL ldrWasLoadModuled(        /* retd 0x0c */
    474524    HMTE        hmte,                   /* ebp + 0x08 */
     
    530580
    531581
    532 /*
    533  * Pointer to the loader semaphore.
    534  */
    535 #ifdef _OS2KSEM_h_
    536 #ifdef KKRNLLIB
    537 extern PKSEMMTX    pLdrSem;
    538 #else
    539 extern KSEMMTX     LdrSem;
    540 #endif
    541 #endif
    542 
    543 
    544582/**
    545583 * Validates an hMTE and gets the MTE pointer.
     
    656694 * @param   pPTDA   Pointer to per task data area of the task to be freed.
    657695 */
     696#ifdef _OS2KPTDA_h_
    658697extern void LDRCALL     LDRFreeTask(PPTDA pPTDA);
    659698extern void LDRCALL     OrgLDRFreeTask(PPTDA pPTDA);
    660 
    661 
    662 /**
    663  * Pointer to the loader filename buffer.
    664  * Upon return from ldrOpen (and ldrOpenPath which calls ldrOpen) this is
    665  * set to the fully qualified filename of the file last opened (successfully).
    666  */
    667 #ifdef KKRNLLIB
    668 extern PSZ *    pldrpFileNameBuf;
    669 #define ldrpFileNameBuf (*pldrpFileNameBuf)
    670 #else
    671 extern PSZ      ldrpFileNameBuf;
    672699#endif
    673700
Note: See TracChangeset for help on using the changeset viewer.