66087 Commits

Author SHA1 Message Date
Augustin Cavalier
1f33dab2e6 freebsd_network: Move ffs/fls routines to libkern.h and use builtins.
FreeBSD upstream did this a while back. Should fix the 32-bit build.
hrev57780
2024-06-24 21:56:08 -04:00
Augustin Cavalier
86021fd407 Synchronize freebsd_net80211 and all maintained FreeBSD drivers with 14.1.
Tested with realtekwifi, still works.
hrev57779
2024-06-24 21:19:47 -04:00
Augustin Cavalier
f6b6453fee freebsd_network: Additions for FreeBSD 14.x net80211 and drivers. 2024-06-24 20:55:29 -04:00
Augustin Cavalier
1454f3c27a Synchronize all remaining FreeBSD ethernet drivers with FreeBSD 14.1.
Except those since dropped from FreeBSD.
2024-06-24 19:58:44 -04:00
Augustin Cavalier
3fcde6b236 freebsd_iflib, intel22x, ipro1000: Synchronize with FreeBSD 14.1.
ipro1000 tested in QEMU, still works.
2024-06-24 19:48:17 -04:00
Augustin Cavalier
7d36436b75 freebsd_network: Additions and modifications for FreeBSD 14.x drivers.
* Add more if_{get|set}* routines, and move all copied directly from
   FreeBSD into a fbsd_if.c file. Also clean up the header.

 * DRIVER_MODULE macros dropped the "devclass" parameter.
   In order to not break all existing drivers, use FreeBSD's
   interim solution of compatibility macros.
2024-06-24 19:46:25 -04:00
Augustin Cavalier
83e4de8b64 file_systems/QueryParser: Limit to 32 equations maximum.
This way, we won't run into stack overflow issues due to recursion.
Who would really need a FS query with more than 32 equations, anyway?

Fixes #18692.

Change-Id: Ieda401446d9cae2e56100ddbab08bebcc724b484
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7789
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev57778
2024-06-24 19:40:08 +00:00
Augustin Cavalier
6d7e181767 file_systems/QueryParser: Rewrite parsing logic to avoid recursion.
This way, we can handle parse trees of arbitrary depth without
running into stack overflows. Of course, evaluation is still
a problem...

While at it, use "const char*" everywhere, and also put the
query parser into an Init() function so we can return
more statuses than just B_BAD_VALUE.

Part of #18692.

Change-Id: Ib81e6545935ce484df10dfe36ca4ffcf2b3cd607
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7710
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
e0ff85edaa tests/file_systems: Add a QueryParserTest.
At present it just accepts query strings as command-line arguments
and prints the parsed query to the stream (or the error, if there
is one.)

Change-Id: I907380e370790ad9fb4d8f9406a18d359d0dcc2b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7709
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
76f38b534f tests/file_systems: Synchronize <userland>ramfs Jamfile with kernel one.
Doesn't fully build but at least gets closer to the kernel version.

Change-Id: I3f7c83da97b7163724e3dc547603a88796def254
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7708
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
804e27b8fb tests/file_systems: Delete obsolete beos_interface Jamfiles.
Change-Id: I6a8777f763e2c24e60823deef5a7521248a30b72
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7707
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
f91b5cb297 tests/file_systems: Move some tests to a common "shared" directory.
Rather than having individual directories for the tests. No
functional change intended.

Change-Id: Ie453eab2d7347cef4ea68a1e7793d01817e7da39
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7706
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
0a44afc6bf BFS: Use the shared QueryParser.
Ideally should have no functional changes from the old one.

Change-Id: Id557d8fb069603221887447597ef0ffce5de07a6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7705
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
7da55c7296 file_systems: Backport changes to QueryParser from BFS.
* 3e818f2075e1764c33fe620e8c51b7c47091afc4
 * 711e2dc05b94f56733b7f5e15645e68d161b60bd
 * 6609c1a03ad3952d7728863a05ae136709746583
 * f79179975d5e0a92191000708e0375b77eac051a
 * 0ed0f5cb35957f744fb37cdc4485ae0673f8b276 (tweaked for 64-bit)
 * a2eb6bbda477e7b89d0d6fbeaa0d05e2342e8e87

Change-Id: I11d9946b475449b7b5aeed956e3ae8a776a0b20a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7704
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
3a17bd3545 file_systems: Adjustments to QueryParser in preparation for BFS using it.
Should not result in functional changes to packagefs and ramfs
queries behavior.

Change-Id: If361ca65de99d255e67f929c3442e0c20e39cdf4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7703
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-24 19:40:08 +00:00
Trung Nguyen
1f2b4425c4 kernel/debug: Report new team before resuming it
Ensures that the new team has been reported to the debugger before
the main thread gets resumed. This allows the debugger to attach
to child teams as early as possible.

`fork` and `load_image` without `B_WAIT_TILL_LOADED` have always been
working as desired. This commit fixes the remaining case of
`B_WAIT_TILL_LOADED` by reporting before resuming the thread of
`runtime_loader`.

Change-Id: I7fd74606801c6ca5335d91c92f3157e6c6e66308
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7797
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57777
2024-06-24 17:45:54 +00:00
Trung Nguyen
25cf646333 kernel/signal: Make DEBUG_THREAD non-deferrable
Add `SIGNAL_DEBUG_THREAD` to the list of non-deferrable signals.
This allows debuggers to immediately install themselves and break
newly-forked children, as `libroot` requests signals to be deferred
around `_kern_fork`.

Change-Id: Ifc98c3ce4d394f187070a089a9be9fe665ee81d9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7796
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-24 17:45:54 +00:00
Máximo Castañeda
d6669c48ad BHandler: fix IsWatched
Using map[key] inserts the key in the map if it wasn't there, making it
non-empty.

Change-Id: I4404b896126aee202780b6e93e7c17c69ca8f34d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7787
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57776
2024-06-24 17:45:27 +00:00
Abdelrahman Youssef
d7d7d543bc Icon-O-Matic: restors default position when it starts out of screen
fixes #18865

Change-Id: If8c286c730b5660be6c20e159a9de6637af25f47
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7788
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57775
2024-06-24 17:44:03 +00:00
Autocomitter
289b4316da Update translations from Pootle hrev57774 2024-06-22 08:12:31 +00:00
Autocomitter
36ad35bb2d Update translations from Pootle 2024-06-22 08:12:30 +00:00
Humdinger
0981bdb742 Magnify: improve label for width and height
When you add two crosshairs to measure pixels, it was a bit confusing to see:

1) x: 14 y: 11  x: 19
2) x: 33 y: 20  y: 9

Now it's:

➀  x: 14, y: 11
                  width: 19, height: 9
➁  x: 33, y: 20

"1)" and "2)" got replaced by dingbats numbers in a circle.

Change-Id: I7fd1b3bd7869a3251e15e249f74916150eef8218
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7724
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57773
2024-06-20 17:15:03 +00:00
Trung Nguyen
f3cb51a85a kernel/debug: Report killing signals
Adds a `signal` field to the `team_deleted` event. Since killing
signals like `SIGKILL` and `SIGKILLTHR` do not generate a
`signal_received` event, debuggers would only see a `team_deleted`
message with the `status` field set to 0. This makes debuggers like
GDB think that the debuggee has exited with a status code of 0.

To correctly report these signals, when a killing signal is sent
to a team, this signal is relayed to the main thread instead of
defaulting to just a `SIGKILLTHR` for both cases.

Change-Id: If69c9e2e4d87bfbd31f654f5cb6f696ac69ef777
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7756
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57772
2024-06-20 17:11:58 +00:00
Oscar Lesta
9e2c51c22f package: adjust help text spacing to be less cramped.
Using 4 spaces, instead of two, makes it easier to find
the available commands at a glance.

Change-Id: I2bbfaa323b89ebce490e34a39c4dfd163c23fd06
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7784
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57771
2024-06-20 16:18:53 +00:00
Jérôme Duval
0e72f7e22f ps2: republish debugger command should use keyboard number 5 by default
should fix #18919, I couldn't reproduce the crash locally.

Change-Id: Ic522c299a758a98e83de03a0e84014e97984ae69
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7785
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev57770
2024-06-20 16:17:10 +00:00
Humdinger
de2a79cea2 Removing some B_UTF8_ELLIPSIS, sentence-casing
"New player" in MediaPlayer and "Get info" in ShowImage do exactly
like the item says, so no ellipsis needed. Similar to Terminal's
"New Terminal" and Trackers "Get info".

Change-Id: I32e59e219af7a09bd74b489459281cc71cbffd9c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7783
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
hrev57769
2024-06-20 06:50:00 +00:00
Andrew Lindesay
6a0e78e576 HaikuDepot: Fix vertical scroller
The package rating comment field was not adjusting
the vertical scroller as the text was being edited.

Change-Id: Ic84c72a126fae5ce9a9ab8930fa13d426b513ed9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7782
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
hrev57768
2024-06-15 08:41:46 +00:00
Andrew Lindesay
6846b8ea7c HaikuDepot: Fix crash on early quit
Change-Id: Ic3173f9be7cf2dd387f5f1e4fc67333399ea0595
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7778
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57767
2024-06-14 20:19:48 +00:00
Andrew Lindesay
c4e439b5a5 HaikuDepot: Allow paste into text view
HaikuDepot has its own text-engine. This change will allow
the text-engine to have text pasted into its view.

Change-Id: I639cf0ba4fa42a0130af0a4dc169f0f2e585765d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7723
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
hrev57766
2024-06-14 11:11:00 +00:00
Jérôme Duval
43db77b370 kernel: fix race condition on boot, using SetBitAtomic
fix #18915

Change-Id: Ia8829822e21f6d6b765746ddab05f8781385745f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7777
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57765
2024-06-14 06:07:23 +00:00
Diego Roux
8b32e9b4ac virtio_sound: setting up driver to be loaded.
Change-Id: I25c99e3e06e52448968bd8210b2f0599d129a7bb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7776
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57764
2024-06-13 08:05:17 +00:00
Andrew Lindesay
c1cc7751a7 ColumnListView: Status view w/ scaling
Visible in HaikuDepot when the font is scaled, the placement
of the BColumnListView is broken owing to the calculation of
the height of the scrollbar being based on a constant.
Fixes #17900.

Change-Id: Id34138feb491618a4c685b7cdb88b875e3ec5329
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7726
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57763
2024-06-12 16:34:24 +00:00
Zardshard
984f843b91 HaikuBook: document missing BBitmap constructor
Change-Id: I4fc51b0e499f9cb5e5c4ce58d6baddf462322b3f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7719
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>
hrev57762
2024-06-10 16:36:12 +00:00
Jérôme Duval
c5a740cdb2 gnu: add pthread_setaffinity_np()/pthread_getaffinity_np()
* also sched_setaffinity/sched_getaffinity() added.
* add a test

Change-Id: Id8c308788f6364f5340b4991def2fbb9a05da728
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7675
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57761
2024-06-10 16:34:25 +00:00
Jérôme Duval
f7a85eea15 kernel: add syscalls for thread affinity
scheduler modes adapted to take into account the thread affinity mask.
when no cpu in the affinity mask is enabled, the mask is ignored.

Change-Id: I577737441ab073941a4c5e06f94f7825cffdc2c4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7674
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-10 16:34:25 +00:00
Jérôme Duval
1dde4c4b94 kernel/smp: change CPUSet::SetBit() and CPUSet::ClearBit() bit order
add CPUSet::And() and CPUSet::Matches().

Change-Id: I210c900527f6ee246916d5eb4547d8003c2bc631
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7673
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>
2024-06-10 16:34:25 +00:00
Andrew Lindesay
75a70554d9 HaikuDepot: Pkg name on window
When HaikuDepot is opened to view a specific HPKG file,
then show the name of the package in the window title.
Closes issue #18909.

Change-Id: Ib8095ef818dd3dc62b06cbc217f2056f36c8ac46
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7721
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>
hrev57760
2024-06-10 16:33:06 +00:00
Andrew Lindesay
6498155189 HaikuDepot: Add rating; escape
Simplify logic around escape closing the add
rating window

Change-Id: I74dd5bf29e462d6b06deef3977acf30b033d5c71
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7722
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>
hrev57759
2024-06-10 16:32:43 +00:00
Augustin Cavalier
365b32bb6e kernel/team: Set team arguments during load_image/exec_team.
This way, by the time we send a notification, the arguments
are already set even if the main thread has not yet started.

Fixes #12703.

Change-Id: Ib93b4b16bffa8cb943cf6389f0f72dce89f9749b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7702
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57758
2024-06-10 16:32:09 +00:00
Trung Nguyen
9631ca7349 kernel/debug: Report team/thread exit status
Add a field to `debug_[team/thread]_deleted` to report the exit status
on the corresponding events.

This is useful for debuggers like GDB expecting a return value when one
of their inferiors quit.

Also add a `usage` field to `debug_team_deleted` since this is another
potentially useful piece of information exposed by the `waitpid` family
of syscalls.

Change-Id: Ieff7c31f56b1b9f8f709725d19050273b21f2504
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7736
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57757
2024-06-10 16:31:38 +00:00
Andrew Lindesay
7a5148b345 HaikuDepot: Remove email
The email on the program listing has never been used.
This change removes this. Closes issue #18274.

Change-Id: I45c679059b334d25c892bfbb6010e0821a84ac38
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7720
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57756
2024-06-10 16:30:52 +00:00
Autocomitter
9c29972eca Update translations from Pootle hrev57755 2024-06-08 08:14:55 +00:00
Autocomitter
3e910e720f Update translations from Pootle hrev57754 2024-06-01 08:15:21 +00:00
Augustin Cavalier
2e01121f19 kernel/vm: Only prevent access to the physical allocated ranges.
The physical memory ranges will actually be used again
later on during post-modules VM setup. The allocated ranges
are what we really want to prevent access to, anyway.

Fixes #18907.
hrev57753
2024-05-30 12:14:36 -04:00
Augustin Cavalier
2b06e3ea48 BScrollView: Only adjust other dimension if it's greater-than-zero.
And add an inline comment with a bit of explanation,
since this logic has now been revised multiple times.

Fixes #18690.
hrev57752
2024-05-29 19:31:58 -04:00
Augustin Cavalier
fb79b8994f Appearance: Only Select() if we are attached to a window.
Otherwise the appropriate message won't be sent.
AttachedToWindow() will take care of selecting
in that case.

Fixes #18891.
hrev57751
2024-05-29 19:02:55 -04:00
Augustin Cavalier
bd25d788a2 kernel/slab: Disable the block allocator entirely if disabled.
block_alloc and friends are now declared as static, so we got
GCC errors about unused functions when USE_SLAB_ALLOCATOR_FOR_MALLOC
was 0. So, instead, just don't initialize the block allocator
at all.

This was the change that triggered the prior commits: if the
block allocator is completely disabled, the first object
allocated through an object_cache is inside VMAddressSpace
initialization, which happens during the interim period
mentioned in previous commits.

Haiku now can be built and booted all the way to the desktop
with the kernel guarded heap enabled (and without the guarded
heap substituting for the object cache.)

Change-Id: If2f08a741826799127ecfd263d6c82ed4263eaab
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7701
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>
hrev57750
2024-05-29 18:10:06 +00:00
Augustin Cavalier
7133a49e81 kernel/slab: Allocate one area upfront when the debug heaps are in use.
See inline comment: if we don't, we'll try to allocate pages
during the post-page-init but pre-area-init period, which
isn't possible (and after the previous commit will properly fail.)

Change-Id: If8392417e05912c8cfc417222abab3b39cb15bf1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7700
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-05-29 18:10:06 +00:00
Augustin Cavalier
ebc1a034fb kernel/vm: Prevent access to kernel args physical ranges after page init.
Otherwise, vm_allocate_early_physical_page could try to use them to
allocate more physical pages, which isn't legal as page state
management is now the responsibility of the vm_page system.

Discovered while working on re-activating the guarded heap.
In that case, at least, the illegally allocated pages were caught
by the memory manager trying to convert them into areas,
but they weren't marked WIRED and so tripped asserts.

Change-Id: I39af70bf8a652511bb65fe2154bba16d4ba5c924
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7699
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2024-05-29 18:10:06 +00:00
Máximo Castañeda
61db1f4908 kernel/arch: Fix format specifier for area_id
Change-Id: I1430a68c92fa9c5db96b0d36cc01242ccbf456de
hrev57749
2024-05-29 13:55:30 +02:00