Commit Graph

241 Commits

Author SHA1 Message Date
4fadffc59a move iso files to sysroot 2019-08-26 13:32:19 -05:00
0b42b86eba kernel couldn't be compiled with the sysroot flags 2019-08-26 13:21:20 -05:00
e59c3e9dae Fix sysroot and an issue with making the usermode programs hosted 2019-08-26 13:20:06 -05:00
916ffea498 Add syscalls to get initrd size and copy it into user supplied memory 2019-08-26 13:07:01 -05:00
e8730b145a Make usermode programs hosted, and add noreturn to exit. 2019-08-26 07:43:25 -05:00
d186939f87 start.asm now calls exit with a 0 exit code 2019-08-25 17:41:13 -05:00
c8a3a49b87 Forgot to change kernel exit code back to 0 2019-08-25 17:33:05 -05:00
3ca8b5a232 Add a very basic exit function and fix kmalloc.
Exit function does not deallocate task memory except for the data block, 
and does not are about the exit code except for logging.
2019-08-25 17:32:08 -05:00
5a5fee4d74 Tasks now are a doubly-linked list 2019-08-25 17:06:19 -05:00
c18c7cff2f Fix os.iso target requiring files in initrd folder 2019-08-25 13:55:50 -05:00
04d9d073ad make clean now removes initrd files 2019-08-25 13:55:30 -05:00
45fd13c5bb Get mount working and register_fs now takes a mailbox number. 2019-08-25 13:53:44 -05:00
d12421a7c8 Add a serial_print syscall 2019-08-25 13:52:56 -05:00
2827a2d7ba Mailbox code did not save mailbox data upon returning from functions 2019-08-25 13:52:31 -05:00
e0ba92e7c0 .gdbinit now breaks at the right spots for a task switch. 2019-08-24 14:51:28 -05:00
37b0c39968 Untrack serout 2019-08-24 14:50:29 -05:00
cfb22d4386 FS type is now sent in the mode array, limiting names to 9 characters. 2019-08-05 14:26:20 -05:00
9e4a42366d Fix VFS not allocating the drvs array 2019-08-05 14:25:46 -05:00
bff1eee381 stdio functions now yield straight to the VFS. 2019-08-05 14:24:37 -05:00
895bd9613e Add a serial log if a PID yield is tried for a nonexistent pid. 2019-08-05 14:23:54 -05:00
7d25533307 Fix serial logging for getting a message 2019-08-05 14:23:27 -05:00
99522efde5 Add a kernel serial driver and a yieldToPID function. 2019-08-04 13:14:35 -05:00
88a7cf61f0 Ignore chnges to the fsdrv binary 2019-08-04 11:59:08 -05:00
1f3adebbd4 fputs now returns the right value 2019-08-04 11:58:16 -05:00
c71b48d6e4 Fix an uncommenting problem 2019-08-04 11:54:50 -05:00
05ad7d964a Undo all the commented out init code 2019-08-04 10:58:29 -05:00
e80d084584 Sync repo with code for IRC help 2019-08-03 15:50:23 -05:00
05c1e20aa6 Remove magic breakpont afer paging init 2019-08-02 19:55:59 -05:00
8b8ac86f80 Add a vgs driver to fsdrv 2019-07-31 19:46:01 -05:00
207ddb890c Fix the VFS 2019-07-31 17:45:14 -05:00
823a255e1a Fix vfs saying the message was sent from init's stdio mailbox.
Unfortunately, this breaks the VFS, so the rest of this commit attempts 
(and fails) to fix it.
2019-07-27 11:11:28 -05:00
7974c1e026 Get VFS workng and start on fputc. Debugger is currently broken :( 2019-07-20 11:03:27 -05:00
fb61bb2806 Fix fsdrv build 2019-07-13 10:40:23 -05:00
65821b63d3 remove fsdrv's VGA code 2019-07-13 10:30:32 -05:00
d62ccb0dc1 Add a process to act as a filesytem driver and get a .gdbinit file setup
.gdbinit is used to make it easier to debug userspace processes
2019-07-13 10:18:41 -05:00
74cdc67dce Fix/ignore all the warnings 2019-07-01 15:30:00 -05:00
aef1d74750 Finish fopen in the vfs and hopefully add a working fopen in stdio.c 2019-07-01 15:13:47 -05:00
2ae02f4d8c Fix init not properly setting up message for second test 2019-06-29 16:54:57 -05:00
df098a46b2 Move some stuff in init to functions. 2019-06-29 10:05:08 -05:00
c324d46885 Add fopen and fd limits to the VFS and test it 2019-06-29 09:55:02 -05:00
097d86f3d5 Add a char data field to the VFS message structure 2019-06-29 09:28:17 -05:00
07af080f0b Copy some code from the old VFS to the new one 2019-06-29 09:27:41 -05:00
c75ba3180f Init now prints out flags 2019-06-29 09:22:09 -05:00
6fe1db6956 Add a case statement for each message type to the VFS 2019-06-29 09:21:08 -05:00
ac6dc49233 Add flags to the VFS message structure 2019-06-29 09:17:52 -05:00
944f517ff1 Move getting the message into a function in the VFS 2019-06-29 09:14:59 -05:00
e12e656fa5 Add the remaining VFS operation types 2019-06-29 09:13:25 -05:00
7611d929a3 Fix most warnings 2019-06-29 09:04:34 -05:00
51bb986d76 Change IPC to a mailbox-based system
Instead of using PIDs to identify a destination, a process can have one 
or more mailboxes to send messages to.
2019-06-27 17:00:23 -05:00
9db6bf61ca Start work on making IPC use a mailbox approach 2019-06-24 13:24:39 -05:00