Commit Graph

59 Commits

Author SHA1 Message Date
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
339a4e3357 Messages now use syscalls 2019-05-03 09:33:26 -05:00
83e1f27567 i386 moved to multiboot2 and x86_64 has physical memory manager 2019-04-27 15:03:31 -05:00
20a954716e Change malloc definition to use size_t 2019-04-22 13:18:05 -05:00
c8bd8918cd Change pointer casts to uint32_t to char* 2019-04-22 08:48:13 -05:00
e8d8f6390e Realloc behaves properly when passed a NULL pointer 2019-04-18 08:48:56 -05:00
e3fd4fd5e1 Fix warnings 2019-04-13 09:23:40 -05:00
f4b82ec850 Added fwrite 2019-04-09 09:16:37 -05:00
ad3c8288b6 Add read bool and write bool to file structure 2019-04-09 09:01:06 -05:00
1e51feb511 Add vfprintf to stdio.h 2019-04-08 16:34:25 -05:00
a938ed448e Added feof and ferror 2019-04-08 16:33:49 -05:00
9c0ccfd255 Added error indicator in stream 2019-04-08 16:33:19 -05:00
edded2e3a1 Added errno 2019-04-08 15:58:30 -05:00
20ae5d1a31 Add IDE driver and r/o ext2 fs driver 2019-04-06 09:07:06 -05:00
ed591187a1 Files now do not reference libc paths directly 2019-03-30 10:39:26 -05:00