Changeset 649799a in mainline


Ignore:
Timestamp:
2006-03-15T23:24:26Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c23502d
Parents:
9a2d6e1
Message:

Fix bug that made task_run_program to always run init.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/task.c

    r9a2d6e1 r649799a  
    3838#include <adt/list.h>
    3939#include <ipc/ipc.h>
    40 #include <ipc/ns.h>
    4140#include <memstr.h>
    4241
     
    111110        as = as_create(0);
    112111
    113         rc = elf_load((elf_header_t *) config.init_addr, as);
     112        rc = elf_load((elf_header_t *) program_addr, as);
    114113        if (rc != EE_OK) {
    115114                as_free(as);
     
    118117       
    119118        task = task_create(as);
    120         t = thread_create(uinit, (void *)((elf_header_t *) config.init_addr)->e_entry,
     119        t = thread_create(uinit, (void *)((elf_header_t *)program_addr)->e_entry,
    121120                          task, THREAD_USER_STACK);
    122121       
Note: See TracChangeset for help on using the changeset viewer.