Commit Graph
68455 Commits
Author SHA1 Message Date
PulkoMandy 3d2b40d59e efi: synchronize style fixes accross versions of arch_start
The arch_start code is quite similar for all efi architectures and may
be unified someday. Try to keep it as similar as possible by
synchronizing at least style fixes (variables renaming, line breaks,
format macro fixes).

No functional changes intended.

Change-Id: Ie4d54e73020e05a2af6755b7f5a65b92b4953080
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10106
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-12-18 10:45:08 +00:00
PulkoMandy b42876eb45 bootloader fat: use shared utf16 conversion function
Change-Id: I9264e633479ea039a2c004c3331453754a92ca43
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10105
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-12-18 10:45:08 +00:00
Alexander von Gluck IV b157c2179a boot/platform/efi: Add network booting support
Similar to open firmware implementation.
This allows to load the kernel from a remote_disk_server.

IP address is recovered using LoadOptions with a syntax similar to the
Linux kernel network boot "ip" parameter. If this is not set, no network
booting is attempted, in order to not slow down normal booting by
waiting on network traffic.

Change-Id: I17738bbcde85921672965b9936a2b484f1e57c6c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3678
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-18 10:45:08 +00:00
Augustin Cavalier ea58f1fc7c kernel/vm: Add missing Put() when removing a reserved area.
This code is triggered whenever an area gets resized to be as large
as, or larger than, a reservation. That can happen with the new heap
when it grows to rather large sizes, in which case we would then leak
the address space when the team was deleted (including all the page
table memory.)

Fixes memory leaks seen e.g. when running Rust compiles, and especially
other short-lived but high-memory-use applications.
2025-12-15 21:24:22 -05:00
Augustin Cavalier 51d39dc74f kernel/vm: Put the address space in get_memory_map_etc.
We don't need a lock here (as we just want the TranslationMap),
but we do need to release the reference we acquired when finished,
otherwise the address space will be leaked.
2025-12-15 21:21:51 -05:00
Augustin Cavalier 24f5beed39 kernel/vm: Minor code cleanup to get_memory_map_etc.
* Move variable declarations closer to use.

 * Adjust comment to be similar to other functions.

No functional change.
2025-12-15 21:21:17 -05:00
Augustin Cavalier ab701fd69e kernel/vm: Print thread ID as decimal, not hex.
Matches the other places this is done.
2025-12-15 21:19:56 -05:00
Augustin Cavalier 0110436f37 ProcessController: Add casts to appease GCC2. 2025-12-15 13:48:57 -05:00
Augustin Cavalier 1e3d21fd30 ProcessController: Allow manual resizing of the replicant window.
There's no real reason to forbid it.

Fixes #13173.
2025-12-15 13:38:42 -05:00
Augustin Cavalier f77f533f72 ProcessController: Scale width by height.
This makes ProcessController look a whole lot nicer on HiDPI.
Tested with 12pt (should be the same), 18pt, 24pt fonts.
2025-12-15 13:34:55 -05:00
Augustin Cavalier 4523120b97 ProcessController: Refactor size computation.
* Don't duplicate the logic, put it all in one place: in a
   static method of the main class.

 * Compose sizes in PCWindow.

Fixes #18049.
2025-12-15 13:34:23 -05:00
Augustin Cavalier 42bb2865fd ProcessController: Base margin on font size.
Arrows don't overlap bars in HiDPI anymore.

Fixes #16306.
2025-12-15 11:58:02 -05:00
Nathan Patrizi 0ce28c177c Tracker: Item view shows number of selected items
Fixes #18811

Change-Id: I4e9abbbf58ec693f0af9b136d973603fa437cdfd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10048
Reviewed-by: waddlesplash <[email protected]>
2025-12-15 16:01:35 +00:00
nipos 9e21e2fda7 Tracker: Fix missing pose view border in save panel
Fixes #14771

Change-Id: Iceaed5d1d55402303a70737608a30bfe23db3e93
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10109
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-12-15 14:26:00 +00:00
Niklas Poslovski 7914fda599 People: Pass received BMessage of PersonView on to BView if not directly needed
Fixes #16197

Change-Id: Ic98062c57fca9e8454c10e418408af7018474be7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10073
Reviewed-by: nephele nephele <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-14 17:54:36 +00:00
Andrew Lindesay 94c99bfdc9 HaikuDepot: Handling for 503 with delayed retry
Change-Id: Ic7f2f250a488ca408b2ef988ba1d65b135b9fccc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10016
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: nephele nephele <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-14 02:01:31 +00:00
Jérôme Duval 1a163d0ce9 Terminal: support for hyperlinks (#18827)
* support for invisible text
* support for DECSTR - soft terminal reset

Change-Id: I5cc333c7409a16fb41bcd57c5ebf2f277bd31370
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9661
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-13 21:25:16 +00:00
DigitalBox98 cfd2df0eba Haiku Book: add device kit
Change-Id: Ic2569ae2c6857e1c00ab9068743042ed51d7ea5f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9519
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-13 20:20:07 +00:00
Samuel Rodríguez Pérez b6506ee083 input mouse mm: Fix two-finger scrolling by checking for two fingers only
This bug was hidden from the previously used values of fingerWidth mapped
to specific behavioural flags on Synaptic devices.

Change-Id: I333bdfc6b3eba9b473d9475ec88006347d1462be
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9918
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: nephele nephele <[email protected]>
2025-12-13 20:14:21 +00:00
Samuel Rodríguez Pérez ad8a550efe input mouse mm: Allow scroll movement and edge scrolling on tap drag scenarios
This enables the code path to allow  scroll movement and edge scrolling
on tap drag scenarios by checking for any button event instead of using
the previous button state.

Change-Id: I99914bfea0f5b257646cc8247b5bcaffa51ed49e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9917
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-13 20:13:36 +00:00
Samuel Rodríguez Pérez e2685c735f input mouse mm: Reset tap statuses on any button presss or on more than two fingers
This fixes incorrect fast double taps issuing click and other misbehaviours
when on two-finger or more-than-two-finger events happened at the same time.
Apart from that, it fixed incorrect tap statuses checking for all change of
buttons instead of only from kLeftButton.
The latest is commented to easily find each tap related button status changes
and checks retated to tap handling.

Clean up - Removal of kLeftButton check that was in place from previous as
a condition for tap related statuses. Now checking for whatever button.

Change-Id: Ied6a829022cd4e8601a7432fdfc71b08446a642d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9916
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-13 20:13:36 +00:00
Samuel Rodríguez Pérez cd5774201a input mouse mm: Introduce helper funtions for finger handling
It fixes devices that do not store finger flags on fingerWith field
such as Elantech touchpad devices. I think only Synaptic touchpad
use those.

Added are TODO items to change the inner working of these funtions
after a future refactorisation of input devices to handle those flags
and efective finger width values as separate entities.
Commented is "nFingers" with meating of number of fingers which is
expeted to be different from "fingers" which is a finger bitmap
where each bit represent an identified finger.

Change-Id: I5af5d5f86a5ea4f4f06169849afe99395a5e952b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9913
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-13 14:20:38 +00:00
DigitalBox98 4b5001248d MediaPlayer: GuessMimeType() if no supertype and traverse link
... (to handle media files symlinked to volumes w/o attributes).

Change-Id: I0ef2caa557769fee4781cd0ed44ff33d69e64103
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10006
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-13 14:06:12 +00:00
Andreas Henriksson 3329194a32 bfs: support functions for moving an inode
Change-Id: I94bebc87b4b6ce467867f5672ffff6c7633f74d6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/924
Reviewed-by: Axel Dörfler <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-12-13 13:59:12 +00:00
nipos 2ae816f515 translators: Use BSlider with triangle thumb and without filling
Fixes #14898

Change-Id: Ifb63859d869a52b42b4948183a0b6045d665c149
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10075
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-13 13:54:17 +00:00
nipos ad9735648b HaikuControlLook: Avoid changing the HighColor of the parent view in DrawSliderTriangle
Change-Id: Id50b89e7674e6bab9bbe0c4e9bf8e4267778a8d6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10074
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: nephele nephele <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-13 13:54:17 +00:00
Humdinger 4f361b3c3d ActivityMonitor: fix missing translatable strings
Added missing SystemInfoHandler.cpp to Jamfile for the missing new
string "No thermal sensor".

Change-Id: I308bf29658a623bcfd552ff4c418ed3baab8833a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10103
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-13 13:51:12 +00:00
Autocomitter c0e88245dc Update translations from Pootle 2025-12-13 08:10:41 +00:00
Augustin Cavalier 0630e71e0e BuildSetup: Remove some unnecessary disabling of DEBUG.
All these can be built with DEBUG=1 now, it appears.
I tested most of the others and they still fail.

(The settings in this section can be overridden by setting something
else in UserBuildConfig, it appears; they're likely only relevant
when trying to build the entire tree with DEBUG=1.)
2025-12-12 21:19:35 -05:00
Augustin Cavalier a7ee307329 kernel/fs: Clean up and improve logic around address copying.
This follows up after 3b7038d884: migrate the copy-from-userland
logic into a separate method, migrate all consumers to use it, and
add more missing checks and initializations.

Change-Id: I6a2e11a2d0fae7ecf1c94f5b112fa946aaef68ae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10055
Reviewed-by: Jérôme Duval <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-12-12 05:20:38 +00:00
Augustin Cavalier 758538e666 UDF: Put the root node in unmount.
Fixes #19845.
2025-12-09 21:33:29 -05:00
Augustin Cavalier 0125f39fd4 UDF: Upgrade some more TRACEs into ERRORs.
Otherwise it won't be clear why some volumes aren't able to
be mounted.
2025-12-09 21:33:13 -05:00
Máximo Castañeda c33f1b8ccd Deskbar: fix loop exit when adding a team
We want to check all apps until we find the one we are looking for, not
just the first.

Error introduced in fb885767b6.

Fixes: #19152
Change-Id: I8b7c5a7c2fcd530b13c70f7a1addda583e30ecdc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10076
Reviewed-by: Máximo Castañeda <[email protected]>
2025-12-10 01:29:08 +00:00
Augustin Cavalier 333909db33 kernel: Adjust missed OpenHashTable include. 2025-12-09 16:18:49 -05:00
Augustin Cavalier 1257e2ba22 Move most headers containing generic template classes out of kernel/util.
This follows on the move of BitUtils. Many of these headers were
already used in userspace.

Fixes #19849.
2025-12-09 16:11:46 -05:00
Augustin Cavalier 9f786b6af7 Rename "headers/private/utils" to "util".
This undoes some changes from cf930b7e6c.

Nearly all the other utility directories in the tree are named "util"
not "utils", so let's be consistent.
2025-12-09 16:03:02 -05:00
Augustin Cavalier 9c4c97f7f1 BUSBInterface: Fix incorrect management of fEndpoints on updating.
num_endpoints will be changed by the ioctl; we need to use the old
one when deleting the array.

fDescriptor is just zeroed if we fail to fetch, so just perform
the deletions up-front.
2025-12-09 15:00:47 -05:00
PulkoMandy 97675f2fc4 arm: relocate UART when remapping virtual memory
The uart virtual address changes as soon as we apply the kernel memory
map. gUART is used only after that, from serial_init() onwards. So it
should use the virtual address, and not the physical address it was
previously created with while parsing the FDT.

Change-Id: I8c8a024fe564b49d6555f8e48f5ab31652d30708
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10068
Reviewed-by: Fredrik Holmqvist <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-12-09 19:35:39 +00:00
Axel Dörfler 0f7bee148d AboutSystem: Open with golden ration window size
* This looks more pleasing than the too flat window before.

Change-Id: I0e97c094abf6f7d71d86cfe28aaf9c2d6960f79c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10065
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-09 10:18:39 +00:00
Oscar Lesta 82755a4c33 TextView: Move caret position to the end of selection on SelectAll().
This makes it consistent with the behaviour of double/triple click
selections.

Fixes #4094 / #19842.

Change-Id: Ibbbe36c9703207744e79c83447f95815ea5bf8fe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10066
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-09 10:15:55 +00:00
Jérôme Duval 9d587f4f3f tcp: send RST instead of FIN, when user closed and received data get lost
this is the abort way of closing a connection.
tested with golang's http test TestTransportGzip. All TestTransport* pass.

Change-Id: Ib79516eb8a16480d7a4425675748ff76554e9c6c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10054
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-09 10:14:36 +00:00
Samuel Rodríguez Pérez 5860e2c161 input mouse mm: Trace event, status and positional information
Change-Id: I5689355c15139d7a194ecb74a9206718afee9b2b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9914
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-09 10:08:25 +00:00
Samuel Rodríguez Pérez d519530a2b input mouse mm: Improve tracing with a function tracer
The function tracer from MouseInputDevice.cpp adapted for
movement_maker.cpp.

Change-Id: I7414d9c69e231de2f8833814a5a7ee358c8088dd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9924
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-09 10:08:25 +00:00
Samuel Rodríguez Pérez b7a226b66e input mouse mm: Fix tracing, trace all methods and add destructor
- Fix tracing when TRACE_MOVEMENT_MAKER is defined.
  This seems to be a leftover from the migration of
  movement_maker.cpp from kernel to user space at
  hrev56293.

- Improve tracing by adding a call per method
  When tracing is enabled, the class name and the function
  method is provided to trace every method call by using
  new CALLER helper macro.

- Add destructor as well to improve tracing.

Change-Id: I60b49b1d83a8abeb3ba6835d0e303f1b28dde90a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9909
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-09 10:08:25 +00:00
PulkoMandy 172caabf4d BitUtils: fix gcc2 build
Change-Id: Ib347785c466df7df3f40c4781bb46f6fc12ef647
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10046
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-09 10:08:25 +00:00
PulkoMandy cf930b7e6c Move BitUtils.h outside of kernel directory
It is not specific to the kernel

Change-Id: I334c39b39d74f61b30215fb5489dec09e318dacd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10049
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-09 10:08:25 +00:00
Autocomitter 2172f376f8 Update translations from Pootle 2025-12-06 08:11:44 +00:00
Augustin Cavalier 3b66de32f4 libroot/strftime: Add support for %k and %l.
These aren't in POSIX but glibc and FreeBSD support them,
and our ICUTimeData class expects that strftime will handle them.

Fixes #18471 and some of the problems described in #14356.
2025-12-04 16:41:45 -05:00
Augustin Cavalier 984dfdee36 ICUTimeData: Replace all spaces with a regular ' '.
ICU 72 started using Unicode spaces in many patterns.
We don't want those here, so just replace them with
a regular ASCII space character.
2025-12-04 16:23:49 -05:00
Sylvain Kerjean 3b7038d884 [Network] Clear buffer before use.
Clean unix address buffer before use : more robust to bad user addresses missing trailing '\0',
 and prevents leaking data

Change-Id: I769b895327f97870886309a7054facd3c169fb7f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10052
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-12-04 19:25:48 +00:00