Changeset 2293 in kBuild for trunk/src/kash/shforkA-win.asm
- Timestamp:
- Feb 28, 2009 7:25:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shforkA-win.asm
r2292 r2293 32 32 %define NAME(name) _ %+ name 33 33 %endif 34 35 ;; The stack size. This is also defined in shfork-win.c. 36 %define SHFORK_STACK_SIZE (1*1024*1024) 34 37 35 38 … … 108 111 mov [gs:08h], rax 109 112 .below: 110 lea r9, [rax - 1*1024*1024]113 lea r9, [rax - SHFORK_STACK_SIZE] 111 114 cmp r9, r11 112 115 ja .above … … 132 135 mov [fs:04h], rax 133 136 .below: 134 lea edx, [eax - 1*1024*1024]137 lea edx, [eax - SHFORK_STACK_SIZE] 135 138 cmp edx, ecx 136 139 ja .above … … 175 178 ;; 176 179 ; sh_fork() worker 180 ; 181 ; @returns See fork(). 182 ; @param psh 177 183 ; 178 184 NAME(shfork_do_it): … … 230 236 ; 231 237 %ifdef KBUILD_ARCH_AMD64 232 mov rcx, rsp 233 %else 234 mov ecx, esp 238 ;mov rcx, rcx ; psh 239 mov rdx, rsp ; stack_ptr 240 sub rsp, 20h 241 call NAME(shfork_body) 242 lea rsp, [rsp + 20h] 243 %else 244 mov edx, esp 245 mov ecx, [ebp + 8h] ; psh 235 246 sub esp, 20h 236 mov [esp ], ecx237 %endif 247 mov [esp ], edx 248 mov [esp + 4], ecx ; stack_ptr 238 249 call NAME(shfork_body) 239 %ifdef KBUILD_ARCH_AMD64240 250 lea esp, [esp + 20h] 241 251 %endif
Note:
See TracChangeset
for help on using the changeset viewer.