Commit Graph

39 Commits

Author SHA1 Message Date
flysand7 4917b05771 basic printf 2023-09-12 04:33:42 +11:00
flysand7 2b03bc5645 add str/memcpy functions 2023-09-12 03:03:06 +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 bbdcbb3e7c Implement thrd_yield on linux 2023-09-11 22:44:06 +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 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 9fa3a65736 let the child threads get a dream stack too! 2023-09-03 20:32:51 +11:00
flysand7 e1b7a84ba6 make thread locals work 2023-09-02 11:45:00 +11:00
flysand7 653342a30a loader retrieve stack bounds from /proc/self/maps 2023-08-29 18:57:34 +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 1f448dab10 pull out arch-specific stuff into its own folder (windows broken) 2023-08-25 20:18:28 +11:00
flysand7 8efd9b7c7a Add data model macro setting 2023-08-01 12:20:43 +11:00
flysand7 2166660b93 Underscores on allocators 2023-08-01 11:30:32 +11:00
flysand7 8c0590e517 [bugfix] Make one freelist per pool, instead of one per buffer 2023-07-31 04:47:18 +11:00
flysand7 d9f530fe58 Add memory pool to cia-mem, use it for FILE 2023-07-31 04:17:57 +11:00
flysand7 9ac97f1e9d Memory manager on linux + remove C23 attributes for now 2023-07-30 18:45:14 +11:00
flysand7 b4d8fe5adc Separate out stdint and stdbool 2023-07-29 00:15:38 +11:00
flysand7 bd3622dddf Fix compile error 2023-07-28 22:52:54 +11:00
flysand7 8a5804b51d Fix module deps checks, make allocators use one proc 2023-07-28 22:29:12 +11:00
flysand7 3abf5e3f7f Memory API 2023-07-28 21:49:56 +11:00
flysand7 9119be8e24 Fix formatting on ciabatta.c 2023-07-28 20:55:41 +11:00
flysand7 bdce40092d try cuik? 2023-07-28 20:16:09 +11:00
flysand7 1f811d7646 Make it compile on windows 2023-07-28 19:53:06 +11:00
flysand7 5e177fae50 Quick and dirty file api 2023-07-28 00:49:53 +11:00
flysand7 06e1057ad2 Use target platform from the build script, don't autodetect 2023-07-27 23:58:00 +11:00
flysand7 13ba60e338 Auto-generate ciabatta.c 2023-07-26 16:54:37 +11:00
flysand7 4c2ed6e7e4 prefix cia defines with underscore 2023-07-25 16:31:34 +11:00
flysand7 1007f634fb Add program api to tinyrt 2023-07-25 16:24:19 +11:00
flysand7 d49add907c TinyRT abstraction layer 2023-07-24 02:33:12 +11:00
flysand7 c8df2f9d42 Retrieve envp, call main 2023-07-23 03:28:16 +11:00
flysand7 31dbc0abd1 ANEW 2023-07-23 01:30:04 +11:00
flysand7 b5a44c37ee Uncomment fflush 2023-06-24 16:10:27 +11:00
flysand7 9c643bd0a8 rename some files 2023-06-18 18:28:07 +11:00