Changeset 0f250f9 in mainline for arch/amd64/src/userspace.c


Ignore:
Timestamp:
2006-03-17T18:07:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
69f293e
Parents:
6c6a19e6
Message:

Improved uspace threads.
ia64 needs fixing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/src/userspace.c

    r6c6a19e6 r0f250f9  
    3131#include <arch/types.h>
    3232#include <arch.h>
    33 #include <proc/thread.h>
     33#include <proc/uarg.h>
    3434#include <mm/as.h>
    3535
     
    4040 *
    4141 */
    42 void userspace(uspace_arg_t *uarg)
     42void userspace(uspace_arg_t *kernel_uarg)
    4343{
    4444        ipl_t ipl;
     
    5252                          "pushq %3\n"
    5353                          "pushq %4\n"
     54                          "movq %5, %%rax\n"
    5455                          "iretq\n"
    5556                          : :
    5657                          "i" (gdtselector(UDATA_DES) | PL_USER),
    57                           "r" (uarg->uspace_stack+THREAD_STACK_SIZE),
     58                          "r" (kernel_uarg->uspace_stack+THREAD_STACK_SIZE),
    5859                          "r" (ipl),
    5960                          "i" (gdtselector(UTEXT_DES) | PL_USER),
    60                           "r" (uarg->uspace_entry));
     61                          "r" (kernel_uarg->uspace_entry),
     62                          "r" (kernel_uarg->uspace_uarg)
     63                          : "rax"
     64                          );
    6165       
    6266        /* Unreachable */
    63         for(;;);
     67        for(;;)
     68                ;
    6469}
Note: See TracChangeset for help on using the changeset viewer.