Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/src/sparc32.c

    rb6b02c0 ref9a2a8  
    4949#include <syscall/syscall.h>
    5050#include <console/console.h>
     51#include <macros.h>
    5152#include <memstr.h>
     53#include <str.h>
    5254
    5355char memcpy_from_uspace_failover_address;
    5456char memcpy_to_uspace_failover_address;
    5557
    56 void arch_pre_main(void)
     58void arch_pre_main(bootinfo_t *bootinfo)
    5759{
     60        init.cnt = min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS);
     61       
     62        size_t i;
     63        for (i = 0; i < init.cnt; i++) {
     64                init.tasks[i].paddr = KA2PA(bootinfo->tasks[i].addr);
     65                init.tasks[i].size = bootinfo->tasks[i].size;
     66                str_cpy(init.tasks[i].name, CONFIG_TASK_NAME_BUFLEN,
     67                    bootinfo->tasks[i].name);
     68        }
    5869}
    5970
Note: See TracChangeset for help on using the changeset viewer.