Jeremy Soller
d07a33ec0b
Add timeouts to more driver spin loops
2025-11-26 09:30:45 -07:00
Jeremy Soller
28dd3596f3
More logging adjustments and set default level to info
2025-11-02 07:55:32 -07:00
4lDO2
6ff8c9fd9a
Handle level of indirection with procmgr thread fds.
2025-04-13 21:22:45 +02:00
4lDO2
96ca98c9b6
Replace virttophys by fd-based interface.
2025-04-13 21:22:45 +02:00
4lDO2
657bf13d7c
Use library call for iopl.
2025-04-13 21:22:45 +02:00
bjorn3
581d9eea33
Replace a whole bunch more repr(packed) with repr(C, packed)
2025-02-22 16:19:25 +01:00
bjorn3
e973f89139
Remove unnecessary feature gates
...
Some of these have been stabilized while others were likely no longer
used at all.
2025-02-22 14:38:33 +01:00
bjorn3
09de72e9a8
common: Fix mmap overwriting unintended memory in Sgl
...
If unaligned_length is for example 8193, the initial reservation would
be rounded up to the next page resulting in 12288. However the physmap
would previously round up to the next power of two forming 16384,
potentially overwriting one page of data directly after the reservation.
In case of bigger allocations, more pages could be overwritten.
2024-12-26 20:50:44 +01:00
Andrey Turkin
18b688a49c
Partial risc-v support
2024-10-17 20:07:17 +03:00
Andrey Turkin
09b5033fbd
Wholesale cargo fmt to get CI back to green
2024-10-17 20:07:05 +03:00
Jeremy Soller
fb06d3782f
Fix build on aarch64
2024-10-06 09:58:37 -06:00
Kamil Koczurek
e49fae6533
chore: fmt.sh
2024-09-30 13:22:34 +02:00
Kamil Koczurek
d2c82add9d
Move Io/Pio/Mmio from redox_syscall to common
...
* Fix Mmio repr from transparent to packed.
* Rename Mmio::from to Mmio::new.
* Remove dead imports around affected code.
* Minor formatting.
2024-09-30 13:01:36 +02:00
Timothy Finnegan
806e8b42b7
Added an assertion to map_bar that causes the calling driver to panic rather than crash the kernel
2024-09-20 18:42:03 -07:00
Timothy Finnegan
1ce1949416
Ran rustfmt to re-format my changes
2024-08-31 16:19:58 -07:00
Timothy Finnegan
f2decff457
Added link wrappers around the wikipedia link in SGL
2024-08-31 16:17:13 -07:00
Timothy Finnegan
e9e7e2934e
Added documentation for the dma, logger, and sgl modules
2024-08-31 16:16:35 -07:00
Timothy Finnegan
d7852b4836
Created docs for common/src/lib.rs
2024-08-31 14:48:35 -07:00
bjorn3
7935ed0248
Deduplicate setup_logging between all drivers
...
This will make it easier to change the way logging is done for all
drivers. This also fixes the log category for a couple of drivers as
well as makes failing to set the logger a fatal error. Only when a
logger is already set is it impossible to set another logger.
2024-07-24 22:00:40 +02:00
bjorn3
4d0008a32b
Rustfmt the common crate
2024-07-21 13:56:20 +02:00
bjorn3
fd8dabd1bc
Use the new scheme format in most places
...
The graphics subsystem still uses the old format as orbital manually
parses the fpath result.
2024-07-11 21:14:45 +02:00
4lDO2
7b2f4dda90
Use scatter-gather list for virtio framebuffer.
...
The current frame allocator limits requests to powers of two, between 4
KiB and 4 MiB. As such, a 8-bit color 1920x1080 framebuffer needs at
least two allocations.
2024-06-14 08:26:19 +02:00
Jacob Lorentzon
ff956fd3bb
Switch to libredox where applicable (fixed)
2024-03-18 22:09:25 +00:00
Jeremy Soller
98078650f8
Revert "Switch to libredox where applicable."
...
This reverts commit 2e7dbf1cc1 .
2024-03-18 15:00:52 -06:00
4lDO2
2e7dbf1cc1
Switch to libredox where applicable.
2024-03-18 19:23:05 +01:00
Jacob Lorentzon
e7a6bb6c81
Only do one memory:physical map per MCFG entry.
2024-02-20 22:27:14 +00:00
4lDO2
8d11fb34de
Fix impl Display for MemoryType.
2023-12-16 12:25:02 +01:00
4lDO2
ea73da92bf
Replace all physalloc usages with Dma.
2023-12-12 12:03:03 +01:00
4lDO2
0d99333c3f
Remove PhysBox.
2023-12-12 12:03:03 +01:00
Ivan Tan
3871c99e6e
add bcm2835-sdhci driver
2023-12-09 12:16:06 +08:00
4lDO2
089e8bac35
Move syscall::Dma to common.
2023-07-18 12:43:06 +02:00
4lDO2
094e3ba548
Add a crate for driver helpers.
2023-07-18 11:01:08 +02:00