Commit Graph

374 Commits

Author SHA1 Message Date
flysand7 27ee227f8e Thread cancellation 2023-09-17 17:15:58 +11:00
flysand7 8c5c5adeca Fix %I64d not loading correct int sizes 2023-09-12 21:07:02 +11:00
flysand7 5453813e39 Add write lock to printf 2023-09-12 04:40:29 +11:00
flysand7 4917b05771 basic printf 2023-09-12 04:33:42 +11:00
flysand7 4c0041414d update readme 2023-09-12 03:03:57 +11:00
flysand7 2b03bc5645 add str/memcpy functions 2023-09-12 03:03:06 +11:00
flysand7 a0a32bdb7c add sequential consistency test 2023-09-12 02:38:24 +11:00
flysand7 3b69b1ca26 make atomics and threads include cia/def and rt when they depend on it 2023-09-12 02:38:12 +11:00
flysand7 a81d061652 Fix stack alignment on thread entry 2023-09-12 02:37:54 +11:00
flysand7 bbdcbb3e7c Implement thrd_yield on linux 2023-09-11 22:44:06 +11:00
flysand7 5c6b55e4e5 update readme 2023-09-10 21:25:10 +11:00
flysand7 362460ac9c Fix memory ordering on mutex acquire 2023-09-10 19:50:40 +11:00
flysand7 dc2ec9eb13 explicit atomics 2023-09-10 17:53:22 +11:00
flysand7 7c65447a9a Move tcb to include/cia-ld. Fix deadlock due to no spurious wakeup 2023-09-10 14:38:27 +11:00
flysand7 8c563ec1b2 make fwrite threadsafe 2023-09-10 11:30:56 +11:00
flysand7 afa8017b5b Remove old build script 2023-09-09 12:36:10 +11:00
flysand7 c1e3d72d2f ???????? 2023-09-07 08:22:12 +11:00
flysand7 1dc7b41cc1 ?????? 2023-09-07 08:20:00 +11:00
flysand7 f54d5b10c5 ????? 2023-09-07 08:12:19 +11:00
flysand7 dbc536f828 ???? 2023-09-07 08:11:05 +11:00
flysand7 5bd2860eaf ??? 2023-09-07 08:08:57 +11:00
flysand7 ce6ffd2920 ?? 2023-09-07 08:06:56 +11:00
flysand7 ef12aa6f44 ? 2023-09-07 07:57:24 +11:00
flysand7 3df527c375 change shell to cmd for windows CI 2023-09-07 07:54:36 +11:00
flysand7 35f10c78b7 fix joins & detaches 2023-09-06 20:37:30 +11:00
flysand7 00d284215c Make thread handle a pointer to TCB on linux 2023-09-06 07:55:45 +11:00
flysand7 3d761f344f accept the patch from this random based guy on stackoverflow 2023-09-04 18:52:58 +11:00
flysand7 9fa3a65736 let the child threads get a dream stack too! 2023-09-03 20:32:51 +11:00
flysand7 32f831bda3 ? 2023-09-02 20:25:31 +11:00
flysand7 bbea5423f6 change CI scripts in accordance with build script 2023-09-02 11:47:40 +11:00
flysand7 e1b7a84ba6 make thread locals work 2023-09-02 11:45:00 +11:00
flysand7 d8dc35c083 switch stacks 2023-08-30 19:52:29 +11:00
flysand7 653342a30a loader retrieve stack bounds from /proc/self/maps 2023-08-29 18:57:34 +11:00
flysand7 7929779df6 Fix mutex 2023-08-28 01:36:46 +11:00
flysand7 35a760e54e broken mutex 2023-08-27 13:51:35 +11:00
flysand7 fa1f9ec0e6 stdatomic.h 2023-08-26 22:35:18 +11:00
flysand7 8f739d3a10 move ciabatta headers to <cia/*> 2023-08-26 18:39:40 +11:00
flysand7 deb67217b5 expand threaded example 2023-08-26 18:28:59 +11:00
flysand7 8b7850f03e make release build work with dynamic linker 2023-08-26 17:11:12 +11:00
flysand7 8ceb3e2e49 add more options 2023-08-26 17:08:46 +11:00
flysand7 45ae248539 readd --test option to build script 2023-08-26 16:52:59 +11:00
flysand7 967580d298 remove commands.sh temporary file 2023-08-26 14:01:04 +11:00
flysand7 71aa64a7d4 threads work on linux! 2023-08-26 14:00:37 +11:00
flysand7 be17cebb56 why it crash normally but fine in gdb and valgrind AAAAAAAA 2023-08-26 10:36:26 +11:00
flysand7 1f448dab10 pull out arch-specific stuff into its own folder (windows broken) 2023-08-25 20:18:28 +11:00
flysand7 82788654d8 Linux threads (not working) 2023-08-15 19:54:02 +11:00
flysand7 1beb40051e fix potentially unitialized value 2023-08-15 15:50:52 +11:00
flysand7 50fe56949f Fix SSE by aligning the stack 2023-08-05 22:35:45 +11:00
flysand7 35717f62a0 make dynamic linker perform relocs and jump into the main code 2023-08-05 21:33:19 +11:00
flysand7 48a3a48ce8 Add memory fences around self-relocating code 2023-08-04 06:24:19 +11:00