Jeremy Soller
2d9f2015d0
Add upper table fds to kernel.proc filetable
2025-11-14 15:06:37 -07:00
Jeremy Soller
42f9f04188
Require kfpath implementation, add to acpi scheme
2025-11-14 14:19:33 -07:00
Jeremy Soller
61ad67fbfe
Improve display of upper table in iostat
2025-11-14 13:55:55 -07:00
4lDO2
33dbf2458e
only clear RC_USED_NOT_FREE with freelist locked
2025-11-14 20:06:18 +01:00
4lDO2
96552163f6
Clear RC_USED_NOT_FREE even for contention case.
2025-11-14 20:06:18 +01:00
4lDO2
dc33c67997
Fix potential refcount underflow from fetch_sub.
2025-11-14 20:06:18 +01:00
Jeremy Soller
cbea1aca3d
Implement kfpath on more schemes
2025-11-14 11:36:49 -07:00
Jeremy Soller
64ea4251ee
Debug SYS_MREMAP
2025-11-13 15:55:02 -07:00
Jeremy Soller
e6edef2d8e
Downgrade addrspace outside futex loop
2025-11-12 10:34:18 -07:00
Jeremy Soller
7834392dba
Use hashmap for futex
2025-11-12 08:03:24 -07:00
4lDO2
70256a5b2f
Revert "Fix i686 using cmpxchg8b-based AtomicU64 for stats."
...
This reverts commit 21f2d8f3e4 .
2025-11-12 11:07:09 +01:00
4lDO2
21f2d8f3e4
Fix i686 using cmpxchg8b-based AtomicU64 for stats.
2025-11-12 10:59:51 +01:00
Jeremy Soller
01ec650b1e
Add support for userspace stack traces using usercopy
2025-11-10 08:54:06 -07:00
Jeremy Soller
531dfaa3e1
Format
2025-11-06 22:14:25 -07:00
Jeremy Soller
8ae1ced55d
Recursively trigger event queues
2025-11-06 22:14:13 -07:00
Jeremy Soller
c3437ab6eb
Ignore any opens with event: or time:
2025-11-06 09:15:52 -07:00
Jeremy Soller
60af085356
Improve cpu stat accuracy
2025-11-03 20:42:08 -07:00
Jeremy Soller
aa50069e15
Remove unnecessary log
2025-11-01 20:49:06 -06:00
Jeremy Soller
91b835d29f
Reduce logging significantly
2025-11-01 20:24:11 -06:00
bjorn3
65273ea898
Replace all Arc::try_new with Arc::new
...
The global allocator panics when out of memory rather than returning an
errors. In addition there are plenty of other places where we don't
handle allocation failure anyway. At some point in the future we should
systematically handle out of memory conditions, but until then let's not
pretend we do and get rid of the usage of the unstable allocator_api
feature that is unlikely to get stabilized any time soon.
2025-10-26 12:44:52 -06:00
bjorn3
e101629377
Inline a bunch of functions in KernelMapper
2025-10-26 12:44:52 -06:00
bjorn3
85b5487b5b
Couple minor cleanups to the global allocator
2025-10-26 12:44:52 -06:00
bjorn3
3b1fd27431
Remove byteorder dependency
2025-10-26 12:43:08 -06:00
bjorn3
bc3a59abb3
Minor simplification to profiling::nmi_handler
2025-10-26 18:27:29 +01:00
bjorn3
0f7b16d89d
Partially use cfg!() rather than #[cfg] for controlling the profiling module
...
This only adds a pointer worth of overhead per cpu core in the
PerCpuBlock struct.
Also fix a bunch of unsafe_op_in_unsafe_fn warnings in the profiling
code.
2025-10-26 18:27:29 +01:00
bjorn3
4b89feab41
Fix a couple of dead code warnings
2025-10-26 12:07:56 +01:00
bjorn3
1498376360
Unify generic irq handling between x86 and x86_64
2025-10-25 19:44:03 +02:00
bjorn3
3652b693ba
Remove usage of iterator_try_collect
2025-10-25 11:34:55 -06:00
bjorn3
164c890830
Remove thread_local feature gate
...
We use the PerCpuBlock instead of ELF TLS
2025-10-25 11:34:55 -06:00
bjorn3
cb718f767a
Remove a bunch of unused __*_start/end symbols
2025-10-25 19:20:01 +02:00
bjorn3
e8acd82074
Directly define __usercopy_{start,end} in the usercopy functions
...
As opposed to requiring a linker script
2025-10-25 19:12:27 +02:00
bjorn3
cc01d14d3b
Unconditionally enable sys_stat
2025-10-25 18:52:07 +02:00
bjorn3
a57c8e410d
Avoid warnings from rust-analyzer for the panic handler
...
Rust-analyzer runs cargo check --all-targets which also checks the test
configuration where previously there would be a bunch of warnings for
unused things due to the panic handler being configured out.
2025-10-19 14:30:53 +02:00
bjorn3
021cdf47f4
Fix a bunch of warnings
2025-10-19 14:27:43 +02:00
bjorn3
9d5ad06b30
Move some code from the trampoline to global_asm!()
2025-10-19 06:23:39 -06:00
bjorn3
4b16e66164
Set arm64 exception handler before entering the rust world
2025-10-19 06:23:39 -06:00
bjorn3
d31e552d08
Set riscv exception handler before entering the rust world
2025-10-19 06:23:39 -06:00
bjorn3
ff65afd003
Don't depend on the stack setup by the bootloader
...
This way we can choose our own size for the stack and don't have to
identity map it manually. Also this way the bootloader doesn't have to
change the stack pointer right before calling into the kernel (which it
currently does in an unsound way)
2025-10-19 06:23:39 -06:00
bjorn3
b7a69a26ba
Reduce indentation in madt x86 init
2025-10-19 06:23:39 -06:00
bjorn3
7ea41f4fee
Remove no longer necessary lint allow
2025-10-19 11:49:14 +02:00
bjorn3
b09659ac25
Remove unnecessary unsafe blocks in naked functions
2025-10-19 11:48:46 +02:00
Jeremy Soller
c9653525a0
Fix compilation with sys_stat feature
2025-10-12 15:45:50 -06:00
Speedy_Lex
0931a7f49f
Resolve a huge portion of the clippy lints
2025-10-06 06:30:23 -06:00
Jeremy Soller
db8fb14614
Fix compilation on other archs
2025-10-04 11:58:04 -06:00
Speedy_Lex
ea812e8f2a
Run cargo fmt
2025-10-04 01:06:15 +02:00
Speedy_Lex
d38002969c
Fixes for rust update
2025-10-04 00:55:26 +02:00
bjorn3
bc9273057d
Remove a bunch of double references from AddrSpaceWrapper::move
2025-10-03 20:53:26 +02:00
bjorn3
db5e6184af
Remove unnecessary add_ref in ProcScheme::kfmap
...
Grant::allocated_shared_one_page already adds a reference. This fixes a
memory leak
2025-09-27 19:44:26 +02:00
bjorn3
6445f04ac4
Avoid overwriting expected count for special frames used by multiple contexts
2025-09-26 23:38:30 +02:00
bjorn3
4db2c919ef
Nicer printing of frame refcount mismatch
2025-09-26 23:28:01 +02:00