Annotation of MiNT/src/basepage.h, revision 1.1.1.1

1.1       root        1: /*
                      2: 
                      3:  *     BASEPAGE.H      Definition of the basepage structure.
                      4: 
                      5:  */
                      6: 
                      7: 
                      8: 
                      9: #ifndef _BASEP_H
                     10: 
                     11: #define        _BASEP_H
                     12: 
                     13: 
                     14: 
                     15: typedef struct basep {
                     16: 
                     17:        long            p_lowtpa;       /* pointer to self (bottom of TPA) */
                     18: 
                     19:        long            p_hitpa;        /* pointer to top of TPA + 1 */
                     20: 
                     21:        long            p_tbase;        /* base of text segment */
                     22: 
                     23:        long            p_tlen;         /* length of text segment */
                     24: 
                     25:        long            p_dbase;        /* base of data segment */
                     26: 
                     27:        long            p_dlen;         /* length of data segment */
                     28: 
                     29:        long            p_bbase;        /* base of BSS segment */
                     30: 
                     31:        long            p_blen;         /* length of BSS segment */
                     32: 
                     33:        char            *p_dta;         /* pointer to current DTA */
                     34: 
                     35:        struct basep    *p_parent;      /* pointer to parent's basepage */
                     36: 
                     37:        long            p_flags;        /* memory usage flags */
                     38: 
                     39:        char            *p_env;         /* pointer to environment string */
                     40: 
                     41: /* Anything after this (except for p_cmdlin) is undocumented, reserved,
                     42: 
                     43:  * subject to change, etc. -- user programs must NOT use!
                     44: 
                     45:  */
                     46: 
                     47:        char            p_devx[6];      /* real handles of the standard devices */
                     48: 
                     49:        char            p_res2;         /* reserved */
                     50: 
                     51:        char            p_defdrv;       /* default drv */
                     52: 
                     53:        long            p_undef[17];    /* reserved space */
                     54: 
                     55:        long            p_usp;          /* a fake USP to make dLibs programs happy */
                     56: 
                     57:        char            p_cmdlin[128];  /* command line image */
                     58: 
                     59: }      BASEPAGE;
                     60: 
                     61: 
                     62: 
                     63: /* pointer to our basepage, set by compiler startup code */
                     64: 
                     65: extern BASEPAGE        *_base;
                     66: 
                     67: 
                     68: 
                     69: #endif /* _BASEP_H */
                     70: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.