Subversion Repositories HelenOS

Rev

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

Rev 3985 Rev 3987
Line 36... Line 36...
36
#include <arch/boot/boot.h>
36
#include <arch/boot/boot.h>
37
#include <arch/boot/cboot.h>
37
#include <arch/boot/cboot.h>
38
#include <arch/boot/memmap.h>
38
#include <arch/boot/memmap.h>
39
#include <config.h>
39
#include <config.h>
40
#include <memstr.h>
40
#include <memstr.h>
-
 
41
#include <func.h>
41
 
42
 
42
/* This is a symbol so the type is only dummy. Obtain the value using &. */
43
/* This is a symbol so the type is only dummy. Obtain the value using &. */
43
extern int _hardcoded_unmapped_size;
44
extern int _hardcoded_unmapped_size;
44
 
45
 
45
/** C part of ia32 boot sequence.
46
/** C part of ia32 boot sequence.
Line 66... Line 67...
66
        mods = mi->mods_addr;
67
        mods = mi->mods_addr;
67
 
68
 
68
        for (i = 0; i < init.cnt; i++) {
69
        for (i = 0; i < init.cnt; i++) {
69
            init.tasks[i].addr = mods[i].start + 0x80000000;
70
            init.tasks[i].addr = mods[i].start + 0x80000000;
70
            init.tasks[i].size = mods[i].end - mods[i].start;
71
            init.tasks[i].size = mods[i].end - mods[i].start;
-
 
72
 
-
 
73
            /* Copy command line, if available. */
-
 
74
            if (mods[i].string) {
-
 
75
                strncpy(init.tasks[i].name, mods[i].string,
-
 
76
                    CONFIG_TASK_NAME_BUFLEN - 1);
-
 
77
                init.tasks[i].name[CONFIG_TASK_NAME_BUFLEN - 1]
-
 
78
                    = '\0';
-
 
79
            } else {
-
 
80
                init.tasks[i].name[0] = '\0';
-
 
81
            }
71
        }
82
        }
72
    } else {
83
    } else {
73
        init.cnt = 0;
84
        init.cnt = 0;
74
    }
85
    }
75
 
86