Changeset 9732e98 in mainline


Ignore:
Timestamp:
2009-08-08T09:30:33Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
586cd56
Parents:
121966e
Message:

Coding style fixes.

File:
1 edited

Legend:

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

    r121966e r9732e98  
    5454       
    5555        asm volatile (
    56                         "pushq %[udata_des]\n"
    57                         "pushq %[stack_size]\n"
    58                         "pushq %[ipl]\n"
    59                         "pushq %[utext_des]\n"
    60                         "pushq %[entry]\n"
    61                         "movq %[uarg], %%rax\n"
     56                "pushq %[udata_des]\n"
     57                "pushq %[stack_size]\n"
     58                "pushq %[ipl]\n"
     59                "pushq %[utext_des]\n"
     60                "pushq %[entry]\n"
     61                "movq %[uarg], %%rax\n"
    6262                       
    63                         /* %rdi is defined to hold pcb_ptr - set it to 0 */
    64                         "xorq %%rdi, %%rdi\n"
    65                         "iretq\n"
    66                         :: [udata_des] "i" (gdtselector(UDATA_DES) | PL_USER),
    67                            [stack_size] "r" (kernel_uarg->uspace_stack + THREAD_STACK_SIZE),
    68                            [ipl] "r" (ipl),
    69                            [utext_des] "i" (gdtselector(UTEXT_DES) | PL_USER),
    70                            [entry] "r" (kernel_uarg->uspace_entry),
    71                            [uarg] "r" (kernel_uarg->uspace_uarg)
    72                         : "rax"
    73                 );
     63                /* %rdi is defined to hold pcb_ptr - set it to 0 */
     64                "xorq %%rdi, %%rdi\n"
     65                "iretq\n"
     66                :: [udata_des] "i" (gdtselector(UDATA_DES) | PL_USER),
     67                   [stack_size] "r" (kernel_uarg->uspace_stack + THREAD_STACK_SIZE),
     68                   [ipl] "r" (ipl),
     69                   [utext_des] "i" (gdtselector(UTEXT_DES) | PL_USER),
     70                   [entry] "r" (kernel_uarg->uspace_entry),
     71                   [uarg] "r" (kernel_uarg->uspace_uarg)
     72                : "rax"
     73        );
    7474       
    7575        /* Unreachable */
    76         while (1);
     76        while (1)
     77                ;
    7778}
    7879
Note: See TracChangeset for help on using the changeset viewer.