Wildan M
40e76875d7
Prevent kstack from leaking
2026-05-20 13:35:47 +07:00
Wildan M
805f921e10
Use weak context for Proc and Futex
2026-05-20 12:57:37 +07:00
Wildan M
8c9def2d73
Lazily clean up futex
2026-05-13 20:49:02 +07:00
Wildan M
ff11f47404
Add futex, pipe, timeout subscribers
2026-05-13 10:46:38 +07:00
Wildan M
1070efaec8
Solve some lock ordering
2026-04-30 21:59:19 +07:00
Wildan M
844f393ae8
Downgrade context sigcontrol to read
2026-04-29 21:48:31 +07:00
Wildan M
ba28216ae8
Downgrade locks to read
2026-04-29 21:26:44 +07:00
bjorn3
7827cb6c78
Unify context list again now that we have a run queue
...
This simplifies code and ensures that exiting a context will properly
remove it from the list of contexts.
2026-04-26 06:49:54 +07:00
bjorn3
2405a7ebb3
Move kmain and kmain_ap to startup/mod.rs
2026-04-12 18:41:00 +02:00
bjorn3
654ee6ca3e
size_of and align_of are part of the prelude nowadays
2026-04-09 15:23:34 -06:00
Speedy_Lex
ee1260363c
Fix many clippy lints
2026-04-08 19:40:41 +01:00
bjorn3
ab4abf63c9
Deduplicate Page and other paging related things between architectures
2026-04-03 22:15:00 +02:00
Wildan M
d835a3d8f0
Solve all borrow checker leaving some violation
2026-04-01 08:42:18 -06:00
Wildan M
a42ec44dbf
Partially solve borrow rules
2026-04-01 08:42:18 -06:00
Wildan M
3b5a0e4c60
Apply ordered lock to AddrSpaceWrapper without solving borrow checker
2026-04-01 08:42:18 -06:00
Wildan M
6e0143cf0d
Store context to per cpu
2026-03-31 15:29:47 +07:00
bjorn3
c51aa1ef86
rmm: Make a couple of methods safe
2026-03-29 14:16:53 +02:00
bjorn3
882007f827
Remove unused UserSlice::read_u64
...
This fixes a warning. It can always be re-introduced if we ever need it.
2026-03-29 14:16:36 +02:00
Ron Williams
fde164b2a0
Revert "Deficit based Weighted Round Robin Scheduler"
...
This reverts commit b7dabfc3c2 .
2026-03-22 18:44:41 +00:00
Akshit Gaur
b7dabfc3c2
Deficit based Weighted Round Robin Scheduler
2026-03-22 07:00:31 -06:00
Ibuki.O
3934ea454d
feat: Implement translation of std_fs_call to each function
2026-03-14 11:37:07 +09:00
Wildan M
6307446ede
Solve borrow rules to LockedFdTbl
2026-03-09 15:57:38 +07:00
Wildan M
8412321568
Add lock token to FdTbl without borrow check
2026-03-09 13:12:19 +07:00
Wildan M
206f82709a
Demote LockedFileDescription to solve borrow rules
2026-03-09 12:29:24 +07:00
Wildan M
8f270795da
Partialy solve borrow checking
2026-03-09 11:47:07 +07:00
Wildan M
f40b84a5cc
Add lock token to FileDescription, without borrow check
2026-03-09 11:23:51 +07:00
Wildan M
fd9c651410
Do not allocate on unneeded Vec
2026-03-07 09:15:20 -07:00
bjorn3
ea847f428f
Fix compilation with the debugger feature enabled
2026-03-07 12:19:24 +01:00
auronandace
14b8c2b0c1
enforce two lints and collapse some ifs
2026-03-03 14:51:32 +00:00
auronandace
f0f158e5d6
eliminate 2 unwraps in syscall fs
2026-03-02 17:11:51 -07:00
Marsman
507d899587
fix: validate timespec in nanosleep
2026-02-28 07:02:30 +00:00
Wildan M
c72e0a67f9
Prevent drop on AddrSpace
2026-02-27 10:47:45 +07:00
Wildan M
ac0bd2af74
Fix compilation
2026-02-26 04:33:10 +07:00
Wildan M
14349d1649
Propagate ordered lock of event trigger
2026-02-25 11:42:31 +07:00
Wildan M
3c2b1a11c5
Add ordered lock for time offset mutex
2026-02-25 11:42:17 +07:00
auronandace
7770a9452c
avoid direct indexing futexes
2026-02-23 11:57:28 +00:00
auronandace
aeb75d577f
add assert to ensure both arrays are equal length
2026-02-21 20:37:08 +00:00
auronandace
8689e31674
remove an instance of direct indexing
2026-02-21 15:28:55 +00:00
auronandace
df469ddcb3
apply is_multiple_of lint
2026-02-21 08:39:26 +00:00
Jeremy Soller
934162f35a
Implement stdfscall
2026-02-11 12:12:49 -07:00
bjorn3
e14a20aae2
Mark two functions as private
2026-02-07 12:59:24 +01:00
bjorn3
6ddd0a9098
Replace scheme::schemes() with scheme::get_scheme()
...
We never need to iterate over all schemes. We only ever need to access
individual schemes.
2026-02-06 20:54:42 +01:00
Jeremy Soller
2055a205f1
Remove legacy path message
2026-01-29 10:12:04 -07:00
Ibuki Omatsu
5ac00f5533
Remove namespace management from the kernel.
2026-01-20 20:43:34 -07:00
Anhad Singh
a245e49e75
fix(syscalls/futex): premature timeout
...
Previously, if a futex with a timeout was woken up (even via
`futex_wake`), it was treated as though the timeout had expired. When
the timeout expires, the scheduler sets `wake` to `None` and unblocks
the process. Hence if `wake` is `None` and if a timeout was given to
futex, it has expired. Otherwise the process was woken up by
`futex_wake`.
Signed-off-by: Anhad Singh <andypython@protonmail.com >
2026-01-07 14:45:01 +11:00
Ibuki Omatsu
e30ed9ab6a
Introduce syscall6. Add unlinkat and remove unlink and rmdir.
2025-12-17 18:31:04 -07:00
bjorn3
c089667ade
Remove support for the legacy packet user schemes
2025-12-13 15:52:30 +01:00
bjorn3
3bf880e008
Correctly handle MAP_FIXED with a zero address
2025-12-09 23:09:19 +01:00
Jeremy Soller
91ba44e2fa
Implement F_DUPFD_CLOEXEC
2025-11-17 17:40:39 -07:00
Jeremy Soller
64ea4251ee
Debug SYS_MREMAP
2025-11-13 15:55:02 -07:00