Changeset 0f250f9 in mainline for arch/amd64/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/amd64/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; … … 52 52 "pushq %3\n" 53 53 "pushq %4\n" 54 "movq %5, %%rax\n" 54 55 "iretq\n" 55 56 : : 56 57 "i" (gdtselector(UDATA_DES) | PL_USER), 57 "r" ( uarg->uspace_stack+THREAD_STACK_SIZE),58 "r" (kernel_uarg->uspace_stack+THREAD_STACK_SIZE), 58 59 "r" (ipl), 59 60 "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 ); 61 65 62 66 /* Unreachable */ 63 for(;;); 67 for(;;) 68 ; 64 69 }
Note:
See TracChangeset
for help on using the changeset viewer.