Commit Graph

72 Commits

Author SHA1 Message Date
97f18478ed Fix fwrite 2019-04-09 18:12:54 -05:00
1c832e8f7a Add r+ mode to VFS 2019-04-09 18:10:43 -05:00
3a2deea07c Add blk_grp_num array to ext2 driver 2019-04-09 17:49:39 -05:00
a73508ecc2 Added write_inode to ext2 driver 2019-04-09 17:44:58 -05:00
ab5128bebd Added write_blk to ext2 driver 2019-04-09 09:18:05 -05:00
f4b82ec850 Added fwrite 2019-04-09 09:16:37 -05:00
680defd654 VFS functions now check mode 2019-04-09 09:05:47 -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
4a36e8e9ad Fix error handling of vfs functions 2019-04-08 16:34:07 -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
c6b8faa936 ext2 driver now sets errno 2019-04-08 16:32:56 -05:00
edded2e3a1 Added errno 2019-04-08 15:58:30 -05:00
0f406b1f01 Got ext2 directory support working 2019-04-08 11:24:03 -05:00
04c8a3e4be Remove empty "os" file, qemu.log and dump.dat 2019-04-08 09:17:28 -05:00
03eb675813 Got ext2 directory traversing working 2019-04-08 09:15:50 -05:00
4b3384e45d Work on ext2 directory support 2019-04-07 15:14:46 -05:00
37532000a0 Fix ext2 driver errors. 2019-04-07 14:12:45 -05:00
873a4a6aed IDE read sector function was reading the wrong port for status 2019-04-07 14:08:19 -05:00
bc25aac8c6 IDE driver checks for correct base and slave for cached sector 2019-04-07 14:02:59 -05:00
b87106e68b ext2 driver now properly reads inode contents and supports singly indirect block pointers 2019-04-06 17:38:36 -05:00
4ac784fcf2 Fix disabling of interupts in IDE driver 2019-04-06 10:24:05 -05:00
67d76264b5 Ignore all sysroot files 2019-04-06 09:07:19 -05:00
20ae5d1a31 Add IDE driver and r/o ext2 fs driver 2019-04-06 09:07:06 -05:00
d5c21bd0ae Libc headers are now in a sysroot 2019-03-31 13:10:40 -05:00
32bd671225 Add libc library 2019-03-30 11:44:01 -05:00
ed591187a1 Files now do not reference libc paths directly 2019-03-30 10:39:26 -05:00
a1267bd5b3 tasking_yield enables interrupts when switching to user mode 2019-03-26 17:52:08 -05:00
pjht
aa2c33b8f3
Merge pull request #20 from pjht/seperate-addresses
Tasks now have seperate address spaces
2019-03-24 16:16:51 -05:00
0c50e1eb8c Fixed interrupts using wrong stack
Tasks were running in kernel mode, so the tss stack was not being used.
Unfortunatley, I had to set kmalloc to user r/w so switchTask can save 
and load registers.
2019-03-24 14:25:32 -05:00
5618dd6834 Fixed reboot problem
STACK GROWS DOWN, NOT UP!
2019-03-24 13:42:00 -05:00
e1579b5f2a Yield now loads the address space 2019-03-23 11:14:59 -05:00
2b65782369 Tasks now have separate address spaces
When switchTask loads the stack, the next push intruction fails, but the 
stack can be manually accessed fine.
2019-03-23 10:35:11 -05:00
9caf48cb6d Kmalloc is now used to allocate task structures 2019-03-23 07:30:18 -05:00
5bca438d98 Add kmalloc 2019-03-23 07:30:00 -05:00
0f4cd96cbf Re add program build into makefile 2019-03-17 18:04:50 -05:00
334c6a6439 Fix syscall memory allocation bug 2019-03-17 18:04:06 -05:00
c1bbcaddee Virtual memory manager no longer returns NULL 2019-03-17 17:47:33 -05:00
afcd0b6580 Virtual memory manager can now create and load address spaces 2019-03-17 12:37:37 -05:00
bfc3964804 Memory allocation is now a syscall 2019-03-17 12:22:00 -05:00
d9252649d8 Physical memory manager now initialized in cpu_init 2019-03-17 12:21:23 -05:00
7d2a8b0894 IPC now uses void pointers 2019-03-15 18:53:50 -05:00
f2ebc5e31e More work 2019-03-12 17:26:19 -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
9c5e5e91d0 Clear interrupt stack in yield sycall 2019-02-11 14:13:49 -06:00
d54a55aad0 Get sycalls working in usermode (And all interrupts) 2019-02-11 13:43:40 -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