Commit Graph

62766 Commits

Author SHA1 Message Date
X512
f1fa58bfbc haiku_loader.efi: update for riscv64
* Added MMU page table generation.
* Added optional FDT device detection and passing to kernel.
* Add platform address translation stubs to bios_ia32
  to drop EFI ifdefs

Change-Id: I89257c93c84404fd988f621b29f927ed0df3c3b1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4304
Reviewed-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-08-12 08:33:36 +00:00
Coldfirex
925f912596 FTPD: Pull in various commits from upstream
Our version is from roughly 4-2007.

Brought in the following commits that appeared relevant to code improvements and fixes.:

f0b40b1c97 (diff-ccb7a49e05dd2061a0b3ac926212bc5aebe5afd09bbefc8658ba57d8b79827a1)
d56cc55917 (diff-ccb7a49e05dd2061a0b3ac926212bc5aebe5afd09bbefc8658ba57d8b79827a1)
763e8c9623 (diff-ccb7a49e05dd2061a0b3ac926212bc5aebe5afd09bbefc8658ba57d8b79827a1)
62f390ecd9 (diff-ccb7a49e05dd2061a0b3ac926212bc5aebe5afd09bbefc8658ba57d8b79827a1)
6e4fcca0f8 (diff-ccb7a49e05dd2061a0b3ac926212bc5aebe5afd09bbefc8658ba57d8b79827a1)
69097cd8da (diff-ccb7a49e05dd2061a0b3ac926212bc5aebe5afd09bbefc8658ba57d8b79827a1)
3c0c1e01c9 (diff-ccb7a49e05dd2061a0b3ac926212bc5aebe5afd09bbefc8658ba57d8b79827a1)

Change-Id: If44f58950513ebe1fecc2f482ea954fe49263677
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4321
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-08-10 12:49:49 +00:00
Andrew Lindesay
95c7b01864 HaikuDepot: Shutdown Handling
Improvements to the shutdown handling mechanics so that
if there is an install etc... happening when the
application is quit that it will wait until the process
is complete before actually terminating.

Change-Id: I8d3c4fbd9de0abc9382d55f0a6955b7f63a36637
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4322
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-08-08 08:09:05 +00:00
Adrien Destugues
6a41334ced net_server: remove about box.
Fixes #16823.
2021-08-07 12:44:57 +02:00
X512
a748b72e3c AutoDeleter: add VMAddressSpacePutter, DeviceNodePutter
Change-Id: I705de24f6a87287943814e748d5a02e43b029e60
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3987
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 21:11:04 +00:00
X512
058b29ac34 AutoDeleter: introduce MethodObjectDeleter
It allows to call destructor function stored in struct object such as
device_manager_info::put_node.

Change-Id: If9162f2f449d2b1c52c39509fa8732f21debf04a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3484
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 21:11:04 +00:00
Alexander von Gluck IV
cb256af95c kernel/riscv64: Fix GetChar data val assignment for sifive uart
Change-Id: I81981d23222f81ee936695c3257e8185a7bcebfd
2021-08-06 12:58:43 -05:00
X512
f0e1bca09c kernel/arch/int: implement for riscv64
Change-Id: I62d9bff75d35a685983c626720514ff17b1cef00
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4052
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 17:45:26 +00:00
X512
d472f38a49 riscv64: update hardware definition headers
Change-Id: I0c84f1d5389842d4591cb1548793e08155ba3666
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4311
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 17:33:53 +00:00
X512
b87ec78210 kernel: update arch headers for riscv64
Change-Id: Iaf1c253745412614f7e4a30019d96483cb0d3a12
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4310
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 17:26:04 +00:00
X512
ec1174b442 kernel: add SiFive UART driver for riscv64
Change-Id: I37a909b5bcdb18b3fa062961eca9ff2f5187867c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4305
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 16:56:21 +00:00
X512
64bc301951 libroot/os: implement arch-specific parts for riscv64
Change-Id: Idb6920b4c98a579a184e6a7e1976f2d8c7618dba
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3983
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 16:03:11 +00:00
X512
1deede7388 riscv64: add SBI syscall interface
Change-Id: Ifab2a65fdad1de807e2334ec94137b992d6fe19d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4300
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 15:51:16 +00:00
X512
c15bf9b792 kernel/arch/timer: implement for riscv64
Change-Id: Ia854b0048a86b1427e975f482325ed4d4df1a12a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4061
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 15:47:48 +00:00
X512
de8c1bcc32 kernel/arch/user_debugger: implement for risv64
Change-Id: I9cdf7a6a5b66cdd83133485f98067ce9a5fb819d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4058
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 15:42:49 +00:00
X512
d031c09ceb kernel/arch/cpu: implement for riscv64
Change-Id: Ib4dd636f9ebb62931f77c809185ea810485d801e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4057
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 15:41:33 +00:00
X512
62790afc9d kernel/arch/commpage: implement for riscv64
Change-Id: Id7f495896a08a237db85dcedd1174e4c181e373d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4056
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 15:28:42 +00:00
X512
d6a257bbe9 kernel: add RISC-V HTIF code
Change-Id: I83251bb4586b4f752c97741f62a96d2f6f842377
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4055
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 15:23:19 +00:00
X512
e013897fcf kernel/arch/debug: implement for riscv64
Change-Id: Iab5cc9ef4059f968bca03683592d1ec1818a26a2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4053
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 15:19:22 +00:00
X512
4a32f48e70 kernel/arch/thread: implement for riscv64
Change-Id: I3effa598626b32c29606299cd0edee390d430baf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4066
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 15:01:52 +00:00
X512
7ef006297e kernel/arch/vm: implement for riscv64
Change-Id: I0b463f3d2bca9f31b0aabacbf70a9774493d3467
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4051
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 14:47:32 +00:00
X512
7e6b3c0787 HaikuPortsCross/riscv64: update GCC package
Change-Id: Ifb2158822df63121397ccbe7dadaba44594832d2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4073
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-08-06 07:33:42 +00:00
X512
4b06883d46 ati: add register definition
GEN_INT_STATUS: Interrupt & Status indicators (vblank, vline, vsync).

Change-Id: Ia5f786f3bf654c28b945a268ee7d32b8f3d02732
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4307
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-08-06 06:54:59 +00:00
Jessica Hamilton
fe3ac93cdf Terminal: add support for per-theme custom ANSI colours.
* Updates the colour palette for Solarized
* Adds new colour palette, Relaxed (MIT License) [1]

[1]: https://github.com/Relaxed-Theme/relaxed-terminal-themes

Change-Id: Ia81120cd983b9c3b935f8a990867ee4b7c35b6d2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4196
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-02 14:28:10 +00:00
Adrien Destugues
21be5dfa38 WebPositive: update version to 1.3.
I forgot to do this before beta3.
2021-08-01 14:26:48 +02:00
Coldfirex
e2f56dcb19 VirtioModule: Fix PVS773
The function was exited without releasing the 'device' pointer.

Change-Id: I19fcda340a6acf16c3fca243de6128d7218e379d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4282
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-07-31 10:09:33 +00:00
Coldfirex
70e7cf9a4c ATAModule: Fix PVS773
The function was exited without releasing the 'channel' pointer.

Change-Id: I093fbbc3c5c9c6633a8df8e04234a4076b1d7a05
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4281
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-07-31 06:50:41 +00:00
Coldfirex
22d8d5db81 Update PCI and USB IDs
Pulled 07/27/2021 from:
https://pci-ids.ucw.cz/v2.2/pci.ids
http://www.linux-usb.org/usb.ids

Change-Id: I5d8e33649cccb98ce8fc22544f9ff95a9e2a6c26
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4248
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-07-30 07:08:40 +00:00
Jérôme Duval
d7a4a01f98 usb-header.awk: Fix use of printf
Change-Id: I0f07a321ab5b896c166270b5da6f667cb47ddf26
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4279
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-07-30 04:35:08 +00:00
Murai Takashi
2876efaafe screen_savers/nebula: Add more localization
Change-Id: Ic896d058b42440659f83af794f63d9392c4e7a11
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4276
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-07-29 12:47:34 +00:00
Coldfirex
64897ae792 FTPD: va_list 'ap' was opened but not closed by va_end()
as pointed out by cppcheck

Notified upstream FreeBSD of issue.  They realized this was dead code and ripped out.  Syncing those specific changes only.

https://github.com/freebsd/freebsd-src/pull/517
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257317
https://cgit.freebsd.org/src/commit/?id=674400eb20b65369a88b1cb778d729bc297832c9

Change-Id: I4951fa3ce42798895a8222d927067640267d0bbc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4214
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-07-29 12:46:45 +00:00
Murai Takashi
88a19e0e18 charactermap: Add more localization
Change-Id: I94680126e4f9063d283ed4e7a6f1f0087032376b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4249
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-07-29 08:40:21 +00:00
JackBurton79
60ead048b5 MediaPlayer: close() cd/dvd device after eject.
We were not closing cd/dvd device after eject.
Also changed fDevice member to a local variable, since we only use it in one place.

Change-Id: I169da97501f98e30deded1f5ff53d3bc00459eab
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4247
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2021-07-27 12:23:25 +00:00
Adrien Destugues
899fdd042a XSI semaphores: Do not insert invalid sem_keys in key map.
Semaphore keys were added to the key map a bit early, before all error
checking had been done. As a result, we could have keys in the map that
would not point to a valid semaphore.

Fixes the root issue in #16741. A previous patch in hrev54878 had
already fixed the panic when trying to access such a key, but it was
still possible to generate one.

Change-Id: I7449e295fdbe2a48b554cbc0508683d042f6ca48
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4240
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-07-27 06:22:31 +00:00
Jérôme Duval
518f9c4e68 BCountry: check ICU version for addLikelySubtags
should help arm, riscv builds.

Change-Id: I2d626dfd28c9c4abaac15c010dd41afac410d564
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4246
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-07-26 09:30:59 +00:00
Adrien Destugues
71f3ec460f vm: fix off by one errors
Various functions would return an error if trying to use them on the
last page of userspace, as they tested the permissions for the first
byte out of the requested range. Also, the code was duplicated in
several places

- Rename validate_user_range to validate_memory_range. The "user" in the
name was to mean that the range is provided by the user calling the
syscall, but it is a bit confusing, as the function accepts any range
that is either in kernel or in user memory.
- Add a new function validate_user_memory_range that only accepts
userspace memory, and use this one where appropriate.

Change-Id: I135f8d584340f0ba4ae7e4b8cb6f8600fbf3ef2d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4212
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-07-26 06:42:19 +00:00
Adrien Destugues
a94ee3f35a BUrlRequest: fix issues found while documenting
- Remove Pause/Resume functions. They are not possible to implement (the
  server would time out)
- Fix SetContext(NULL) to do the right thing.

Change-Id: I25ba09bb01ea0fe8a85d774611b33be7dc192028
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4245
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2021-07-26 06:28:08 +00:00
Adrien Destugues
e9946b675c DeskCalc: fix mixup of key codes and labels
We must keep an untranslated version of the text for use with the
expression parser. Only the key label in the user interface should be
translated.

Fixes #15709.
2021-07-25 18:54:20 +02:00
Adrien Destugues
8df6e5c2a6 BWindow: fix copypasta in ResizeToPreferred
If you had problems with a window picking an incorrect height when using
the layout system, this could very well be why.
2021-07-25 17:47:36 +02:00
Adrien Destugues
b5a859ad62 People: make default size larger
We have increased the number of default attributes, so the initial size
wasn't enough.

On small resolution displays, adjust the size to not end up with part
of the window outside the screen.

Fixes #15371

Change-Id: Ie59cb3a3f6609eff7d933d0bf0e11f66637d6d10
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2222
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-07-25 14:40:57 +00:00
Adrien Destugues
40a12ac67e StyledEdit: add menu to underline text
Eases testing of B_UNDERSCORE_FACE

Change-Id: If3e1f247a984b81e9262136ca30139851cfa19a2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4244
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-07-25 14:40:27 +00:00
Adrien Destugues
a43cf8d4a3 LayoutUtils: fix typo
This is in the code to print a text dump of the layout constraints, so
it does not fix any layout problems, but it makes debugging things a bit
easier.
2021-07-25 15:55:46 +02:00
Leorize
42819a8b49 docs/user/net: add BUrlRequest documentation
Change-Id: I88bff3c452ed9e2025c7d258167ced14919c4e9c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2984
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-07-25 11:52:21 +00:00
Leorize
9b692462b3 docs/user/net: add BUrlResult documentation
Change-Id: I94d7c258da60b2fa7add446dfc37aba0a14f6241
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2983
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-07-25 11:52:21 +00:00
Leorize
937388cdd8 docs/user/net: add BUrlProtocolDispatchingListener documentation
Change-Id: I8515f6d5feab3399f3b0357b78e7e791cdf6df25
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2982
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-07-25 11:52:21 +00:00
Sambuddha Basu
758dae382b AboutSystem: underline links on mouse over
Fixes #8555.

Change-Id: Ib5ba32625062b6b3c180e8082e634fba9e8a70ec
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2364
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-07-25 08:40:31 +00:00
Kacper Kasper
ef83008e79 app_server: add B_UNDERSCORE_FACE support
There was some confusion (and a TODO indicating it) in ServerFont.cpp,
because the notion of "font face" from the Be API is partially
implemented using different font manager styles (bold, italic, etc),
and partially by keeping flags in a separate variable for drawing
extra things or modifying the drawing (underscore, strikeout, ...).

The implementation did not actually preserve the extra flags, and so the
underscore face attribute was lost.

Implement the actual underlining of the text in AGGTextRenderer. This
implementation is a naive one so far. In particular there are the
following limitations:
1. Line is drawn over the text - no nice gaps for descents. Ideally, the
   line should not touch the letter descents, and leave some space
   around them. I don't know how to retrieve the contour - it appears to
   me this might require bigger refactoring of this code. I have left in
   my experiments commented out in the code.
2. If the text run ends with whitespace, the whitespace is not underlined
   as it should. In particular if another text run is drawn next to it
   and it's expected that the underline is continuous between the two.

Change-Id: I8d78b8e1eceddff0a7d98e5a49659e7b03fd89a0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3041
Reviewed-by: Kacper Kasper <kacperkasper@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-07-25 08:39:57 +00:00
François Revol
627fb72d50 app_server: only turn screens on once at start
Previous code from hrev55212 was triggered on every workspaces change.

Fixes #17078.

Change-Id: I13108cddbd57662650e06c05bd43931c12b3dfae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4208
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-07-24 19:35:49 +00:00
Adrien Destugues
893d5930fe ShowImage: fix scrollbar size
Change-Id: I5c50bd9a842ce79d78b6e9c2227dc37e3c52c6e6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3755
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-07-24 08:43:46 +00:00
Jessica Hamilton
2c6b14c0b8 Installer: ensure the package administrative path exists
Fixes #16984

Change-Id: Ia662147395130be4498eefbe11f5351533c88ff2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4242
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-07-24 08:42:41 +00:00