Changeset 758
- Timestamp:
- 07/09/08 15:24:41 (5 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/fs/arch/i386/kernel/process.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/fs/arch/i386/kernel/process.c
r587 r758 95 95 *--currP=(DWORD)argument; 96 96 97 /* The thread returns to the exit code page upon finishing. */ 97 98 *--currP=exitCode; 98 99 ret->esp3=(DWORD)currP; … … 108 109 int i; 109 110 110 /* Allocate the stacks needed*/111 /* Allocate the kernel stack. */ 111 112 ret->currStack=(DWORD)MemAlloc(ARCH_STACK_SIZE); 112 ret->currStack+=ARCH_STACK_SIZE; /* Needs to be shared, can't be in it's own process */113 ret->currStack+=ARCH_STACK_SIZE; 113 114 ret->entry=entry; /* eip */ 114 115 … … 117 118 118 119 currP=(DWORD*)(ret->currStack); 120 121 /* Push the given argument on the kernel stack if this is not a user thread. */ 122 if (!user) 123 if (argument != ((void*)-1)) 124 { 125 *--currP=(DWORD)argument; 126 *--currP=0; 127 } 119 128 120 129 /* Is a kernel thread? */