this repo has no description
1
fork

Configure Feed

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

Support the use of the new kernel psynch code

...but don't enable it. It's broken at the moment.

+8
+8
src/kernel/emulation/linux/psynch/psynch_errno.c
··· 1 1 #include "../errno.h" 2 2 3 + #ifndef USE_NEW_PSYNC_CODE 4 + #define USE_NEW_PSYNC_CODE 0 5 + #endif 6 + 3 7 // psynch syscalls send back extra bits and leave only the bottom 8 bits for errors 4 8 // So we have to filter out the top 24 bits, translate errno and put the 24 bits back. 5 9 int psynch_errno(int rv) ··· 10 14 11 15 rv = -rv; 12 16 top = rv & 0xffffff00; 17 + #if USE_NEW_PSYNC_CODE 18 + rv = rv & 0xff; 19 + #else 13 20 rv = errno_linux_to_bsd(rv & 0xff); 21 + #endif 14 22 rv |= top; 15 23 16 24 return -rv;