Commit Graph

3361 Commits

Author SHA1 Message Date
bjorn3 bd8b218174 Don't return Result from spawn_irq_thread
It never returns an error.
2024-01-18 15:29:06 +01:00
Jeremy Soller ca8d73fb32 Merge branch 'graphics_rework' into 'master'
Move text console handling from vesad to a new fbcond daemon

See merge request redox-os/drivers!128
2024-01-15 02:00:50 +00:00
bjorn3 ed69a8ef6d Open scheme in non-blocking mode and ensure events aren't lost 2024-01-14 21:20:42 +01:00
bjorn3 4f6f4d7267 Prevent a potential deadlock when writing to multiple text consoles 2024-01-14 19:29:02 +01:00
bjorn3 fe4f0880af Couple of minor cleanups
Among other things this removes the seek implementation as it doesn't
seem to be used and didn't do anything anyway.
2024-01-14 19:10:47 +01:00
bjorn3 f64a6e4c6f Remove text mode support from vesad
This is now handled by fbcond
2024-01-14 18:22:52 +01:00
bjorn3 bc1a068a4f Introduce fbcond to replace text console handling inside vesad
This will in the future allow switching between graphical mode and text
mode virtual terminals while keeping alternative graphics drivers like
virtio-gpud enabled at all times rather than having to reset back to VGA
mode every time.
2024-01-14 18:14:40 +01:00
Jeremy Soller ad2c9b4b43 Merge branch 'startup-race' into 'master'
fix race conditions on startup

See merge request redox-os/ptyd!9
2024-01-14 14:37:15 +00:00
Ron Williams ff5666be61 fix race conditions on startup 2024-01-14 05:20:04 -08:00
bjorn3 b3b1fb1726 Remove VtMode::Text
It isn't used anywhere.
2024-01-13 19:36:08 +01:00
bjorn3 5c591cf475 Merge Display into GraphicScreen 2024-01-13 19:32:24 +01:00
bjorn3 24d1f95de3 Minor change 2024-01-13 19:25:49 +01:00
bjorn3 5f6edc7adc Fix warnings 2024-01-13 19:20:37 +01:00
bjorn3 5375d9e97d Remove some GraphicScreen direct fields accesses from TextScreen 2024-01-13 19:17:25 +01:00
bjorn3 6be07a3015 Use GraphicScreen inside TextScreen
In preparation for moving TextScreen to a separate daemon.
2024-01-13 17:30:52 +01:00
bjorn3 1a698dec98 Move text rendering to vesad::screen::text 2024-01-13 16:24:34 +01:00
bjorn3 ee2a36b889 Remove rusttype support from vesad
It is never enabled and would add a fair amount of complexity to a
system service which has effective root access despite sandboxing due to
being able to read and write display contents and input device events.
2024-01-13 16:11:36 +01:00
Jeremy Soller 87dc1d3e48 Merge branch 'fix_usbhidd' into 'master'
Fix usbhidd

See merge request redox-os/drivers!127
2024-01-12 18:44:08 +00:00
bjorn3 1ac2fdc572 Write events in usbhidd to input:producer
Writing to display.vesa:input seems to get ignored by orbital.
2024-01-12 19:35:35 +01:00
bjorn3 6561685af8 Fix MouseEvent for usbhidd 2024-01-12 19:35:35 +01:00
Jeremy Soller ce86aca558 Merge branch 'fix_absolute_mouse_events' into 'master'
Switch to absolute mouse events by default when running in a VM

See merge request redox-os/drivers!126
2024-01-12 17:58:50 +00:00
bjorn3 7a21573ebd Switch to absolute mouse events by default when running in a VM
This will transparently release the mouse grab of the VM when leaving
the screen edge, making it much easier to quickly switch between the VM
and other apps running on the host.
2024-01-12 18:33:29 +01:00
bjorn3 c2fd9125a7 Fix absolute mouse events with vmmouse
It is no longer possible to query the display size from inputd, so defer
conversion to display pixel coordinates to orbital instead. This also
avoids a lot of work every mouse event to query the display size as
orbital saves this information already.
2024-01-12 18:31:08 +01:00
bjorn3 bc7469f7cd Switch vmmouse global_asm block back to inline asm
There seems to be a bug somewhere in the global_asm block which causes a
SIGSEGV when making unrelated code changes to ps2d. Using an inline asm
block is easier to follow and less error prone around following the
calling convention.
2024-01-12 18:28:17 +01:00
Jeremy Soller 9422366782 ps2d: fix build on non-x86_64 2024-01-11 09:29:12 -07:00
Jeremy Soller 7892980eb4 Merge branch 'fix_vmmouse' into 'master'
Fix and re-enable vmmouse support

Closes #39

See merge request redox-os/drivers!125
2024-01-10 19:46:33 +00:00
bjorn3 7d4dd990e0 Try to enable vmmouse by default
This doesn't enable absolute mouse events yet as orbitral doesn't handle
them correctly.
2024-01-10 20:23:04 +01:00
bjorn3 f970a9c571 Check for vmware backdoor support before trying to enable vmmouse 2024-01-10 20:22:14 +01:00
bjorn3 8088cb8b20 Fix missing ret in global_asm block
This caused ps2d to get stuck in a crash loop when it's vmmouse support
is enabled.
2024-01-10 20:21:39 +01:00
Jeremy Soller 4534d74efd Merge branch 'search_dir_overrides' into 'master'
Allow specifying multiple search dirs for run.d

See merge request redox-os/init!11
2024-01-08 16:01:35 +00:00
Jeremy Soller 6d785b2964 Merge branch 'fetch_mac' into 'master'
Add support for fetching the mac address from the e1000d driver

See merge request redox-os/drivers!123
2024-01-08 15:59:45 +00:00
Jeremy Soller 9f2cfbd54d Merge branch 'fix_dnsd' into 'master'
Allow dnsd to create udp sockets

See merge request redox-os/netstack!43
2024-01-08 15:58:53 +00:00
bjorn3 e12a74854c Allow dnsd to create udp sockets
This is essential for the functioning of dnsd.
2024-01-08 14:10:49 +01:00
bjorn3 89ee1b4d66 Allow specifying multiple search dirs for run.d
The entries in the search dirs will be merged with the entry in the last
search dir taking priority in case multiple entries have the same name.
This allows putting system init configs in /usr/lib/init.d while the
user can overwrite it by placing a file with the same name in
/etc/init.d
2024-01-08 13:54:16 +01:00
bjorn3 9d5c8207db Try fetching the mac address directly from the network driver 2024-01-07 15:38:15 +01:00
bjorn3 6dd86d366a Add support for fetching the mac address from the e1000d driver 2024-01-07 15:36:49 +01:00
Jeremy Soller 2af6508c3e Merge branch 'libredox' into 'master'
Migrate to libredox and redox-scheme.

See merge request redox-os/ptyd!8
2024-01-06 16:05:37 +00:00
Jeremy Soller be6696a81b Merge branch 'libredox' into 'master'
Migrate to libredox and redox-scheme

See merge request redox-os/ipcd!6
2024-01-03 16:27:52 +00:00
4lDO2 f76ecc35c4 Migrate to libredox and redox-scheme. 2023-12-25 19:18:25 +01:00
4lDO2 92d45336ff Fix tests. 2023-12-25 11:37:02 +01:00
4lDO2 771fffbfd6 Migrate to libredox and redox-scheme. 2023-12-20 19:12:51 +01:00
Jeremy Soller 4b1bf16e01 Merge branch 'remove_physfree' into 'master'
Remove physfree

See merge request redox-os/drivers!122
2023-12-16 18:00:57 +00:00
4lDO2 04f60cf7be Fix ihdad. 2023-12-16 13:12:17 +01:00
4lDO2 8d11fb34de Fix impl Display for MemoryType. 2023-12-16 12:25:02 +01:00
4lDO2 2e1e007836 Fix inputd path parsing. 2023-12-12 12:03:03 +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
Jeremy Soller f7c2426ff6 Fix signal handling 2023-12-11 16:21:23 -07:00
Jeremy Soller b48a8c830e Fix build on 32-bit systems 2023-12-11 10:11:21 -07:00
Jeremy Soller ea4c2f71e0 Merge branch 'ivan/bcm2835-sdhcid' into 'master'
add bcm2835-sdhci driver

See merge request redox-os/drivers!121
2023-12-11 16:09:03 +00:00