File:  [Atari MiNT] / MiNT / src / basepage.h
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:57:19 2018 UTC (8 years, 1 month ago) by root
Branches: mint, MAIN
CVS tags: mint112, mint110, mint108, HEAD
MiNT 1.08

/*

 *	BASEPAGE.H	Definition of the basepage structure.

 */



#ifndef _BASEP_H

#define	_BASEP_H



typedef struct basep {

	long		p_lowtpa;	/* pointer to self (bottom of TPA) */

	long		p_hitpa;	/* pointer to top of TPA + 1 */

	long		p_tbase;	/* base of text segment */

	long		p_tlen;		/* length of text segment */

	long		p_dbase;	/* base of data segment */

	long		p_dlen;		/* length of data segment */

	long		p_bbase;	/* base of BSS segment */

	long		p_blen;		/* length of BSS segment */

	char		*p_dta;		/* pointer to current DTA */

	struct basep	*p_parent;	/* pointer to parent's basepage */

	long		p_flags;	/* memory usage flags */

	char		*p_env;		/* pointer to environment string */

/* Anything after this (except for p_cmdlin) is undocumented, reserved,

 * subject to change, etc. -- user programs must NOT use!

 */

	char		p_devx[6];	/* real handles of the standard devices */

	char		p_res2;		/* reserved */

	char		p_defdrv;	/* default drv */

	long		p_undef[17];    /* reserved space */

	long		p_usp;		/* a fake USP to make dLibs programs happy */

	char		p_cmdlin[128];	/* command line image */

}	BASEPAGE;



#if defined(__TURBOC__) && !defined(__MINT__)

# include <basepage.h>

# define _base (BASEPAGE *)(_BasPag)

#else

/* pointer to our basepage, set by compiler startup code */

extern	BASEPAGE	*_base;

#endif



#endif /* _BASEP_H */


unix.superglobalmegacorp.com

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