Commit Graph

73 Commits

Author SHA1 Message Date
ff3885241a Full purge of the word "Task" from my tasking code 2020-07-20 10:07:46 -05:00
57c663a0e0 Tasking rewrite & add multi-threading 2020-07-20 09:51:30 -05:00
7cde3f4eca Remove redundant syscalls 2020-07-12 16:29:57 -05:00
679b5a3b8d Add syscall macros and remove mailbox IPC 2020-07-12 14:30:16 -05:00
ac7cc05113 Add task states 2020-07-12 14:28:58 -05:00
ff1ec1ac79 Attempt to fix the ipc corruption 2020-07-09 11:28:57 -05:00
9d849a0f23 Fix fread using the item count as the buffer size 2019-09-10 19:23:13 -05:00
d81509d8e8 Add fseek that only supports SEEK_SET 2019-09-10 19:15:02 -05:00
4cf2945d36 fix hex_to_ascii 2019-09-08 13:54:01 -05:00
0bd3fe70cb Make puts append a newline 2019-09-08 13:01:01 -05:00
c5504b80dc Add isdigit function 2019-09-06 15:36:10 -05:00
9b56ca3be8 Fix puts not being defined in libc 2019-09-05 16:14:04 -05:00
f88622c154 Mailboxes can now be found by their names. 2019-09-05 09:39:13 -05:00
fa60cba73a VFS can now handle multiple messages at once 2019-09-02 06:58:23 -05:00
9a89873c8b Mailboxes now have names 2019-09-01 13:52:32 -05:00
1522fed9a8 Add getpid function 2019-09-01 13:49:01 -05:00
9150fae1e3 Add stdio side of file read functions 2019-09-01 10:05:56 -05:00
27d0fd6bfd Add printf 2019-08-31 18:47:00 -05:00
9d1eed8437 Make stdin/out/err FILE pointers 2019-08-31 18:44:08 -05:00
772a121dd8 Merge fputc with fputs 2019-08-30 08:17:59 -05:00
f92f5f784d fix fputs build warning 2019-08-28 20:33:27 -05:00
b5b2703cd2 fix fputs build error 2019-08-28 20:32:48 -05:00
bc5a9d6879 fputs is now a single message 2019-08-28 20:32:14 -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
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
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
cfb22d4386 FS type is now sent in the mode array, limiting names to 9 characters. 2019-08-05 14:26:20 -05:00
bff1eee381 stdio functions now yield straight to the VFS. 2019-08-05 14:24:37 -05:00
99522efde5 Add a kernel serial driver and a yieldToPID function. 2019-08-04 13:14:35 -05:00
1f3adebbd4 fputs now returns the right value 2019-08-04 11:58:16 -05:00
e80d084584 Sync repo with code for IRC help 2019-08-03 15:50:23 -05:00
8b8ac86f80 Add a vgs driver to fsdrv 2019-07-31 19:46:01 -05:00
7974c1e026 Get VFS workng and start on fputc. Debugger is currently broken :( 2019-07-20 11:03:27 -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
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
1216d4c000 Store size of message in buffer 2019-06-22 15:29:02 -05:00
382bd0c5e9 large restructure 2019-05-24 09:51:45 -05:00
97644881e2 Fix put_data 2019-05-24 08:29:43 -05:00
57e5d55c36 add put_data function 2019-05-23 20:42:00 -05:00
eebf2b97fb Add createTaskCr3Param function 2019-05-23 20:41:33 -05:00
8135cd2402 Add a privleged map_phys syscall 2019-05-23 17:08:03 -05:00
204fec4407 Remove all drivers and fs code from kernel 2019-05-22 14:18:29 -05:00
2497befcea Make copy_data a syscall 2019-05-06 08:35:59 -05:00
f34d5029df Add createTaskCr3 2019-05-05 13:30:01 -05:00
1efc0bff19 Add new_address_space as a syscall 2019-05-05 13:14:14 -05:00
35bba425ac Send_msg now reqires size 2019-05-04 10:58:52 -05:00
64b249b9c0 Actually fix syscalls for messages 2019-05-04 10:41:42 -05:00