vasilito
7aa2a165df
Merge remote-tracking branch 'upstream/master' into kernel-0.3.0
...
# Conflicts:
# src/acpi/mod.rs
# src/acpi/rsdt.rs
# src/acpi/rxsdt.rs
# src/acpi/srat/aarch64.rs
# src/acpi/xsdt.rs
# src/arch/x86_shared/start.rs
# src/context/mod.rs
# src/context/switch.rs
# src/main.rs
# src/memory/mod.rs
# src/numa.rs
# src/scheme/sys/mod.rs
# src/startup/mod.rs
2026-07-11 11:31:19 +03:00
R Aadarsh
bb06db93ce
Add support for querying numa info from userspace
2026-07-10 15:46:02 +05:30
vasilito
9360e493db
kernel: add sys mem resource
2026-07-08 13:59:25 +03:00
vasilito
d1ddac0e2c
kernel: add openat_into + dup_into for upstream 0.9.0 syscall API
2026-07-08 00:49:03 +03:00
vasilito
ca67b1da37
0.3.0: converge kernel onto upstream master
...
- Rebase all Red Bear kernel changes onto upstream master (4d5d36d4 ).
- Update version to 0.5.12+rb0.3.0 and add Red Bear author attribution.
- Switch redox_syscall direct dependency to local fork path (../syscall).
- Bump rust-toolchain.toml to nightly-2026-05-24.
- Regenerate Cargo.lock for +rb0.3.0 suffixes and path deps.
2026-07-06 18:43:52 +03:00
bjorn3
91ab8301f2
Fix warnings after updating rustc
...
Couple of features got stabilized, cpuid was made safe and there is a
new lint for function item to integer casts.
2026-05-27 20:53:10 +02:00
Wildan M
f70905d439
Resolve warnings
2026-05-23 00:04:34 +07:00
Wildan M
51f32e9edb
Allow cd to sys scheme
2026-05-02 18:25:44 +07:00
Wildan M
ba28216ae8
Downgrade locks to read
2026-04-29 21:26:44 +07:00
bjorn3
219d707362
Introduce HandleMap helper type
2026-04-13 20:51:24 +02:00
bjorn3
3a2200198a
Always compile the code of sys_fdstat
2026-04-13 19:43:44 +02:00
bjorn3
2405a7ebb3
Move kmain and kmain_ap to startup/mod.rs
2026-04-12 18:41:00 +02:00
bjorn3
89a29f4e56
Reduce usage of wildcard imports
2026-04-09 15:23:34 -06:00
bjorn3
f8d93023dd
Fix a couple of warnings
2026-03-28 17:07:33 +01: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
735c68ec30
Add ordered lock for WaitQueue mutex
2026-02-25 09:48:13 +07:00
Ibuki Omatsu
5a8858ff81
refactor: Initialize sys schem resources when they are first accessed.
2026-02-12 06:24:43 -07:00
Ibuki Omatsu
5ac00f5533
Remove namespace management from the kernel.
2026-01-20 20:43:34 -07:00
bjorn3
cc01d14d3b
Unconditionally enable sys_stat
2025-10-25 18:52:07 +02:00
Speedy_Lex
0931a7f49f
Resolve a huge portion of the clippy lints
2025-10-06 06:30:23 -06:00
bjorn3
ac35b7984a
Fix kernel debugger
2025-09-25 17:26:31 +02:00
Jeremy Soller
5dc6f7c3ba
lock ordering
2025-09-22 07:48:48 -06:00
bjorn3
da6f7adb42
Use HashMap rather than BTreeMap for scheme handles
...
According to the comments this previously wasn't done due to hashbrown
not having a const constructor. While it is true that HashMap::new() is
not const, HashMap::with_hasher() is const. HashMap::new() becoming
const is likely blocked on const traits.
This shrinks the kernel image by about 35kb.
2025-09-13 12:00:37 +02:00
bjorn3
cea93f7647
cargo fix --edition & rustfmt
...
Or to be precise:
RUST_TARGET_PATH=$(pwd)/targets cargo fix --edition \
--target targets/x86_64-unknown-kernel.json \
--target targets/i686-unknown-kernel.json \
--target targets/aarch64-unknown-kernel.json \
--target targets/riscv64-unknown-kernel.json \
-Zbuild-std=core,alloc --allow-dirty --bin kernel
cargo fmt
2025-09-10 16:44:36 +02:00
4lDO2
ef5de94150
Use sys scheme for kstop rather than signals.
2025-03-31 14:59:00 +02:00
4lDO2
3ae117b812
Outsource x86 RTC handling to rtcd.
2025-03-30 15:28:25 +02:00
Vincent Berthier
2da88c18c0
Add the sys:stat scheme
2025-02-22 14:27:10 +00:00
4lDO2
09eaf12201
Add optional fdstat sys scheme statistic.
2025-02-19 11:55:18 +01:00
4lDO2
97f60de4ef
WIP: Add getdents opaque_id
2024-09-11 22:09:29 +02:00
4lDO2
339271b4d7
Add getdents syscall, and switch schemes to it.
2024-09-11 22:09:26 +02:00
Andrey Turkin
d2ebc7ff05
Wholesale fix of warnings
...
Pretty straightforward changes. This commit tries to avoid making any non-trivial fixes.
2024-09-04 10:55:01 +03:00
4lDO2
d94baa2712
Run rustfmt.
2024-07-15 17:50:18 +02:00
Jacob Lorentzon
bf0fc66ac1
Improved scheme protocol.
2024-06-14 11:31:51 +00:00
Jeremy Soller
45f1c4e29e
Add rustfmt from relibc and apply it with cargo fmt
2024-01-17 13:52:01 -07:00
bjorn3
2d065083df
Use HashMap instead of BTreeMap where possible
...
This shrinks the kernel from 905840 bytes to 862408 bytes.
2023-12-13 19:55:20 +01:00
4lDO2
6b642d62a6
Disable trigger_debugger again.
2023-12-13 11:08:12 +01:00
4lDO2
3be015ce4d
Make sys: global.
2023-12-13 11:08:11 +01:00
4lDO2
036a4bdee4
Replace syscall::Scheme with KernelScheme.
2023-11-15 20:00:47 +01:00
4lDO2
da491fd5fc
Disable sys:trigger_debugger by default.
2023-10-08 11:21:59 +02:00
4lDO2
0cdfb886c0
Fix debugger for x86_64, disable sc debug.
2023-07-28 13:40:00 +02:00
Jeremy Soller
6fca481a0a
Merge branch 'mm' into 'master'
...
Usercopy migration
Closes #82 and #115
See merge request redox-os/kernel!219
2023-07-06 13:03:21 +00:00
4lDO2
56f88e80c2
Usercopy migration
2023-07-06 13:03:21 +00:00
4lDO2
fa7d1c821f
Replace Box<dyn Fn> with fn in sys: scheme.
2023-07-05 17:08:00 +02:00
Jeremy Soller
d298459686
Add sys:irq
2022-11-18 14:18:06 -07:00
Jeremy Soller
8e0f54cb31
Clippy fixes
2022-11-11 13:19:14 -07:00
Jeremy Soller
6b2439f1b9
Improved 32-bit x86 support
2022-08-18 14:57:15 -06:00
4lDO2
1cdd462244
Move the initfs scheme to userspace.
2022-07-27 10:52:22 +02:00
4lDO2
de28cc4918
Add a Scheme supertrait for kernel-only methods.
2022-07-27 10:51:45 +02:00
4lDO2
e6e1348072
Implement exec, and change UserGrant allocator.
2022-07-27 10:51:44 +02:00
Jeremy Soller
d331f72f2a
Use UTF-8 for all paths
2021-04-28 20:06:07 -06:00