Commit Graph

100 Commits

Author SHA1 Message Date
Yuke Peng 50c10653fb Add InputProp comments 2023-09-03 13:36:05 +08:00
Chuandong Li 6d101c5b6d Use Mutex and RwLock in jinux-frame for jinux-std 2023-09-02 17:06:39 +08:00
Jianfeng Jiang 8aef80f978 Return correct error type if executing a file that is not executable 2023-08-17 18:09:28 +08:00
Jianfeng Jiang 3f15bcaf5d Refactor unix stream socket implementation 2023-08-15 20:54:10 +08:00
Jianfeng Jiang 93429ae2c9 Write addrlen to user when writing socket addr 2023-08-15 20:54:10 +08:00
Jianfeng Jiang 87c50384f9 Add syscall socketpair 2023-08-15 20:54:10 +08:00
Jianfeng Jiang 4aeedd16d9 Add unix stream socket 2023-08-15 20:54:10 +08:00
Jianfeng Jiang ddb7be9296 Refactor current net codes 2023-08-15 20:54:10 +08:00
Chuandong Li caaa147b99 Fix using unsafe functions in unix_epoch 2023-08-14 14:33:26 +08:00
Jianfeng Jiang d1c0090d3a Refactor to remove redundant indent 2023-08-09 21:11:47 +08:00
Jianfeng Jiang af58912631 Fix short read in block read 2023-08-09 21:11:47 +08:00
Jianfeng Jiang 36281eb1eb Allow setting callback for push char 2023-08-09 21:11:47 +08:00
Jianfeng Jiang a088acd0ec Foreground process group should be none if the process group exits 2023-08-09 21:11:47 +08:00
LI Qing dbfb2e1a62 Fix the logic of cacheable flag for dentry 2023-08-09 12:02:18 +08:00
Yuke Peng c38e4f0800 Replace InFramePtr with SafePtr 2023-08-09 11:57:53 +08:00
Jianfeng Jiang ab4b1b47dc Avoid holding lock when call accept and recvfrom 2023-08-09 11:34:09 +08:00
LI Qing 4f00e5a167 Add devpts to support the ptmx 2023-08-09 11:11:24 +08:00
LI Qing 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
LI Qing 55267f0d81 Add Debug support for some fs components 2023-08-04 12:22:34 +08:00
Zhang Junyang acfbc7efdc Fix multiple issues in the initproc path 2023-08-04 11:37:34 +08:00
Zhang Junyang f674874e91 Rename eval to syscall test and fix return value 2023-08-04 11:37:34 +08:00
Zhang Junyang 187069fd34 Refactor runner scripts to introduce eval 2023-08-04 11:37:34 +08:00
Zhang Junyang 1090f03b34 Use kcmdline to specify init instead of hardcoding 2023-08-04 11:37:34 +08:00
Zhang Junyang 69cbfc72f5 Refactor boot and add placeholder kcmdline struct 2023-08-04 11:37:34 +08:00
Zhang Junyang b54843172b Resolve minor issues in mmap 2023-08-04 11:37:12 +08:00
Zhang Junyang 48ae6611f6 Fix bad partial ord implementation 2023-08-04 11:37:12 +08:00
Zhang Junyang 8fc4fa6f10 Fix for new format checks in the latest toolchain 2023-08-04 11:37:12 +08:00
Zhang Junyang 5cf624f9ac Update toolchain to nightly 08-01 2023-08-04 11:37:12 +08:00
Zhang Junyang 605a237d53 Pacify the linter for supporting multiple devices 2023-08-04 11:37:12 +08:00
Zhang Junyang bbca1a2a80 Fix boot frambuffer usage 2023-08-04 11:37:12 +08:00
Zhang Junyang 6b87ff03ac Fix mmap flags 2023-08-04 11:37:12 +08:00
Zhang Junyang 901cbebe44 Fix spurious bitflags usage 2023-08-04 11:37:12 +08:00
Jianfeng Jiang 18f601dc79 Fix vmo offset bug after unmapping 2023-08-01 20:49:48 +08:00
Jianfeng Jiang e6afa934dc Move methods of VmMapping to VmMappingInner 2023-08-01 20:49:48 +08:00
LI Qing 1bfd6ea2f8 Add mount and umount fs support 2023-08-01 20:45:39 +08:00
Chuandong Li 9cb759efa2 Add a runtime check for scheduler with spin locks 2023-07-25 12:56:06 +08:00
Zhang Junyang 47a51eb423 Adapt Multiboot2 and switch from Limine to Grub2 2023-07-24 16:31:38 +08:00
Yuke Peng 49f2750108 Rename mmio to IoMem 2023-07-24 15:56:22 +08:00
LI Qing 13c4c614b5 Optimize the CpioEntry to send data to the Write trait 2023-07-24 15:30:23 +08:00
LI Qing 4b3cf8daeb Simplify the unzipping ramdisk file to reduce the heap allocation 2023-07-24 15:30:23 +08:00
LI Qing 4c83ff9411 Rewrite cpio-decoder with Read trait as the input parameter 2023-07-24 15:30:23 +08:00
Jianfeng Jiang 3a3cb7cd15 Implement copy for VmFrame 2023-07-21 10:57:04 +08:00
Jianfeng Jiang 38ee2cafcd Inherit vmo at page granularity 2023-07-21 10:57:04 +08:00
Jianfeng Jiang 2c33f5dae1 Removed unused vmo type 2023-07-21 10:57:04 +08:00
Jianfeng Jiang 38a78cc3ce Fix: fork vmo should be resizable if parent is resizable 2023-07-21 10:57:04 +08:00
Jianfeng Jiang 149e169b2c Drop parent once all inherited pages is committed by child 2023-07-21 10:57:04 +08:00
Jianfeng Jiang ad0ab0898a Refactor vmo inherit page from parent 2023-07-21 10:57:04 +08:00
Jianfeng Jiang 9137ef434f Use docker as dev environment 2023-07-19 11:28:31 +08:00
Jianfeng Jiang bf961756b9 Set process executable path to interpreter path 2023-07-18 00:14:04 +08:00
Yuke Peng 15f3e46e3b Mark can_dma page in virtqueue 2023-07-13 22:57:56 +08:00