Commit Graph

839 Commits

Author SHA1 Message Date
4ea3e49788 Refactor Vmar and VmMapping.
Co-authored-by: Zhang Junyang <junyang@stu.pku.edu.cn>
2024-11-13 17:29:57 +08:00
e453649d78 Correct the behavior when operating the root directory 2024-11-13 16:55:37 +08:00
ac71234b89 Remove {,un}register_observer 2024-11-13 14:15:44 +08:00
054c64542b Use PollAdaptor to signal SIGIO 2024-11-13 14:15:44 +08:00
27ae4cb9e7 Use PollAdaptor in EpollFile 2024-11-13 14:15:44 +08:00
e32fb2f91b Introduce PollAdaptor and Poller 2024-11-13 14:15:44 +08:00
f12e502ab0 Rename Poller to PollHandle 2024-11-13 14:15:44 +08:00
44b55f2ccf Revise the poll() method 2024-11-13 14:15:44 +08:00
38682e3ed9 Assign callback to shared irq if there's no single irq line 2024-11-12 17:47:40 +08:00
9965802f65 Disable send callback if sendqueue is not full 2024-11-12 17:47:40 +08:00
54e2ffbb71 Add check for argc, arg_ptr and env_ptr in InitStackReader 2024-11-12 11:35:46 +08:00
7fbe997bb3 Fix range_lock and flock to support signal interrupts and comply with wait API design 2024-11-12 11:33:44 +08:00
0ef55a396f Add a note about the FIXME 2024-11-09 17:09:41 +08:00
0c114e911b Revert "Make pause_timeout return EINTR"
This reverts commit 6421fd0b36.
2024-11-09 17:09:41 +08:00
6421fd0b36 Make pause_timeout return EINTR 2024-11-09 10:25:24 +08:00
b563fb639f Revise documentations 2024-11-09 10:25:24 +08:00
32b8e05cc3 Make *_or_timeout APIs concise 2024-11-09 10:25:24 +08:00
10cc85d588 Add syscall getpgid 2024-11-09 10:20:57 +08:00
f287110001 Fix InitStackReader to access given stack instead of current task 2024-11-09 10:06:45 +08:00
4c80367bc8 Fix CI lint error 2024-11-08 10:53:30 +08:00
9707b46c7f Bump smoltcp version 2024-11-08 10:49:02 +08:00
25a918d132 Print who and on which CPU the kernel panics 2024-11-07 16:39:47 +08:00
c1fd09fd41 Remove TimeWait socket if a new Syn is received 2024-11-07 14:21:52 +08:00
5233827160 Don't preempt without good reason 2024-11-06 21:53:55 +08:00
19b13d88e2 Fix clone_exit_signal test 2024-11-06 21:53:55 +08:00
768b182aba Make the code a bit cleaner 2024-11-06 21:53:55 +08:00
1fe74c9c92 Add sys_getrlimit and sys_setrlimit 2024-11-06 21:53:31 +08:00
c34706603a Special treat VM Space clearing 2024-11-06 21:52:53 +08:00
7a08d9a660 Support other SigStackFlags 2024-11-06 15:00:01 +08:00
561516df98 Export /proc/cpuinfo 2024-11-06 14:54:28 +08:00
aa52e3980e Minor fix on virtio-blk's config 2024-11-06 11:00:43 +08:00
a0a8493f98 Add TDX compilation test 2024-11-05 14:57:03 +08:00
4701eaf0cb Implementation of load average calculation and corresponding /proc entry
Moved everything into the kernel side. Add a SchedulerStats trait

Use 'fixed' to represent fixed-point numbers

Make the loadavg calculation lazy
2024-11-05 11:46:23 +08:00
efd49a96e3 Rename cond() to try_op() 2024-11-03 16:54:05 +08:00
50773de35f Fix a TDX minor issue 2024-11-02 10:17:01 +08:00
7ddfd42baa Make wait_events support timeout 2024-11-01 13:00:40 +08:00
f21394c679 Use more wait_events 2024-11-01 13:00:40 +08:00
bbfc2cd12d Make FileIo pollable 2024-11-01 13:00:40 +08:00
846b3ba169 Use LinkedList to store WorkItem to avoid additional heap allocation 2024-11-01 11:24:09 +08:00
2ac6e0e126 Avoid adding worker during workqueue enqueueing 2024-11-01 11:24:09 +08:00
96a153dfc5 Implement dummy metadata() for epoll and socket files 2024-10-30 14:09:02 +08:00
3461bd5de6 Add more boundary checks for epoll_wait 2024-10-30 10:42:16 +08:00
dc06d7c37d Support TCP sockets HUP&RDHUP events 2024-10-28 22:47:50 +08:00
b5610f3034 Report POLLNVAL in poll for invalid FDs 2024-10-28 14:33:32 +08:00
390aa411bd Beautify the poll() system call 2024-10-28 14:33:32 +08:00
6ece48c095 Refactor process table 2024-10-28 13:00:13 +08:00
1b23182dcc Fix the thread status ordering by limiting the API 2024-10-26 22:06:41 +08:00
e319641b4d Implement system call sched_get/set_affinity 2024-10-26 22:06:41 +08:00
3468ec213b Use CpuId with validity ensurance rather than u32 2024-10-26 22:06:41 +08:00
e60b5b7649 Refine mapping-related locks 2024-10-26 21:55:48 +08:00