Subversion Repositories HelenOS

Rev

Rev 3386 | Rev 4263 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3386 Rev 4153
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup generic
29
/** @addtogroup generic
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
Line 36... Line 36...
36
#define KERN_CONFIG_H_
36
#define KERN_CONFIG_H_
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
39
#include <arch/mm/page.h>
39
#include <arch/mm/page.h>
40
 
40
 
41
#define STACK_SIZE      PAGE_SIZE
41
#define STACK_SIZE  PAGE_SIZE
42
 
42
 
43
#define CONFIG_INIT_TASKS   32
43
#define CONFIG_INIT_TASKS   32
-
 
44
 
-
 
45
#define CONFIG_TASK_NAME_BUFLEN 32
44
 
46
 
45
typedef struct {
47
typedef struct {
46
    uintptr_t addr;
48
    uintptr_t addr;
47
    size_t size;
49
    size_t size;
-
 
50
    char name[CONFIG_TASK_NAME_BUFLEN];
48
} init_task_t;
51
} init_task_t;
49
 
52
 
50
typedef struct {
53
typedef struct {
51
    count_t cnt;
54
    count_t cnt;
52
    init_task_t tasks[CONFIG_INIT_TASKS];
55
    init_task_t tasks[CONFIG_INIT_TASKS];
Line 61... Line 64...
61
    uintptr_t base;
64
    uintptr_t base;
62
    size_t size;
65
    size_t size;
63
} ballocs_t;
66
} ballocs_t;
64
 
67
 
65
typedef struct {
68
typedef struct {
66
    count_t cpu_count;      /**< Number of processors detected. */
69
    count_t cpu_count;            /**< Number of processors detected. */
67
    volatile count_t cpu_active;    /**< Number of processors that are up and running. */
70
    volatile count_t cpu_active;  /**< Number of processors that are up and running. */
68
 
71
   
69
    uintptr_t base;
72
    uintptr_t base;
70
    size_t kernel_size;     /**< Size of memory in bytes taken by kernel and stack */
73
    size_t kernel_size;           /**< Size of memory in bytes taken by kernel and stack */
71
   
74
   
72
    uintptr_t stack_base;       /**< Base adddress of initial stack */
75
    uintptr_t stack_base;         /**< Base adddress of initial stack */
73
    size_t stack_size;      /**< Size of initial stack */
76
    size_t stack_size;            /**< Size of initial stack */
74
} config_t;
77
} config_t;
75
 
78
 
76
extern config_t config;
79
extern config_t config;
77
extern init_t init;
80
extern init_t init;
78
extern ballocs_t ballocs;
81
extern ballocs_t ballocs;