Subversion Repositories HelenOS

Rev

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

Rev 4343 Rev 4345
Line 28... Line 28...
28
 
28
 
29
#include "main.h" 
29
#include "main.h" 
30
#include <printf.h>
30
#include <printf.h>
31
#include <align.h>
31
#include <align.h>
32
#include <macros.h>
32
#include <macros.h>
-
 
33
#include <string.h>
33
#include "msim.h"
34
#include "msim.h"
34
#include "asm.h"
35
#include "asm.h"
35
#include "_components.h"
36
#include "_components.h"
36
 
37
 
37
#define KERNEL_VIRTUAL_ADDRESS 0x80100000
38
#define KERNEL_VIRTUAL_ADDRESS 0x80100000
Line 82... Line 83...
82
        top = ALIGN_UP(top, PAGE_SIZE);
83
        top = ALIGN_UP(top, PAGE_SIZE);
83
        memcpy(((void *) KERNEL_VIRTUAL_ADDRESS) + top, components[i].start, components[i].size);
84
        memcpy(((void *) KERNEL_VIRTUAL_ADDRESS) + top, components[i].start, components[i].size);
84
        if (i > 0) {
85
        if (i > 0) {
85
            bootinfo.tasks[bootinfo.cnt].addr = ((void *) KERNEL_VIRTUAL_ADDRESS) + top;
86
            bootinfo.tasks[bootinfo.cnt].addr = ((void *) KERNEL_VIRTUAL_ADDRESS) + top;
86
            bootinfo.tasks[bootinfo.cnt].size = components[i].size;
87
            bootinfo.tasks[bootinfo.cnt].size = components[i].size;
-
 
88
            strncpy(bootinfo.tasks[bootinfo.cnt].name,
-
 
89
                components[i].name, BOOTINFO_TASK_NAME_BUFLEN);
87
            bootinfo.cnt++;
90
            bootinfo.cnt++;
88
        }
91
        }
89
        top += components[i].size;
92
        top += components[i].size;
90
        printf("done.\n");
93
        printf("done.\n");
91
    }
94
    }