Changeset 281b607 in mainline for arch/ia32/src/userspace.c


Ignore:
Timestamp:
2006-03-23T10:29:39Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0bb10ef
Parents:
9aa72b4
Message:

Added basic kernel infrastructure for ThreadLocalStorage(TLS) for
ia32(complete),amd64(complete),mips32(missing emulation of rdhwr instruction).

File:
1 edited

Legend:

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

    r9aa72b4 r281b607  
    5656                "popfl\n"
    5757
     58                /* Set up GS register (TLS) */
     59                "movl %6, %%gs\n"
     60
    5861                "pushl %0\n"
    5962                "pushl %1\n"
     
    6669                : "i" (selector(UDATA_DES) | PL_USER), "r" (kernel_uarg->uspace_stack+THREAD_STACK_SIZE),
    6770                  "r" (ipl), "i" (selector(UTEXT_DES) | PL_USER), "r" (kernel_uarg->uspace_entry),
    68                   "r" (kernel_uarg->uspace_uarg)
     71                "r" (kernel_uarg->uspace_uarg),
     72                "r" (selector(TLS_DES))
    6973                : "eax");
    7074       
Note: See TracChangeset for help on using the changeset viewer.