Commit Graph

62658 Commits

Author SHA1 Message Date
Han Pengfei
d3b7fb5a1d headers: Update efi headers from current versions in Zircon
- Add device path message macros
- Add serial terminal defines

Signed-off-by: Han Pengfei <pengphei@qq.com>
Change-Id: I9760c506eae49a7d0c474a13b2d2a97a369be3b6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3878
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-21 07:16:43 +00:00
HrithikKumar49
5685473e0c formatted file using clang-format with _haiku-format formatting options
Change-Id: Iac91219ac10be70bc5b4ae2ffc0d4e44893d8a44
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3864
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-19 19:49:40 +00:00
Máximo Castañeda
8f5700bc46 intel_extreme: disable CK505 clock source
Using the CK505 clock source may need some more checks or configuration
we currently don't do, leading to a blank screen in some systems.
Whatever the reason, disabling it makes the driver work on my machine.

Fixes #16357

Change-Id: If207ffdddcf6e6eb73bc69ce5a8bd2842fd2141b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3867
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-19 19:48:47 +00:00
CodeforEvolution
123406799f input_server: Properly implement watch_input_devices() & add documentation
Allow for multiple programs to watch for changes in the state
of input devices connected to the system. Previously only one program
at a time could watch input devices. While this functionality was not
implemented in BeOS R5, it was at least documented in the BeBook.

Also added some API documentation where necessary for the function
and related constants.

Change-Id: Icd927998cffcab212bb63bcf10c64c620e9da9a2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3872
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-19 19:48:29 +00:00
Niels Sascha Reedijk
5b113c01c2 kernel: remove stray dprintf about acquire_advisory_lock
Change-Id: I306e2816e59a621a4c478babad5f3aa2cc69fc8d
2021-04-19 07:12:22 +01:00
Niels Sascha Reedijk
82cd6aad15 HaikuBook: add missing object from AffineTransform.h
Change-Id: I3a3098db4a35b8fe12e763dd3a7e1e5fa9cafc69
2021-04-19 07:11:34 +01:00
Niels Sascha Reedijk
4497337b22 HaikuBook: unichar was removed in hrev54953
Change-Id: Ib5faf5b0e0d6c46bf6eb49a941c9fa4e0ef6b47d
2021-04-19 07:02:08 +01:00
Niels Sascha Reedijk
2aad295eb2 HaikuBook: escape the # character as it implies a link request
Change-Id: I9100d74fb3af9298b3386bea02c4a5818c45296b
2021-04-19 07:00:42 +01:00
Niels Sascha Reedijk
f125de8cc8 HaikuBook: Add internal skeletons for BGradient* classes
Change-Id: I9b75084550dc510692122994a102ccd9923ed987
2021-04-19 06:56:16 +01:00
Adrien Destugues
61013090a0 Attempt to fix deadlocking USB transfers
Whenever a device is removed, let usb_raw cancel all its pending
transfers. Does not seems to help with the issue I'm getting however.

Change-Id: Ie2856e68ea402c9f1cc352ac47bbca624e17d3dc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1424
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Fredrik Modéen <fredrik@modeen.se>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-18 07:58:48 +00:00
Adrien Destugues
a77684c96a MultiAudioNode: sanitize inputs
Change-Id: Ida5d74b88ec06daf738fd8b98c29737ed87c7cae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3491
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-18 07:58:27 +00:00
Shannon Mackey
572e0095c2 Printers window peristence
implemented using same pattern as Screen preferences
made corrections from review

Fixes #4262

Change-Id: I658baebcdc6ef7809d871b61db75d0b4099937ed
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3870
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-18 07:45:35 +00:00
Rudolf Cornelissen
375a70e9fd Fixed I2C buses not working on C51 (some Geforce 6100/6150/Go cards). DDC/EDID should now work on all supported cards. 2021-04-18 00:51:46 +00:00
Murai Takashi
159ed479f8 lgtm.yml: Fix build
lgtm build requires HAIKU_REVISION for DetermineHaikuRevision1.

Change-Id: Ie458080b82bdd5d32936393758aab6626bab8018
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3868
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-17 19:53:06 +00:00
Autocomitter
410ed2fbba Update translations from Pootle 2021-04-17 08:53:12 +00:00
Niels Sascha Reedijk
f706ac5bd5 HaikuDepot: remove double space after period in UI string
Change-Id: If5e63499c5fe7894294319c31c15e6ef133553d9
2021-04-17 08:31:19 +01:00
Murai Takashi
f6c0f9307f Update lgtm.yml
* Update configure script.
* Remove HAIKU_REVISION from build_command.

Change-Id: I2d2e3e8ba9a5ca333845734d42c5da00dc4e7610
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3866
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-16 16:36:12 +00:00
Adrien Destugues
3d768367d4 DefaultMediaTheme: fix build with tracing enabled. 2021-04-15 22:51:10 +02:00
Adrien Destugues
38e5e3401b repository build readme: add a missing dependency to instructions 2021-04-15 22:47:51 +02:00
Alexander von Gluck IV
37bebb702a docs: Update build-repository documentation
Change-Id: I4566c6e93dca4701eda19ba512e20b0f224956e7
2021-04-15 15:06:10 -05:00
Rudolf Cornelissen
d827b3cc06 nvidia driver: fixed tickets #2780, #4670, #6292, #12955 (Nforce 4, 4xx display trouble) 2021-04-13 00:16:53 +00:00
Humdinger
27188e2153 Cortex: avoid duplicated translation efforts
Many translatable strings are used in both classes.
Use same B_TRANSLATION_CONTEXT to avoid duplicated
translation efforts.

Change-Id: I514a380de4ac8d414634555c25b90650f370a2cb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3865
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-12 08:18:27 +00:00
Maciej Bałuta
a0db7ef272 Return "Unsupported" from VESA accelerant mode setting
Currently, when trying to change settings in Screen preferences on
a system which uses VESA driver on UEFI system, the displayed error
message is "Invalid argument". This commit simply changes returned
error code to B_UNSUPPORTED, so that in the UI we show
"Operation not supported" error.

Change-Id: I2a654d6f652c7b24ecd23969e04e477456235aa0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3858
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-12 07:08:09 +00:00
Fredrik Modéen
96aca43744 Bluetooth Pref: remove 2 Printf that broke x86_gcc2 build.
* Remove those 2 line.

Change-Id: Ie291f590181f4d461865b6b77311995597285eed
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3857
Reviewed-by: Fredrik Modéen <fredrik@modeen.se>
2021-04-11 08:53:37 +00:00
Fredrik Modéen
6375ef053d Move SettingsMessage to a central location
* Move SettingsMessage
* Remove SettingsMessage from MediaPlayer and WebPositive
* Use the central SettingsMessage in MediaPlayer and WebPositive (Later Bluetooth)
* Fix a Jam file.

Change-Id: I3bb82a40082c5ece5c2aea2468a77bcd9f15ce77
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3856
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-11 08:53:18 +00:00
CruxBox
4a2870fcf2 xfs: Check Permissions
Implemented the xfs_access hook and we now check for permissions where
required.

Change-Id: Idaa71f300e0a73951d13073b66cb9ff37dbfa3ec
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3151
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-11 08:45:03 +00:00
Fredrik Modéen
91cbfa855e Bluetooth Pref: Inactiveate button and things that don't do anything.
* Inactiveate button and things that don't do anything.
* Those button and controlles that hade any actions in the Bluetooth Pref now saves in settings.
* Fix some windows/views.
* Fix Copyright in last Bluetooth commit.
* Last commit before we move saving settings with BMessage.
* Changed PoupMenu to BOptionPopUp

Change-Id: I32b85f1985b558d24b294a184665e08e6ce18a7d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3829
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-10 20:28:43 +00:00
Autocomitter
6d93dff127 Update translations from Pootle 2021-04-10 08:53:20 +00:00
Alexander von Gluck IV
4ae0376c1f src/tests: Update standardized qemu testing script
* Adds riscv64
* Improves serial output to virtual console and on-disk logs
* Add log check for kernel load

Change-Id: If66cd3b9d342953b71d2362de1003d8e7547e6ae
2021-04-09 19:27:13 -05:00
Humdinger
6f2e83ce65 Boot options: rename 'blocklist' option
As 'blocklisting' sounds weird, esp. when used as verb, call the
option "Disable system componets". Also, "components" is less
technical than "entries".

Change-Id: Ia6dbbbe6ebc800e2017e0fb4b0393d19f07afbc5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3833
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-07 12:20:01 +00:00
Gerasim Troeglazov
1ab6200126 DefaultMediaTheme: implement BTextParameter handling for BParameterWeb
These changes add text parameters support to DefaultMediaTheme
for the BParameterWeb class.

Change-Id: I6ec04109af73011f84bb7c1fd5210c5c8842c2cb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3828
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-06 20:17:52 +00:00
Saloni
02dabf4bd9 input preferences: Updates code according to Haiku guidelines
These are the changes using tool clang-format with argument --style=haiku and the changes that were not according to guidelines have been removed.

Change-Id: I2d34370e1e0a112da895001bd220bb82b7086e90
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3827
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-06 20:17:29 +00:00
Joachim Mairböck
e1ae57ab9d HaikuDepot: add shortcut key for Settings
Change-Id: If81f48130818d604081a07a536480f94dd523ee0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3832
Reviewed-by: Andrew Lindesay <apl@lindesay.co.nz>
2021-04-05 08:39:47 +00:00
Autocomitter
315bca7e3f Update translations from Pootle 2021-04-03 08:45:47 +00:00
Humdinger
0b6928f102 HaikuDepot: Rename/consolidate menus
* Rename "Tools" to "HaikuDepot"
* Move "Settings..." and "Quit" from the new and not well fitting
  "Window" menu to "HaikuDepot"
* Add the SettingsWindow to DoCatalogs

Change-Id: I14ca7b6304772555cc440998438e38e3e507214c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3831
Reviewed-by: Andrew Lindesay <apl@lindesay.co.nz>
2021-04-03 04:25:26 +00:00
Siddhant Gupta
f67bf6411c mail: partial style cleanup
No functional changes

Change-Id: I8f2b18da4955ee48cba87359050fbe3fc8cdb9ea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3830
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-04-01 14:02:32 +00:00
Fredrik Modéen
16196fd3b7 Bluetooth Pref: Updating view of incomming connection when Paring
This is not my code but from ticket #9265
* Made a picture of how it looks, old left andnew right. https://imagebin.ca/v/5wIe6TIMzw4C
* Think we have a bug somewhere and don't store the name of the Bluetooth device (shown i the image).
* I have made som small changes but other than that it's the same code as in the ticket
* Ran the src/tools/checkstyle/checkstyle.py to get som style stuff, probably missed some anyway.

Change-Id: Ifeb75c8ad890f541e100cdcf78b394675a48ada9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3825
Reviewed-by: Fredrik Modéen <fredrik@modeen.se>
2021-03-30 17:25:13 +00:00
Murai Takashi
560961ee2a Bootloader: replace blacklist with blocklist
Various projects, both commercial and OSS, began to use inclusive
terminology. There is no reason to not do it.

In Haiku, bootloader uses Blacklist, which is recommended to replace
with Denylist or Blocklist. I think Blocklist is appropriate here,
since it's a list used to block offending driver at boot.

Some strings remain unchanged for compatibility with previous naming,
but this change prepares for later removal of these (once everyone has
updated their kernel and bootloader).

Change-Id: Id9105ff5e9fcb866000355089b5ef97bf63ee854
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3145
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-27 10:47:33 +00:00
Kacper Kasper
a78899d40a Debugger: fix infinite recursion when resolving lambdas
* Should fix #14346. Uploaded executable there doesn't work anymore,
  but this patch is prepared for case in #16040, and fixes
  #16680 too.
* The issue is that if lambda parameters use an alias, this alias
  has that lambda as a parent. Specifically the compiler generates
  operator() subprogram, Debugger tries to resolve types for its
  parameters, but at the same time it is a parent namespace for
  those types.
* Call chain: operator()( -> type 1 -> namespace: operator()( ->
  type 1 -> namespace: operator()( -> ...

Change-Id: I7aad150a8d9de4f0c01ae0c1db5e486416b72112
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3824
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-27 10:23:33 +00:00
Autocomitter
e7438cbeba Update translations from Pootle 2021-03-27 08:49:11 +00:00
Adrien Destugues
f4abe40626 DriveSetup: fix creating partitions
The code paths for creating a new partition and editing an existing one
are more mixed together than I thought:

- CreateParametersPanel reuses a method from ChangeParametersPanel which
  I had modified.
- In the storage kit, the code to create the parameter editor is also
  shared between the two.

The problem is that when creating a partition, we have only the parent
BPartition. When modifying parameters, we have the child, and we need
to get some things from the child (the current parameters), and some
from the parent (the parameter editor).

Fixes #16859.

Change-Id: I5978386978c79a351e94c098c065fd43c422eb51
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3822
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-26 19:59:19 +00:00
Adrien Destugues
7534e5870d intel partition map: use more specific errors
It is hard to know what is wrong otherwise.

Change-Id: I47658502221dfd7f320ae873cc92f683d7ae3548
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3821
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-26 19:59:19 +00:00
Niels Sascha Reedijk
f97357a6ed Fix building on Haiku after hrev54993
Build tested on Linux.

Change-Id: I911ac42d99a0c1e94cab77dc29bf43d8f7f91093
2021-03-24 11:19:25 +00:00
Fredrik Holmqvist
552e0ac095 UEFI: remove .._BOOTED_FROM_IMAGE, alwasy use ..HARD_DISK
BOOT_VOLUME_BOOTED_FROM_IMAGE is for booting from floppy images
(or CD equivalent) where you can't provide all details.
BOOT_METHOD_CD is also for when all you know that it is a "disc".

UEFI can always give partition offset and checksum, so we can
use BOOT_METHOD_HARD_DISK directly.

Change-Id: Iede9beef2f00eadd7883be0a739caf4eb11969c1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3820
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-24 06:38:02 +00:00
Jérôme Duval
45872f7f9c kernel/vm: restrict permission changes on shared file-mapped areas
a protection_max attribute is added in VMArea.
a read-only opened file already can't be mapped shared read-write at the moment,
but can later be changed to read-write with mprotect() or set_area_protection().
When creating the VMArea, the actual maximum protection is stored in the area,
so that it can be checked when needed.
this fixes a VM TODO.

Change-Id: I33b144c192034eeb059f1dede5dbef5af947280d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3804
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-23 17:40:31 +00:00
Fredrik Holmqvist
99806fe3d6 Anyboot CD detection, remove nr of partitions check
When booting from floppy image (BOOT_VOLUME_BOOTED_FROM_IMAGE)
we don't know the partition offset, and the number of partitions
are different for 32 bit and 64 bit anyboot cds. So don't check
for number of partitions.

This should only happen when BOOT_VOLUME_BOOTED_FROM_IMAGE
is set. Its intention is to signal if boot was from a floppy
image, so most boot platforms should not set it. It seems they
do, that probably needs a fix of its own.

Change-Id: I6b60a997b72b9928555840358257e15ff417fd42
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3819
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-23 14:18:03 +00:00
Jérôme Duval
10ff9c6a14 unix: sendmsg should return EPIPE after close
https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html
"[EPIPE] ... the socket is connection-mode and is no longer connected."
Change-Id: I6728b088d2f717b769697218edf26c76c59f488e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3816
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-23 07:30:36 +00:00
Jérôme Duval
f0c4b0a69a unix: get a read event when read-polling a read-shutdown socket
UnixEndpoint::Receivable(): EOF means there is nothing left to read, and
the shutdown happened on the read side or the write side.

also fix x86_64 build with trace

Change-Id: I54c806f0b900591c3d441240b8f6768dfb756bad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3808
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-23 07:30:36 +00:00
Niels Sascha Reedijk
9335a062be Revert "Fix building on Haiku after hrev54993"
This breaks the build on other platforms, so it needs a bit more thought and testing.

This reverts commit d0834b34d5.
2021-03-22 22:52:50 +00:00
Niels Sascha Reedijk
d0834b34d5 Fix building on Haiku after hrev54993
Change-Id: I052aad6374ae7ab7b4bcbf47bd88cd84193a9879
2021-03-22 21:10:09 +00:00