/*
    Topsy.h, Copyright  (c) by Eckart Zitzler,
    Swiss Federal Institute of Technology,
    Computer Engineering and Networks Laboratory.
 
    TOPSY -- A Teachable Operating System.
             Implementation of a tiny and simple
             micro kernel for teaching purposes.
 
    For further information, please visit http://www.tik.ee.ethz.ch/~topsy
 
    This software is provided under the terms of the GNU General Public Licence.
 
    A full copy of the GNU GPL is provided in the file COPYING found in the 
    development root of Topsy.
*/
/*
	
	File:                  $Source: /home/ruf/cvs_Topsy/cvs/Topsy/Topsy/Topsy.h,v $
 	Author(s):             Eckart Zitzler
 	Affiliation:           ETH Zuerich, TIK
 	Version:               $Revision: 2922 $
 	Creation Date:         
 	Last Date of Change:   $Date: 2007-03-19 17:48:52 +0100 (Mon, 19 Mär 2007) $      by: $Author: baderma $
*/

#ifndef _TOPSY_H_
#define _TOPSY_H_

#define MMTHREADID  -1     /* Memory Manager Thread Id. */
#define TMTHREADID  -2     /* Thread Manager Thread Id. */
#define IOTHREADID  -3     /* Input/Output Manager Thread Id. */
#define IDLETHREADID -4    /* Idle Thread Id. */

#define NULL (void*) 0

typedef enum {FALSE = 0, TRUE}  Boolean;

typedef void*  Address;

typedef long int Error;

typedef long int ThreadId;       /* Kernel threads: < 0, User threads: > 1 */

typedef void* ThreadArg;
typedef void(*ThreadMainFunction)(ThreadArg);

#endif

