this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix i386 Process Crashing When Calling "syscall(...)"

Based off of 98bc803. Added in "#ifdef DARLING" to make it clear that this is a Darling specific change.

Thomas A d5a3aef3 fabc6311

+12
+6
src/kernel/libsyscall/bsdsyscalls/___syscall.S
··· 37 37 pushl %ecx 38 38 UNIX_SYSCALL_TRAP 39 39 movl (%esp),%edx // add one element to stack so 40 + #ifdef DARLING 41 + // Pushing ecx will cause a i386 process 42 + // that calls syscall(...) to crash. 43 + pushl %edx 44 + #else 40 45 pushl %ecx // caller "pop" will work 46 + #endif 41 47 jnb 2f 42 48 BRANCH_EXTERN(tramp_cerror) 43 49 2:
+6
src/kernel/libsyscall/custom/__syscall.S
··· 37 37 pushl %ecx 38 38 UNIX_SYSCALL_TRAP 39 39 movl (%esp),%edx // add one element to stack so 40 + #ifdef DARLING 41 + // Pushing ecx will cause a i386 process 42 + // that calls syscall(...) to crash. 43 + pushl %edx 44 + #else 40 45 pushl %ecx // caller "pop" will work 46 + #endif 41 47 jnb 2f 42 48 BRANCH_EXTERN(tramp_cerror) 43 49 2: