Changeset 0f250f9 in mainline for arch/ia32/src/userspace.c
- Timestamp:
- 2006-03-17T18:07:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 69f293e
- Parents:
- 6c6a19e6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/userspace.c
r6c6a19e6 r0f250f9 31 31 #include <arch/types.h> 32 32 #include <arch.h> 33 #include <proc/ thread.h>33 #include <proc/uarg.h> 34 34 #include <mm/as.h> 35 35 … … 40 40 * 41 41 */ 42 void userspace(uspace_arg_t * uarg)42 void userspace(uspace_arg_t *kernel_uarg) 43 43 { 44 44 ipl_t ipl; … … 47 47 48 48 __asm__ volatile ( 49 /* CLNT */ 49 /* 50 * Clear nested task flag. 51 */ 50 52 "pushfl\n" 51 53 "pop %%eax\n" 52 "and $0xffffbfff, %%eax\n"54 "and $0xffffbfff, %%eax\n" 53 55 "push %%eax\n" 54 56 "popfl\n" … … 59 61 "pushl %3\n" 60 62 "pushl %4\n" 63 "movl %5, %%eax\n" 61 64 "iret" 62 65 : 63 : "i" (selector(UDATA_DES) | PL_USER), "r" (uarg->uspace_stack+THREAD_STACK_SIZE), 64 "r" (ipl), "i" (selector(UTEXT_DES) | PL_USER), "r" (uarg->uspace_entry) 66 : "i" (selector(UDATA_DES) | PL_USER), "r" (kernel_uarg->uspace_stack+THREAD_STACK_SIZE), 67 "r" (ipl), "i" (selector(UTEXT_DES) | PL_USER), "r" (kernel_uarg->uspace_entry), 68 "r" (kernel_uarg->uspace_uarg) 65 69 : "eax"); 66 70
Note:
See TracChangeset
for help on using the changeset viewer.