bjorn3
2fc2d5897a
Fix a couple of unused import warnings
2026-03-30 18:38:25 +02:00
bjorn3
675ba2ea51
rmm: Make a couple more methods safe
2026-03-29 17:00:36 +02:00
bjorn3
c51aa1ef86
rmm: Make a couple of methods safe
2026-03-29 14:16:53 +02:00
bjorn3
a5aeea9cfc
rmm: Remove PageMapper::{map,unmap}
...
There is already (un)map_phys.
2026-03-29 14:16:53 +02:00
bjorn3
a876d66648
rmm: Reduce visibility of PageTable methods
...
This disallows direct manipulation of the page tables. Only manipulation
through PageMapper is allowed.
2026-03-29 14:16:53 +02:00
bjorn3
abf710b4a2
Move handling of kernel page table entry copying to RMM
...
This way it can ensure those page table entries never get unmapped,
ensuring they are kept in sync between all processes.
2026-03-29 14:16:53 +02:00
bjorn3
604e1729cb
Rustfmt
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
bjorn3
f5aff74fc9
Explicitly ignore field of PageQueueEntry::Other
...
This fixes a warning
2026-03-29 14:16:35 +02:00
bjorn3
b5603422be
Check at compile time that KernelMapper is writable if necessary
2026-03-28 23:22:19 +01:00
bjorn3
0d578775f9
rmm: Indicate which PageMapper methods can allocate
2026-03-28 22:51:32 +01:00
bjorn3
d02312055e
rmm: Couple of minor cleanups
2026-03-28 22:35:26 +01:00
bjorn3
3593c53146
rmm: Remove Arch::init
...
No architectures implement it.
2026-03-28 22:07:48 +01:00
bjorn3
db85237114
rmm: Partially hard code main.rs to EmulateArch
2026-03-28 22:06:24 +01:00
bjorn3
d06ade297d
rmm: Remove fallback impl of invalidate_all
...
It doesn't work on all non-x86 architectures.
2026-03-28 22:02:34 +01:00
bjorn3
a913414c7f
rmm: Nicer formatting of unsafe blocks
2026-03-28 22:00:43 +01:00
bjorn3
cc20bcd405
rmm: Fix warnings on x86
2026-03-28 21:57:51 +01:00
bjorn3
a3843f8fb5
rmm: Assert constants at compile time
2026-03-28 21:57:41 +01:00
bjorn3
5c480806be
Add rmm to the workspace
2026-03-28 21:39:34 +01:00
bjorn3
ef508cc0ba
Add 'rmm/' from commit 'e543cbe621b21875549c9d12a73810633f3d0c63'
...
git-subtree-dir: rmm
git-subtree-mainline: 76b0691e14
git-subtree-split: e543cbe621
2026-03-28 20:44:33 +01:00
bjorn3
76b0691e14
Remove rmm submodule
2026-03-28 20:43:48 +01:00
bjorn3
f8d93023dd
Fix a couple of warnings
2026-03-28 17:07:33 +01:00
Philipp Bartsch
5865ec0790
/scheme/sys/cpu: Add aarch64 feature detection
...
This only lists features from ID_AA64ISAR0_EL1 and ID_AA64ISAR1_EL1.
For other features one would have to evaluate more registers.
2026-03-26 22:15:03 +01:00
Philipp Bartsch
2d5e2b39f5
Drop extra debug print
2026-03-26 00:49:33 +01:00
Philipp Bartsch
a60cc25015
Update aarch64 implementers list
...
Two vendors were missing compared to ARM's official list.
https://developer.arm.com/documentation/ddi0601/2025-12/AArch64-Registers/MIDR-EL1--Main-ID-Register
2026-03-26 00:49:11 +01: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
Wildan M
74895c4f0f
Fix ecpect file
2026-03-17 19:30:17 +07:00
Wildan M
c70035865e
Fix expect files
2026-03-17 19:24:10 +07:00
Wildan M
727f9658ed
Fix CI sysroot
2026-03-17 18:57:21 +07:00
Wildan M
bbcb3d19be
Try using uname, fix relibc
2026-03-17 18:44:28 +07:00
Wildan M
65bd8e3264
Add boot check to CI
2026-03-17 18:32:51 +07:00
Wildan M
52d9fcc962
Try use relibc tests
2026-03-17 18:20:47 +07:00
Wildan M
d317f84cd4
Change uname to kernel commit, Fix CI build
2026-03-17 17:51:29 +07:00
Connor-GH
d81ba0645b
/scheme/sys/uname: use commit hash instead of time for reproducibility
2026-03-15 17:21:46 -05:00
Connor-GH
ea47151757
/scheme/sys/uname: include the "version" info
...
With this change, we use the recently-added `COOKBOOK_TIME_IDENT`
environment variable at compile time to get the "version" info for the
uname scheme. This field is unspecified by POSIX what it should have,
but most kernels (including Linux, XNU, NetBSD, etc.) put the build
time here.
2026-03-15 15:53:02 -05:00
Wildan M
44b6a58032
Add more context to deadlock debug messages
2026-03-14 08:49:40 -06:00
Ibuki.O
3934ea454d
feat: Implement translation of std_fs_call to each function
2026-03-14 11:37:07 +09:00
Connor-GH
8f468ec106
syscall: remove comment about test vs bt x86 instructions
...
According to Agner Fog's documentation
(https://agner.org/optimize/instruction_tables.pdf ), the following information
is true:
These instructions have identical latency and throughput, except for Zen
5, which lists `test` as having reciprocal throughput of 0.25 cycles,
and `bt` having reciprocal throughput of 0.33 cycles. This rules out the
`bt` instruction for being the ideal instruction.
The other `test` instructions were removed as candidates because,
regardless of the size of the memory fetched at the address, at least 64
bytes will need to be fetched because it will be stored in the cache
line. The WORD and DWORD cases can be ruled out because we cannot assume
that `rsp + 16` or `rsp + 17` will not be on a 64-byte alignment
boundary, which would cause two cachelines to be essentially filled with
garbage we don't care about. The best case scenario is that we only need
to fill one cache line with garbage, which is what the BYTE version does
every time.
2026-03-12 09:41:29 -05:00
Wildan M
84754dfc5d
Solve borrow checking by downgrading waitqueue lock
2026-03-11 09:42:06 +07:00
Wildan M
f07725682f
Add ordered lock for WaitQueue mutex without solving borrow check
2026-03-11 09:24:45 +07:00
Wildan M
60573e24f3
Solve borrow checking by downgrading condition.wait lock
2026-03-11 09:07:52 +07:00
Wildan M
046c8ced0d
Add lock token to pipe queue without solving borrow checker
2026-03-11 08:12:07 +07:00
Wildan M
7ebb5f2a3d
Solve borrow checking by downgrading locks
2026-03-11 08:00:48 +07:00
Wildan M
44f2214971
Partially solve borrow checking with WaitQueue
2026-03-11 07:27:21 +07:00
Wildan M
771ebdb39f
Partially solve borrow checking with PreemptGuard L1
2026-03-11 06:34:37 +07:00
Wildan M
73c2df9e33
Add lock token to user states, without solving borrow check
2026-03-10 23:56:15 +07:00
Wildan M
eeb03bdcb1
Revert "Add ordered lock for WaitQueue mutex"
...
This reverts commit 735c68ec30 .
2026-03-10 12:11:09 +07:00
Wildan M
d5ed9d8007
Optimize context spawn and init
2026-03-10 05:59:35 +07:00
Wildan M
c4e86bfffd
Change time offset to RwLock
2026-03-10 05:58:26 +07:00