/*
 * memory.i86  -  DOS memory control block definitions
 *
 * Copyright (C) 1995-2007 Gero Kuhlmann <gero@gkminix.han.de>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * $Id: memory.i86,v 1.5 2007/01/06 18:30:53 gkminix Exp $
 *
 */

#ifndef DOS_MEMORY_I86
#define DOS_MEMORY_I86


/*
 * This file can only get included into target assembler source files.
 */
#define GAS_INCLUDE
#include <compiler.h>



/*
 * A memory control block precedes every memory block in the lower ram
 * area. If the owner address is 0, the memory block is free.
 *
 */
			.struct	0
mcb_id:			.struct	.+1	/* ID of control block (see below) */
mcb_owner:		.struct	.+2	/* pointer to PSP of owner process */
mcb_size:		.struct	.+2	/* size in paragraphs */


/*
 * MCB id codes:
 */

#define	MCB_MEM_ID	0x4D		/* indicates valid memory block */
#define	MCB_END_ID	0x5A		/* indicates last memory block */


#endif

