Commit Graph

628 Commits

Author SHA1 Message Date
a716763772 Remove the linkage feature usage for ostd::main 2024-10-20 13:24:58 +08:00
3c857d746e Clear TID before doing futex_wake when exiting a POSIX thread 2024-10-20 13:21:27 +08:00
2f511069ee Move SoftIRQ implementations to softirq component 2024-10-18 09:35:40 +08:00
54a807b5f7 Modify asterinas/kernel/src/process/posix_thread/mod.rs 2024-10-18 09:31:25 +08:00
1fe0a138f9 PROT_WRITE implies PROT_READ on x86 2024-10-17 08:56:47 +08:00
c28cec2c6a Fix minor bugs in TDX env 2024-10-14 21:03:47 +08:00
090149eed7 Add tcp latency test over virtio-net 2024-10-14 20:59:25 +08:00
002a67451d Update line discipline pollee immediately 2024-10-14 16:39:34 +08:00
e32687e6d5 do_exit: Ignore unwrap panic caused by munmap 2024-10-14 14:48:43 +08:00
9e4257b655 Fix multiple issues pointed out by the new compiler 2024-10-13 22:32:05 +08:00
ee33216875 Fix the incorrect range in SegmentSlice 2024-10-12 19:58:10 +08:00
bdf89a5de3 Implement getcwd() 2024-10-12 09:58:45 +08:00
ea489252f4 Refactor Dentry to optimize the vfs layer 2024-10-11 11:22:52 +08:00
271e893889 Revise MountNode's lock usage 2024-10-11 11:22:52 +08:00
0415225c19 Fix IRQ-related socket locks 2024-10-10 20:36:22 +08:00
7e21e1e653 Revise socket option handling 2024-10-10 20:36:22 +08:00
b9b09b8142 Don't lock Mutex in EpollEntry::on_events 2024-10-10 19:23:09 +08:00
909639fd70 Separate SegmentSlice from Segment 2024-10-09 19:23:46 +08:00
dad56e1664 Refactor the lock usages within RamInode 2024-10-08 16:56:02 +08:00
96efd62007 Use LocalIrqDisable in Subject 2024-10-04 21:55:48 +08:00
7d5a2b7a79 [VirtIO] Correct the error code when device not match 2024-10-04 10:28:59 +08:00
76d4b180d0 Increase the TCP socket buffer length 2024-09-30 20:37:57 +08:00
44760eb5fa Return when sigset size error for rt_sigsuspend, rt_sigprocmask and rt_sigaction 2024-09-30 20:24:23 +08:00
ee1656ba35 Move packet dispatch out of smoltcp 2024-09-30 16:00:51 +08:00
f793259512 Avoiding busy loop in sending packet and optimize device caps 2024-09-30 15:03:58 +08:00
8f50391a4e Optimize the clear procedure of the page table 2024-09-30 10:46:30 +08:00
4fa0e6334b Add RISC-V base support 2024-09-30 10:02:08 +08:00
839c2a6689 Extract shared code from timer 2024-09-30 10:02:08 +08:00
5c8e369057 Enable scheduler to fetch scheduling information directly from Thread 2024-09-27 10:21:45 +08:00
9cc63149f1 Remove cpu_affinity field from OSTD Task struct 2024-09-27 10:21:45 +08:00
8927031426 Remove priority field from OSTD Task struct 2024-09-27 10:21:45 +08:00
0a36760f7a Respect user-defined exit signal in clone() and clone3()
When calling clone() and clone3(), the user is allowed to specify a
signal to be sent to the parent process on exit. Respect this value by
storing it in the Process struct and sending the signal on exit.

Add a test as well to verify that the signal is properly delivered to
the parent.
2024-09-26 20:07:43 +08:00
130a0f7030 Homogenize arguments for clone() and clone3()
The arguments for both syscalls follow different formats. Rewrite the
CloneArgs struct to homogenize both formats into one.
2024-09-26 20:07:43 +08:00
fad39fdf7a Make TLB flush policy relaxed 2024-09-26 19:29:59 +08:00
52f1787d35 Remove syncronizations for the VmSpace PF handler 2024-09-26 19:29:59 +08:00
7407cc8091 Remove some repetitive locks forking Vmar 2024-09-26 19:29:59 +08:00
ac6d9256ef Improve the VmSpace forking API 2024-09-26 19:29:59 +08:00
d4036d1e9d Handle error in FsResolver::create_new_file() 2024-09-26 17:45:00 +08:00
f2af6136da Minor optimizations on both lat-syscall-stat and lat-syscall-open 2024-09-26 15:25:49 +08:00
fc77c474db Move and group methods 2024-09-26 15:22:16 +08:00
3fc396f5f1 Adjust the ephemeral port 2024-09-26 15:22:16 +08:00
eb3a033496 Refine some lock usages 2024-09-26 15:22:16 +08:00
b13a82dc61 Bump smoltcp version 2024-09-26 15:22:16 +08:00
51334c4a36 Clean up smoltcp dependencies 2024-09-26 15:22:16 +08:00
d62bb1ca76 Use static IP addresses 2024-09-26 15:22:16 +08:00
fb718fd440 Optimize the latency of lat-sig-install 2024-09-25 17:29:20 +08:00
21fedd1b60 Implement atomic wrapper for integer-like type 2024-09-25 14:47:37 +08:00
ae4ac38471 Optimize the cache and lock parts in MountNode 2024-09-25 11:22:24 +08:00
791c566b71 Optimize the cache and lock parts in Dentry 2024-09-25 11:22:24 +08:00
2c6dd074d1 Refactor the path lookup in FsResolver 2024-09-25 11:22:24 +08:00