Commit Graph

50 Commits

Author SHA1 Message Date
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
334c6a6439 Fix syscall memory allocation bug 2019-03-17 18:04:06 -05:00
bfc3964804 Memory allocation is now a syscall 2019-03-17 12:22:00 -05:00
7d2a8b0894 IPC now uses void pointers 2019-03-15 18:53:50 -05:00
99d7fed783 Work and cleanup 2019-03-11 09:32:55 -05:00
7131f4ae5a Lots of work 2019-02-25 15:42:23 -06:00
b3e086e452 Add createTask syscall (Not working in umode) 2019-02-11 09:48:50 -06:00
4f25ff7a09 Add yield syscall (Not working in umode) 2019-02-11 09:47:28 -06:00
65b629e74a Read framebuffer info from GRUB 2019-02-09 14:33:29 -06:00
ef90f51688 Remove most code for a blank start 2019-02-09 12:52:45 -06:00