Subversion Repositories shark

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
 
22
/**
23
 ------------
38 pj 24
 CVS :        $Id: dummy.h,v 1.2 2003-01-07 17:12:20 pj Exp $
2 pj 25
 
26
 File:        $File$
38 pj 27
 Revision:    $Revision: 1.2 $
28
 Last update: $Date: 2003-01-07 17:12:20 $
2 pj 29
 ------------
30
 
31
 This file contains the scheduling module RR (Round Robin)
32
 
33
 Title:
34
   DUMMY
35
 
36
 Task Models Accepted:
37
   DUMMY_TASK_MODEL - Dummy process (not usable)
38
 
39
 Description:
40
   This module creates the dummy task, witch is a special task that
41
   do nothing.
42
 
43
 Exceptions raised:
44
   XUNVALID_GUEST
45
     This level doesn't support guests. When a guest operation
46
     is called, the exception is raised.
47
   XUNVALID_DUMMY_OP
48
     The dummy task can't be created, or activated, and so on...
49
 
50
 Restrictions & special features:
51
   - the task model DUMMY_TASK_MODEL can be used only at init time
52
     to register the dummy process into the system.
53
   - if __HLT_WORKS__ defined in this header file, the dummy task can
54
     perform a hlt istruction to save power...
55
 
56
**/
57
 
58
/*
59
 * Copyright (C) 2000 Paolo Gai
60
 *
61
 * This program is free software; you can redistribute it and/or modify
62
 * it under the terms of the GNU General Public License as published by
63
 * the Free Software Foundation; either version 2 of the License, or
64
 * (at your option) any later version.
65
 *
66
 * This program is distributed in the hope that it will be useful,
67
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
68
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
69
 * GNU General Public License for more details.
70
 *
71
 * You should have received a copy of the GNU General Public License
72
 * along with this program; if not, write to the Free Software
73
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
74
 *
75
 */
76
 
77
 
78
#ifndef __DUMMY_H__
79
#define __DUMMY_H__
80
 
38 pj 81
#include <kernel/types.h>
82
 
2 pj 83
/*+
84
 On upper Intel CPUs it is possible to avoid CPU power consumption
85
 when the system is idle issuing the hlt instruction.
86
 This is often available on many 32 bit CPUs...
87
 If it is, simply define the following!!!
88
+*/
89
#define  __HLT_WORKS__
90
 
38 pj 91
/*+ Registration function
2 pj 92
 
38 pj 93
    returns the level number at which the module has been registered.
94
+*/
95
LEVEL dummy_register_level();
96
 
2 pj 97
#endif