Subversion Repositories HelenOS

Rev

Rev 2787 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2787 Rev 4377
Line 31... Line 31...
31
 
31
 
32
#include "ofw.h"
32
#include "ofw.h"
33
 
33
 
34
#define TASKMAP_MAX_RECORDS 32
34
#define TASKMAP_MAX_RECORDS 32
35
 
35
 
-
 
36
/** Size of buffer for storing task name in task_t. */
-
 
37
#define BOOTINFO_TASK_NAME_BUFLEN 32
-
 
38
 
-
 
39
/** Struct holding information about single loaded task. */
36
typedef struct {
40
typedef struct {
-
 
41
    /** Address where the task was placed. */
37
    void *addr;
42
    void *addr;
-
 
43
    /** Size of the task's binary. */
38
    unsigned int size;
44
    unsigned int size;
-
 
45
    /** Task name. */
-
 
46
    char name[BOOTINFO_TASK_NAME_BUFLEN];
39
} task_t;
47
} task_t;
40
 
48
 
41
typedef struct {
49
typedef struct {
42
    unsigned int count;
50
    unsigned int count;
43
    task_t tasks[TASKMAP_MAX_RECORDS];
51
    task_t tasks[TASKMAP_MAX_RECORDS];
Line 45... Line 53...
45
 
53
 
46
typedef struct {
54
typedef struct {
47
    memmap_t memmap;
55
    memmap_t memmap;
48
    taskmap_t taskmap;
56
    taskmap_t taskmap;
49
    screen_t screen;
57
    screen_t screen;
50
    keyboard_t keyboard;
58
    macio_t macio;
51
} bootinfo_t;
59
} bootinfo_t;
52
 
60
 
53
extern void start(void);
61
extern void start(void);
54
extern void bootstrap(void);
62
extern void bootstrap(void);
55
 
63