66581 Commits

Author SHA1 Message Date
John Scipione
d26613e1bb Keymap: Restore menu field status icons
Fixes the missing piece of hrev57496
"Keymap: Put status icons inside menu fields"

Change-Id: I824f8c105036ae7ea6535f33e0ec0fa8f812f39d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8112
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev58018
2024-08-26 17:14:45 +00:00
Owen Anderson
2147db3699 arm64: Fix translation map setup.
* Correctly read out base address from TTBR1_EL1
* Don't inadvertently clear fHwFeature bits
* Log translation map setup

Change-Id: I4d57509b15525396e886ba7cfc3561ed1b18845f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8102
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev58017
2024-08-26 17:13:54 +00:00
Jim906
a2a5b10065 FAT: fix volume label errors
* Initialize pm_firstcluster in dosfs_identify_partition for use by
  read_label, for FAT32 volumes.  This is necessary for reading the
  volume name from the root directory.
* Create label_to_fat() and call it at both points where volume
  labels can be assigned, for uniform behavior in setting
  labels.  Force all-caps when setting labels, for widest
  compatability of the volume with other systems.
* Remove the redundant LABEL_ILLEGAL string listing illegal label
  characters, and consistently rely on sAcceptable (a list of legal
  characters) when setting labels.
* For clarity, rename sanitize_label() to label_from_fat and remove code
  that causes labels to be displayed to the user in all lowercase.
* See #11119.

Change-Id: I7b5e6b998f13d9eb7ba56ed50c0d53b8c051fad0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8115
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev58016
2024-08-26 17:12:57 +00:00
Niklas Poslovski
0cbb701eb5 Sudoku: Use B_*_COLOR constants instead of hardcoded colors
Change-Id: Iec1f6884efa7d096a21e5986204b4c7ed64e049b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7944
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev58015
2024-08-25 19:24:26 +00:00
Humdinger
1fa52ceadd New templates: add menu item to create a submenu folder
* Add a menu item at the bottom of Tracker's "New" menu and all
  submenus to "Add new submenu...".

* The menu creates a folder "New submenu" under
  "~/config/settings/Tracker/Tracker New Templates" and adds the
  attribute _trk/_template_submenu = true to it. That results
  in showing it as a submenu in Tracker's "New" menu.

* Finally "~/config/settings/Tracker/Tracker New Templates" is
  opened and selected, so the user can edit the folder name that'll
  appear as submenu label in the "New" menu.

Change-Id: I1783f8a88c8e56fbe33012c7312cc97e9401f7f5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7931
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: humdinger humdinger <humdinger@mailbox.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev58014
2024-08-25 19:23:46 +00:00
Augustin Cavalier
4944d70dd1 sys/uio.h: Use __inline instead of inline for C89 compatibility.
Fixes https://github.com/haikuports/haikuports/issues/10822.
hrev58013
2024-08-24 14:55:07 -04:00
Owen Anderson
81af091961 arm64: Fix physical page memcpy operations.
Change-Id: Ie1a0fafad2b71f964292c14b1934d9406b3c015c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8101
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev58012
2024-08-24 18:24:47 +00:00
John Scipione
9d4d102df2 Tracker: Override Open with... pose view text color and back color
Make TextColor() and BackColor() virtual in BPoseView so that we can
override them in subclasses. These are used to invert colors on select.

Move InvertColor() and InvertedBackColor() to Utilities.

Move Desktop...() methods to DesktopPoseView overrides, this does the
same thing but in DesktopPoseView as an override.

Add override methods to Open with... pose view. Open with... window
text color were not updating with color settings making text unreadable
in dark mode. Open with... background and text colors update based on
tooltip colors which was chosen previously.

Change-Id: Id605f1887d6018766b09a6de372b6071de8b83ea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8105
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev58011
2024-08-24 18:19:16 +00:00
Augustin Cavalier
946839b850 ArchitectureRules: Remove lines for -Werror for FreeBSD drivers.
This is imported code from FreeBSD; using -Werror here doesn't make much
sense. Most of the lines were commented out anyway.

Lines for native drivers left alone, of course.
hrev58010
2024-08-24 13:57:04 -04:00
Augustin Cavalier
92d9fe5fb8 kernel/arm64: Give bitfield padding fields names.
Partially fixes the build under Clang.
hrev58009
2024-08-24 13:49:21 -04:00
Augustin Cavalier
9feac945ad libroot/glibc: Add missing isnan/finite/isinf files.
These are defined as builtins, but sometimes the compiler might
want to call the out-of-line definition instead. And we need to
export the symbols for POSIX compliance anyway.

Fixes the build of some libraries with Clang under ARM64.
2024-08-24 13:49:21 -04:00
Jim906
51e9765aff FAT: Speed up mounting of large volumes
* Skip the complete comparison of FAT mirrors if the FAT size is over
  4096 blocks.
* This complete check was not done in either the previous Haiku
  driver, or in the original FreeBSD driver that the current driver is
  largely based on.
* Remove the media descriptor byte check of the active FAT, which is
  redundant with fillinusemap().
* Follows up on #18969.

Change-Id: I34dd1d71852e1f3e9dc42d125759989c091f5108
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8095
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev58008
2024-08-24 17:17:23 +00:00
Augustin Cavalier
90b84ff209 ArchitectureRules: Cleanup and adjustments for Clang.
* Clang -target *haiku* now properly sets -fPIC and -shared.

 * Clang now understands -fno-semantic-interposition.

 * Add necessary LINKFLAGS for the kernel to get only 2 LOAD segments.

 * Remove workaround to remove -fPIC from the BOOT flags now that
   we don't inject it.

It is now possible (with a few minor hacks) to build a full system
image with Clang + LLD. The BIOS loader crashes on startup however, but
using a GCC-built BIOS loader, the system can boot all the way to the
desktop.
hrev58007
2024-08-24 12:38:04 -04:00
Augustin Cavalier
77d89de0ad configure: Remove special logic for detecting Clang tools.
They can be overridden anyway, and this allows specifying a cross-tools
prefix in addition to --use-clang to use the GCC binutils.
hrev58006
2024-08-24 01:44:42 -04:00
Augustin Cavalier
c7b5f2821c configure: Fix check for whether architecture is already set.
The old one relied on Bash extensions to regular expressions
which a plain POSIX shell (such as /bin/dash) doesn't support.
2024-08-24 01:44:42 -04:00
Augustin Cavalier
d998a69e4d ArchitectureRules: Add two more -Wno to Clang warnings setup.
These generate too much spam.
2024-08-24 01:44:42 -04:00
Augustin Cavalier
c4497fa258 unistd.h: Add cast to (void*) for first argument in C mode.
Otherwise things that pass integers could error out.
Spotted by Clang.
2024-08-24 01:44:42 -04:00
Augustin Cavalier
807888c1b2 libtelnet: Add missing include. 2024-08-24 01:44:42 -04:00
Augustin Cavalier
7371ccbe44 mmc/sdhci: Give bitfield padding members names.
To appease Clang.
2024-08-24 01:44:42 -04:00
Augustin Cavalier
d06d4ead64 drivers/network: Use DEVMETHOD_END.
To appease Clang.
2024-08-24 01:44:42 -04:00
Augustin Cavalier
fd8ed076b7 openbsd_network: Add function pointer casts.
To appease Clang.
2024-08-24 01:44:41 -04:00
Augustin Cavalier
10e9efaa5d freebsd_iflib: Fixes to avoid implicit-function-declaration errors.
No functional change intended.
2024-08-24 01:44:41 -04:00
Augustin Cavalier
21f02252ef freebsd_network: Avoid clashes between local and system ffs() definition. 2024-08-24 01:44:41 -04:00
Augustin Cavalier
5b62dce3a6 ntfs: Add missing includes.
Fixes implicit-function-declaration errors on Clang.
2024-08-24 01:44:41 -04:00
Augustin Cavalier
7ea9a798ae libroot/glibc: Use __builtin_isnan and let the compiler figure out types.
This is what we do in <math.h> already.

Fixes compile errors with Clang.
2024-08-24 01:44:41 -04:00
Augustin Cavalier
69c4f5d707 libroot/glibc: Include the private stdio headers and declare more private methods there.
Fixes implicit-function-declaration errors.
2024-08-24 01:44:41 -04:00
Augustin Cavalier
e8911390bb netresolv: Move some definitions around for Clang compatibility.
Otherwise we get implicit-function-definition errors.
2024-08-24 01:44:41 -04:00
Owen Anderson
087c7dd654 arm64: Small fixes extracted from larger MMU fixup.
* User-Execute without User-Read mapping is disallowed.
* Add comments to arch_vm_set_memory_type

Change-Id: I450206ab973552dc36a7d778f573154541fd709f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8098
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev58005
2024-08-24 02:32:33 +00:00
Owen Anderson
87c4aa1308 arm64: Remember to switch address spaces on context switch.
Change-Id: Iaace0dc005b843830122bede0320d080e50ec348
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8097
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-08-24 02:32:33 +00:00
Joachim Mairböck
e595b7fd4b headers/bsd: fix comments after #endif
gcc2 complains otherwise when using -ansi -pedantic-errors that
"text afer `#endif' violates ANSI standard" because it doesn't
recognize C++ comments in C mode.

Change-Id: Icb091d15a4324625ce305aa89391c44a94f4a38e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8094
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev58004
2024-08-23 15:16:40 +00:00
Owen Anderson
b278b98232 arm64: Disable timer when not in use.
* ARM documentation indicates this may save power.
* Notably, the timer keeps ticking even when "disabled", but
  cannot be read by the core without temporarily "enabling"
  the timer.

Change-Id: Iccff84915c611b43ee7a3c53ed2f8a3e426eda06
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8093
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev58003
2024-08-23 15:16:21 +00:00
Owen Anderson
653d40cc93 kernel/arm64: Use virtual rather than physical timers.
* Fixes exception in arch_init_timer on boot when trying to write
  CNTP_CTL_EL0 under virtualization on M1 Max.
* Update TIMER_IRQ to match.
* Boot now proceeds before crashing with an invalid page fault in
  device manager.

Change-Id: I82f080bdc671258a1a35bf998d906e9010a6736e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8091
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-08-23 15:16:21 +00:00
John Scipione
764365384d Tracker: Do not alter selection on Copy and Cut or Copy more, Cut more.
Fixes #5585

Change-Id: I75ff282febb81854088d731b9e54120161377b60
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8090
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev58002
2024-08-23 15:14:55 +00:00
Augustin Cavalier
8ce920280d Debugger: Don't return if package kit threw an exception.
Instead just proceed as if no package was found.
hrev58001
2024-08-22 15:42:04 -04:00
Augustin Cavalier
69f1c57f0c Debugger: Don't query the package kit in non-interactive mode.
We always skip loading debug information in this case, so
querying the package kit is just a waste of time. And it could
result in hangs or crashes if the package kit is in an invalid
state (e.g. if we are debugging package_daemon.)
hrev58000
2024-08-21 15:36:44 -04:00
Augustin Cavalier
d1d5a4b958 Debugger: Catch exceptions thrown by the Package Kit.
e.g. if package_daemon doesn't respond, it may throw an error
on initialization, which we don't want to bring us down.
2024-08-21 15:22:13 -04:00
Augustin Cavalier
83a1e38ef1 Package Kit: Return better error codes from GetInstallationLocationInfo. 2024-08-21 15:21:25 -04:00
John Scipione
55e018dcb8 DefaultBuildProfiles: Increase nightly image size to 650MB
... up from 600MB because we need a bit more space for swap in the
live environment for 3d apps.

Fixes #18986

Change-Id: Ie8ba03c2fb65d02f1c26609d78101ee355d65630
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8085
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57999
2024-08-21 17:17:57 +00:00
Jérôme Duval
1512c9d2f3 Add the linprog headers to the haiku_devel package.
these are required by libalm headers

Change-Id: I7eb0164383ca919f0ede72952759a85a66a88c70
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8086
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev57998
2024-08-21 17:17:43 +00:00
Owen Anderson
932b55644f arm64/uefi: Perform MMU maintenance when TBBR1_EL1 is enabled.
* Cache & TLB maintenance need to be performed when TBBR1_EL1 is
  enabled, not when it is setup.
* Boots all the way into the kernel (and dies in the kernel
  debugger) on M1 Max hardware under virtualization.
* Add more details comments on the reasoning behind the process.

Change-Id: Ib4b5aa3bbae71d69169575c06c7cd75d616307d9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8084
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: David Karoly <karolyd577@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57997
2024-08-21 11:05:05 +00:00
Augustin Cavalier
ae8d7152a0 docs/develop: Updates to Release Cookbook.
Add/update some steps, etc.
hrev57996
2024-08-20 13:38:10 -04:00
Augustin Cavalier
94c66b276e docs/develop: Rename release "milestones" page to "cookbook".
This more accurately reflects what it contains, as well as
mirrors what it used to be called when it was on Trac.
2024-08-20 13:13:24 -04:00
Augustin Cavalier
0e07f2994d WebPositive: Update bookmarks.
* Rework redirection to not use synchronous XHRs.

 * Fix QuickTour LoaderPage (and update bookmark to point to it.)

 * Change default view of LoaderPages to List mode.

 * Other misc cleanups.

Fixes #19005.
hrev57995
2024-08-20 12:31:04 -04:00
Owen Anderson
b983396cfc arm64: Fix cache enable/disable during bootload
* Fix crash in arch_mmu_generate_post_efi_page_tables due to MMU being
  disabled too early. Fixed by only disabling the cache/MMU while TTBRx
  is being written.
* Disable I-cache while TTBRx is being written. This mirrors the
  behavior in u-boot.
* With these fixes, UEFI boot now reaches ExitBootServices before
  crashing.

Change-Id: Iea04765cdf914791b93b3da378b0df56e46a1d9d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8079
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: David Karoly <karolyd577@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57994
2024-08-20 15:19:12 +00:00
Augustin Cavalier
9023c0bff8 Disable a bunch of Radeon HD devices that likely don't work.
This has been in the last few beta releases; we should just apply
it to master at this point.

Change-Id: I9dafc6a7fe72c1144fde8b07bafd59952d1310a3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8080
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 85443dda80d11520b4925765bafbeb9d5cd07f2e)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8064
hrev57993
2024-08-20 15:05:07 +00:00
Jim906
4d8b0552d1 FAT: Fix media byte initialization error
* Ensure that when initializing a FAT partition, the media byte value
  assigned in the bootsector matches that in the first FAT entry.
* See #18969.

Change-Id: Iffc3dd7549b918954e9145a2a02221616c38a016
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8081
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57992
2024-08-20 14:49:48 +00:00
Augustin Cavalier
0deef289f4 network/stack: Clarify code in add_ancillary_data.
CMSG_ALIGN just aliases to _ALIGN; the rest is just replacing repeated
macro invocations.
hrev57991
2024-08-19 23:21:26 -04:00
Augustin Cavalier
e797b484d0 unix: Add final keyword to classes. 2024-08-19 23:20:24 -04:00
Augustin Cavalier
0c34c6b6c4 unix: Use CMSG_LEN instead of CMSG_ALIGN in unix_add_ancillary_data.
No functional change; CMSG_LEN(0) is the same as CMSG_ALIGN(sizeof(cmsghdr)).
2024-08-19 23:19:51 -04:00
Augustin Cavalier
3fb6cfce6b unix: Fix another leak of ancillary data.
This time in the datagram logic. Also clean up some of the logic
around unsetting the data from the request after adding it.
2024-08-19 22:03:19 -04:00