Changeset 361 for trunk/hal


Ignore:
Timestamp:
Aug 10, 2017, 11:30:53 AM (7 years ago)
Author:
max@…
Message:

Pass the function argument to the new thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_context.c

    r360 r361  
    6767         */
    6868        tf = &ctx->ctx_hidden_tf;
     69        tf->tf_rdi = (uint64_t)thread->entry_args;
    6970        tf->tf_gs = GDT_FIXED_SEL(GDT_UDATA_SEL, SEL_UPL);
    7071        tf->tf_fs = GDT_FIXED_SEL(GDT_UDATA_SEL, SEL_UPL);
Note: See TracChangeset for help on using the changeset viewer.