Subversion Repositories HelenOS

Rev

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

Rev 4343 Rev 4345
Line 39... Line 39...
39
#include "asm.h"
39
#include "asm.h"
40
#include "_components.h"
40
#include "_components.h"
41
#include <printf.h>
41
#include <printf.h>
42
#include <align.h>
42
#include <align.h>
43
#include <macros.h>
43
#include <macros.h>
-
 
44
#include <string.h>
44
 
45
 
45
#include "mm.h"
46
#include "mm.h"
46
 
47
 
47
/** Kernel entry point address. */
48
/** Kernel entry point address. */
48
#define KERNEL_VIRTUAL_ADDRESS 0x80200000
49
#define KERNEL_VIRTUAL_ADDRESS 0x80200000
Line 101... Line 102...
101
        top = ALIGN_UP(top, KERNEL_PAGE_SIZE);
102
        top = ALIGN_UP(top, KERNEL_PAGE_SIZE);
102
        memcpy(((void *) KERNEL_VIRTUAL_ADDRESS) + top, components[i].start, components[i].size);
103
        memcpy(((void *) KERNEL_VIRTUAL_ADDRESS) + top, components[i].start, components[i].size);
103
        if (i > 0) {
104
        if (i > 0) {
104
            bootinfo.tasks[bootinfo.cnt].addr = ((void *) KERNEL_VIRTUAL_ADDRESS) + top;
105
            bootinfo.tasks[bootinfo.cnt].addr = ((void *) KERNEL_VIRTUAL_ADDRESS) + top;
105
            bootinfo.tasks[bootinfo.cnt].size = components[i].size;
106
            bootinfo.tasks[bootinfo.cnt].size = components[i].size;
-
 
107
            strncpy(bootinfo.tasks[bootinfo.cnt].name,
-
 
108
                components[i].name, BOOTINFO_TASK_NAME_BUFLEN);
106
            bootinfo.cnt++;
109
            bootinfo.cnt++;
107
        }
110
        }
108
        top += components[i].size;
111
        top += components[i].size;
109
        printf("done.\n");
112
        printf("done.\n");
110
    }
113
    }