Subversion Repositories shark

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
961 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
 ------------
24
 CVS :        $Id: dummy.h,v 1.1 2005-02-25 10:55:09 pj Exp $
25
 
26
 File:        $File$
27
 Revision:    $Revision: 1.1 $
28
 Last update: $Date: 2005-02-25 10:55:09 $
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
 
81
#include <kernel/types.h>
82
#include "ll/sys/cdefs.h"
83
 
84
__BEGIN_DECLS
85
 
86
/*+
87
 On upper Intel CPUs it is possible to avoid CPU power consumption
88
 when the system is idle issuing the hlt instruction.
89
 This is often available on many 32 bit CPUs...
90
 If it is, simply define the following!!!
91
+*/
92
#define  __HLT_WORKS__
93
 
94
/*+ Registration function
95
 
96
    returns the level number at which the module has been registered.
97
+*/
98
LEVEL dummy_register_level();
99
 
100
__END_DECLS
101
#endif