Commit Graph

108 Commits

Author SHA1 Message Date
Ali Mashtizadeh
0cba356b78 Merge /home/ali/working/CastorOS-FS 2023-11-21 22:53:50 -05:00
Ali Mashtizadeh
d4fb02e2b4 Implemented write support in the file system and added fiotest, and stat 2023-11-21 21:37:17 -05:00
Ali Mashtizadeh
ae669bfa83 Buildable skeleton for ARM64 architecture specific code. 2023-10-23 22:28:10 -04:00
Ali Mashtizadeh
51b61e3316 Use PROT/MAP flags rather than PTEs to improve portability. 2023-10-23 21:53:07 -04:00
Ali Mashtizadeh
32cd3ba42b Add WIFEXITED 2023-10-02 19:53:08 -04:00
Ali Mashtizadeh
fb3348128e Add sys/wait.h 2023-10-02 19:34:24 -04:00
Ali Mashtizadeh
63f2ae716e Add spawn and wait/waitpid functions into libc. 2023-10-02 19:33:47 -04:00
Ali Mashtizadeh
64818e1337 Reduce default log level 2023-10-01 20:30:12 -04:00
Ali Mashtizadeh
a58001cd9e Cleanup and comments in process and thread code and bonus asserts. 2023-09-06 13:51:47 -04:00
Ali Mashtizadeh
3bde8dd084 Cleaning up a pile of bugs 2023-09-05 22:18:10 -04:00
Ali Mashtizadeh
feb45381ba OSWait: Fix waiting on a specific PID 2023-09-03 14:54:14 -04:00
Ali Mashtizadeh
d3349d9eaa Adding kernel side Mutex, CV, and testing it with Exit/Wait. 2023-09-02 17:51:10 -04:00
Ali Mashtizadeh
52377a980c Add waitchannels into the kernel. 2023-08-30 12:49:23 -04:00
Ali Mashtizadeh
67578f14b7 Add lock and malloc annotations to the code. 2023-08-30 12:45:51 -04:00
Ali Mashtizadeh
91e2e76c91 Add printf checking 2023-08-22 22:03:53 -04:00
Ali Mashtizadeh
06e247a401 Add NO_RETURN to abort and assert functions. 2023-08-22 21:53:26 -04:00
Ali Mashtizadeh
1df34b2d2e Cleanup loader and unify init and spawn paths. 2023-08-21 22:06:57 -04:00
Ali Mashtizadeh
0804766a40 Cleanup logging throughout kernel 2023-08-20 19:08:26 -04:00
Ali Mashtizadeh
f5eaced208 Add pcilist debug command and bonus cleanup 2022-12-10 01:08:20 -05:00
Ali Mashtizadeh
f86e4ad966 Cleanup and commenting source code 2022-12-09 23:51:45 -05:00
Ali Mashtizadeh
04b709f3b3 Cleanup: Disable LWIP and address compiler warnings 2019-07-31 17:30:50 -04:00
Ali Mashtizadeh
c1461694ca Support writing sysctls from userspace 2015-12-01 15:14:17 -08:00
Ali Mashtizadeh
afd9cdc068 Adding sysctl command line tool 2015-11-15 15:17:18 -08:00
Ali Mashtizadeh
2809d233b5 Added a simple crti/n/1 to fix clang compat issues 2015-02-27 15:57:07 -08:00
Ali Mashtizadeh
473d00e669 Cleanup warnings from all the previous MP changes 2015-02-16 13:04:40 -08:00
Ali Mashtizadeh
4e4490872e Add missing cleanup code in Process_Destroy 2015-02-16 13:03:57 -08:00
Ali Mashtizadeh
251654f2c7 More improvements to support lwip 2015-02-03 14:06:17 -08:00
Ali Mashtizadeh
348a7acc15 Moving some definitions from time.h into sys/time.h 2015-02-02 15:29:12 -08:00
Ali Mashtizadeh
78afc5e47d Header file improvements to enable compiling lwip 2015-02-02 15:10:15 -08:00
Ali Mashtizadeh
8b45f56bf5 Fix mmap and expose gettid system call 2015-01-30 20:43:28 -08:00
Ali Mashtizadeh
8f24dbe6d0 Plumbing for raw packet reading 2015-01-27 10:34:44 -08:00
Ali Mashtizadeh
10bf52f68f A simple ifconfig to show a list of NICs and mac addresses 2015-01-23 13:02:31 -08:00
Ali Mashtizadeh
ccebc2fe60 Finished Process_Wait implementation 2015-01-22 15:00:01 -08:00
Ali Mashtizadeh
c80577c5e8 OSWait now waits for child process to exit 2015-01-22 14:11:26 -08:00
Ali Mashtizadeh
534879b0c0 Show lock stack when a spinlock waits too long 2015-01-22 13:52:02 -08:00
Ali Mashtizadeh
ee3874da77 Bug fixes and code cleanup for thread related code 2015-01-22 13:04:43 -08:00
Ali Mashtizadeh
7aaf5cbc5f Adding title to process structure and create default kernel process 2015-01-22 10:08:09 -08:00
Ali Mashtizadeh
fa1b3c9ed2 Fix thread reference counting 2015-01-22 09:46:48 -08:00
Ali Mashtizadeh
63c04f37df Moving to using reference counts for process and thread structures. 2015-01-20 15:30:11 -08:00
Ali Mashtizadeh
2447babe6a Renaming functions and reorganizing functions in thread.c 2015-01-20 15:07:31 -08:00
Ali Mashtizadeh
5808a2564d Implemented CopyStrIn/Out to fix bugginess of using CopyIn/Out wrapping passed a mapped page. 2015-01-19 17:57:20 -08:00
Ali Mashtizadeh
5ed248c8ec Cleanup and fixing warnings 2015-01-19 17:04:14 -08:00
Ali Mashtizadeh
02c0816e41 Adding wait system call 2015-01-18 15:08:12 -08:00
Ali Mashtizadeh
29dd4d3af8 Implement kernel semaphores 2015-01-18 13:48:16 -08:00
Ali Mashtizadeh
4d3eefa3e7 Renaming Timer to KTimer to mach the file names 2015-01-17 13:52:04 -08:00
Ali Mashtizadeh
929784bc52 Adding threadList to process structure. 2015-01-17 13:37:32 -08:00
Ali Mashtizadeh
1160570250 Implemented OSThreadExit and a nonblocking OSThreadWait 2015-01-16 19:41:27 -08:00
Ali Mashtizadeh
5a3d86aa7b Implemented OSThreadCreate system call 2015-01-16 17:57:21 -08:00
Ali Mashtizadeh
c408b47966 Keep track of process wait times 2015-01-16 15:25:36 -08:00
Ali Mashtizadeh
60799c824e Support thread sleep system call 2015-01-16 14:50:10 -08:00