/*
  TMHal.h, Copyright  (c) by Sebi Ryffel,
  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/Threads/ia32/TMHal.h,v $
 	Author(s):             Sebi Ryffel
 	Affiliation:           ETH Zuerich, TIK
 	Version:               $Revision: 3027 $
 	Creation Date:         
 	Last Date of Change:   $Date: 2007-05-14 18:35:24 +0200 (Mon, 14 Mai 2007) $      by: $Author: sryffel $
*/

#include "TMHal.h"

#if 0
/*
 * CPU represents a Processor of the System 
 */
typedef struct CPU_t
{
  TSSPtr tss;
  unsigned short apic_id;   /* The APIC ID of the CPU */
}
CPU;
typedef CPU* CPUPtr;
#endif

int tmGetCpuId(void);
TSSPtr tmGetTSSPtr(int cpuId);
int tmGetCpuCount(void);

