Commit Graph

96 Commits

Author SHA1 Message Date
d28f0db419 Refactor tty driver using the work queue 2023-10-09 18:08:15 -05:00
7419f6b56b Add the bottom half mechanism of workqueue 2023-10-09 18:08:15 -05:00
e2b4302620 Add basic preemptive scheduling 2023-10-09 18:08:15 -05:00
baeaa9b4d3 Rename fork_vmar to fork_from 2023-09-28 11:53:53 +08:00
12fc074f56 Add tdx-guest crate 2023-09-28 03:47:55 +08:00
f540345bfd Use builder pattern to refactor the process module 2023-09-15 06:45:41 +08:00
9ca64c281e Fix clippy and compiler warings 2023-09-05 18:42:06 +08:00
038c19b693 Refactor the pty implementation 2023-09-05 06:24:54 +08:00
40056f0692 Enable gvisor pty test 2023-09-05 06:24:54 +08:00
f802ff40c5 Implement pseudo terminal 2023-09-05 06:24:54 +08:00
25c4f0f2bc Fix incorrent exit status 2023-09-03 19:03:22 +08:00
dbc1e79e56 Clear vmar later to allow execve return error 2023-09-03 19:03:22 +08:00
4fef4d9b79 Poll iface when dropping socket 2023-09-03 18:20:30 +08:00
7d5e67e368 Refactor Virtio 2023-09-03 13:36:05 +08:00
6d101c5b6d Use Mutex and RwLock in jinux-frame for jinux-std 2023-09-02 17:06:39 +08:00
8aef80f978 Return correct error type if executing a file that is not executable 2023-08-17 18:09:28 +08:00
3f15bcaf5d Refactor unix stream socket implementation 2023-08-15 20:54:10 +08:00
93429ae2c9 Write addrlen to user when writing socket addr 2023-08-15 20:54:10 +08:00
87c50384f9 Add syscall socketpair 2023-08-15 20:54:10 +08:00
4aeedd16d9 Add unix stream socket 2023-08-15 20:54:10 +08:00
ddb7be9296 Refactor current net codes 2023-08-15 20:54:10 +08:00
caaa147b99 Fix using unsafe functions in unix_epoch 2023-08-14 14:33:26 +08:00
d1c0090d3a Refactor to remove redundant indent 2023-08-09 21:11:47 +08:00
af58912631 Fix short read in block read 2023-08-09 21:11:47 +08:00
36281eb1eb Allow setting callback for push char 2023-08-09 21:11:47 +08:00
a088acd0ec Foreground process group should be none if the process group exits 2023-08-09 21:11:47 +08:00
dbfb2e1a62 Fix the logic of cacheable flag for dentry 2023-08-09 12:02:18 +08:00
ab4b1b47dc Avoid holding lock when call accept and recvfrom 2023-08-09 11:34:09 +08:00
4f00e5a167 Add devpts to support the ptmx 2023-08-09 11:11:24 +08:00
7de44a0e0e Refine the name about initramfs
The bootloader loads the initramfs, then the kernel unpacks it to rootfs.
2023-08-04 17:19:19 +08:00
55267f0d81 Add Debug support for some fs components 2023-08-04 12:22:34 +08:00
acfbc7efdc Fix multiple issues in the initproc path 2023-08-04 11:37:34 +08:00
f674874e91 Rename eval to syscall test and fix return value 2023-08-04 11:37:34 +08:00
187069fd34 Refactor runner scripts to introduce eval 2023-08-04 11:37:34 +08:00
1090f03b34 Use kcmdline to specify init instead of hardcoding 2023-08-04 11:37:34 +08:00
69cbfc72f5 Refactor boot and add placeholder kcmdline struct 2023-08-04 11:37:34 +08:00
b54843172b Resolve minor issues in mmap 2023-08-04 11:37:12 +08:00
5cf624f9ac Update toolchain to nightly 08-01 2023-08-04 11:37:12 +08:00
6b87ff03ac Fix mmap flags 2023-08-04 11:37:12 +08:00
18f601dc79 Fix vmo offset bug after unmapping 2023-08-01 20:49:48 +08:00
e6afa934dc Move methods of VmMapping to VmMappingInner 2023-08-01 20:49:48 +08:00
1bfd6ea2f8 Add mount and umount fs support 2023-08-01 20:45:39 +08:00
9cb759efa2 Add a runtime check for scheduler with spin locks 2023-07-25 12:56:06 +08:00
47a51eb423 Adapt Multiboot2 and switch from Limine to Grub2 2023-07-24 16:31:38 +08:00
13c4c614b5 Optimize the CpioEntry to send data to the Write trait 2023-07-24 15:30:23 +08:00
4b3cf8daeb Simplify the unzipping ramdisk file to reduce the heap allocation 2023-07-24 15:30:23 +08:00
3a3cb7cd15 Implement copy for VmFrame 2023-07-21 10:57:04 +08:00
38ee2cafcd Inherit vmo at page granularity 2023-07-21 10:57:04 +08:00
2c33f5dae1 Removed unused vmo type 2023-07-21 10:57:04 +08:00
38a78cc3ce Fix: fork vmo should be resizable if parent is resizable 2023-07-21 10:57:04 +08:00