Commit Graph

318 Commits

Author SHA1 Message Date
288374ee09 Fix dead lock in canonical mode 2023-06-27 19:45:01 +08:00
bc3b849613 [cpio-decoder] Fix the invalid file type 2023-06-27 18:29:46 +08:00
f301c70708 [cpio-decoder] Use TryFromInt for enum type 2023-06-27 12:52:14 +08:00
4c4366ccb0 Open stdio by opening /dev/tty 2023-06-05 17:34:16 +08:00
7803d9037e Add uninit option for VmAllocOption 2023-06-03 21:10:53 +08:00
7304e06c88 Add virtio net device driver 2023-06-01 14:39:19 +08:00
2985cdced6 Replace Mutex with Spinlock in tty to avoid deadlock 2023-05-31 20:59:01 +08:00
2b59a406a6 Add network syscalls 2023-05-31 11:50:50 +08:00
8719234dc2 Implement tcp&udp socket 2023-05-31 11:50:50 +08:00
f437dc6244 Add network iface 2023-05-31 11:50:50 +08:00
6fc333b416 Add network test 2023-05-31 11:50:50 +08:00
d96fe31e36 Fix typos and add utils 2023-05-31 11:50:50 +08:00
b2f2c55c9b Impl SafePtr 2023-05-30 21:32:25 +08:00
0c9495b726 Extract TRights into crate jinux_rights 2023-05-30 21:32:25 +08:00
3471843793 Fix virtio no interrupt received bug 2023-05-30 21:32:25 +08:00
39380f09b9 Use volatile read/write for the MMIO 2023-05-30 21:32:25 +08:00
358f44b3c0 Implement VmIo for smart pointers to VmIo 2023-05-30 21:32:25 +08:00
6f321ad7b7 Add support for DevFS 2023-05-29 19:02:35 +08:00
cc2ab9d5d4 Add gettimeofday and clock_gettime 2023-05-29 18:53:12 +08:00
47811a0f38 Refine the contents of initramfs 2023-05-29 18:53:12 +08:00
7e4a96fcdf Fix the invalid fd for F_GETFL and F_SETFL 2023-05-27 09:10:25 +08:00
41a1cfd169 Add F_GETFL and F_SETFL for fcntl 2023-05-26 11:05:17 +08:00
b34dc85e7e Remove the as_any_ref() function for trait 2023-05-25 15:01:18 +08:00
902b0421c3 Use bootloader to load initramfs 2023-05-25 14:59:49 +08:00
dba89b508d Extend Require macro to support impl block 2023-05-09 10:44:11 +08:00
1ae1881240 Add support for select 2023-05-06 17:07:15 +08:00
42ecbe1b04 Change physical address accees to MMIO 2023-05-06 16:51:51 +08:00
5656805520 Impl MMIO access method 2023-05-06 16:51:51 +08:00
e7b9ba116d Use machine q35 2023-05-06 16:51:51 +08:00
a2acf56765 Move some syscall specific structs from fs to syscall module 2023-05-04 17:12:14 +08:00
6cea03b871 Simplify current codes with TryFromNum 2023-05-04 16:49:22 +08:00
6ecc7dc557 Add crate int-to-c-enum 2023-05-04 16:49:22 +08:00
aec46295c4 Rewrite the Poller&Pollee with Observer&Subject 2023-05-04 14:41:42 +08:00
2b1ecdcfa6 Add support for epoll 2023-05-04 14:41:42 +08:00
c3152c4978 Rewrite FileTable with SlotVec 2023-05-04 14:41:42 +08:00
0abe40e0f8 Rename DirEntryVec to SlotVec 2023-05-04 14:41:42 +08:00
0fc707d38c Add support for pipe and poll 2023-05-04 14:41:42 +08:00
453d2ad0f0 Add keyable-arc 2023-05-04 14:41:42 +08:00
7e1584fca9 Update the README to describe code organization 2023-04-17 13:11:47 +08:00
53b8acf6f6 Add a LICENSE file 2023-04-17 11:34:14 +08:00
271a16d492 Reorganize the codebase 2023-04-10 14:49:39 +08:00
888853a6de Add mutex primitive and replace mutex in Jinux 2023-04-09 21:16:37 +08:00
5277886b5d Add Spinlock primitive with disabling IRQ 2023-04-09 21:16:37 +08:00
dbbf3a9db8 Add disabling IRQ 2023-04-09 21:16:37 +08:00
2ec6a0a5df Add the per-cpu variable interface 2023-04-09 21:16:37 +08:00
ec80d4ac4e add a banner 2023-04-06 12:17:58 +08:00
85076777f0 rewrite function logic with block 2023-04-06 12:17:58 +08:00
1a525454ef map all the segments of the ELF in a range 2023-04-06 12:17:58 +08:00
9ae2ca4c02 map segments with vnode 2023-04-06 12:17:58 +08:00
7bee03f91f fix mapping cow vmo's parent's pages with write access 2023-04-06 12:17:58 +08:00