Commit Graph

62628 Commits

Author SHA1 Message Date
Rudolf Cornelissen
54ce952dd4 intel_extreme: fixed DP/DDI clk init switch and link det, accept EDID still down. 2021-06-17 21:59:28 +00:00
Niels Sascha Reedijk
bf6a2a2bf1 Cortex: fix the catalog location of the main application
Previously, hrev55011 introduced localization for Cortex, which then
prompted to close #7530. It has then been reopened, when it turns out
that the translations for the container application (RouteApp) did not
work, whereas the individual add-ons/modules were translated.

The cause is that by default BCatalog looks up the translations based on
the subtype part of the signature. This is x-vnd.Cortex.Route (without
the application/ supertype). This change will place the translations in
the right place of the file system.

The add-ons were never affected, since they BCatalog is explicitly told
to find the translations for the entire signature, like:

static BCatalog sCatalog("application/x-vnd.Cortex.InfoView");

Even so, it was chosen to omit the `application` supertype from the
signature for the shared code as well.

This should fix #7530 for good.

Change-Id: Iff18fabef7aba68602e49db1e98cfed2f486f545
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4091
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-17 10:59:18 +00:00
Murai Takashi
324b426da9 libnetservices: Fix DEBUG build
Add iostream header since BUrlProtocolListener::DebugMessage() need it.

Change-Id: I4665d5675b33b1cb5beba123d07a38c3edbbeb6f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4095
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2021-06-16 07:25:36 +00:00
Jessica Tallon
e3fa7914c6 mediaplayer: Support m3u playlists containing urls
fix #6670

Change-Id: I8e15b1a79f1d2a687108c3c2a1fc3fc341b79cc5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4050
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2021-06-16 06:02:48 +00:00
CruxBox
a2603a88fd xfs: coding style fixed, no functional changes
Change-Id: I56a1220abc330ef853cee4bdb9fa9c1b712784a4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3143
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Rene Gollent <rene@gollent.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-15 16:52:35 +00:00
Jérôme Duval
3f816b034d TextSearch: only grep files
fix #17012

Change-Id: Id721ec57945d9a57824ae53bf591d0e09a2b53f3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4094
Reviewed-by: Rene Gollent <rene@gollent.com>
2021-06-15 16:22:08 +00:00
Jérôme Duval
7903bfcf8b strace: add signal name tracing
inspired by hrev23436, fix #10944

Change-Id: Ieedace86a6541a4cd1346791146a96e99d09d614
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4093
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-06-15 14:34:56 +00:00
X512
b0557f6959 kernel/arch/system_info: implement for riscv64
Change-Id: Ifa66859a7f87cd821fe50ca7d26e08472adcf279
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4060
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-06-15 01:55:56 +00:00
X512
a6a92e3cd5 kernel/arch/elf: implement for riscv64
Change-Id: I919ee4883af780f48385a53e5768eba35dde6423
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4054
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-06-14 21:49:07 +00:00
Rudolf Cornelissen
7b6ac3b38f intel driver: internal panels need HWtarget for link and fitter 2021-06-14 23:02:04 +00:00
Rudolf Cornelissen
16ea5aac34 intel driver: added panelfitter pgmming. 2021-06-14 22:49:31 +00:00
François Revol
08d7c6e8f3 poke: raise IOPL on x86 when opening the driver
This should allow easier porting of things like flashrom,
as it mimics FreeBSD's /dev/io behaviour.

Change-Id: Iaa6b6342cf7983a9655a7155adfcc46c8a8264f1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1077
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-06-13 21:07:28 +00:00
Panagiotis Vasilopoulos
9c5a5bafa4 ReadMe: Add Getting Involved link
- It's a good idea to push interested parties towards the right direction.

Change-Id: Ib2486f981c1abbccf97ac019bee919bdf92279e2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4089
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-13 21:06:58 +00:00
François Revol
e5495bf648 poke: allow multiple open()
Not sure why it only ever allowed a single instance.

Change-Id: I972a1d601d93725674a97fb341aa7ffb3625b105
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1075
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-13 21:03:11 +00:00
Alexander von Gluck IV
9918c82954 data/trust_db: Introduce a selection of trusted public keys to our filesystem
Change-Id: I7bf7d5dac5bb576f9ca5fc55680fc369556f4312
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4044
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-06-13 16:30:14 +00:00
CruxBox
1dcb6c252c xfs: B+Tree GetNext() works
The GetNext() works well for B+Trees and that wraps up the work needed
for all kinds of GetNext().
Change-Id: Ie965d3da273364f8fdbdb8faee5cb3c214881130
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3124
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-13 15:49:15 +00:00
X512
7766b5a136 haiku_loader: add J, K keys support for up/down keys
Arrow keys are not available on some platforms.

Change-Id: Ia38797eb12202668a0b0976b31f21f564d140901
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4087
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2021-06-13 11:34:01 +00:00
Han Pengfei
b7a6ab94c3 boot/arm: fix bootloader build issues without font and font_spleen
Change-Id: Ie9595f79de43bbb155c997bdbcf109e8e971e862
Signed-off-by: Han Pengfei <pengphei@qq.com>
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4086
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-06-12 17:45:25 +00:00
Alexander von Gluck IV
35fad4a467 bootloader: Enable GPT partition support in EFI loader
This was enabled per-architecture, but it is reasonable to always
enable GPT support for all EFI systems, no matter which CPU is used.

Change-Id: I53ca2caf048fbc4ead6cfb74c8734ac9ad382224
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4085
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-12 14:04:26 +00:00
Autocomitter
4365774b68 Update translations from Pootle 2021-06-12 08:56:19 +00:00
Murai Takashi
0594775c0f storage kit: fix Wrong type of arguments to formatting function
Pointed out by LGTM.

Change-Id: I802814ef53dd3f46a355db0a57926676037984a7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4080
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-11 10:59:02 +00:00
Murai Takashi
69cd1bde89 keymap: fix value stored to 'flags' is never read
Fix 'flags' was not used in In KeyboardLayoutView::_DrawKeyButton().
Pointed by Clang Static Analyzer.

Change-Id: Ic3b2da856ee410e908eaaf0c5c4b5b3753928c00
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4079
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-11 10:58:35 +00:00
Jérôme Duval
1b0f948ea2 demangler/gcc3+: handle vendor-specific suffix
fix bug #13720

Change-Id: I3363572b88aaa674f5ee7cf69866b9f2bbb4e84c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4084
Reviewed-by: Rene Gollent <rene@gollent.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-11 01:42:54 +00:00
Niels Sascha Reedijk
8c232f164a AboutSystem: remove duplicate 'Copyright'
Reported by translator loic. Thanks!

Change-Id: I2491a02388321338d8ffe3031fa4670877a77a66
2021-06-10 08:28:55 +01:00
Máximo Castañeda
e41899a6fe BMenu: fix scroll activation
Fixes #14932

Change-Id: I72b16a26ea4d3cef0e9518381c583b23bdcadc22
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4078
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: humdinger <humdingerb@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-09 10:58:02 +00:00
Máximo Castañeda
46c95b5d09 BMenu: move menu over the menu bar only if there's more space there
Fixes #16773

Change-Id: I465c2f4366c11b7b0bacaed57c3d8fd33defe8a2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4077
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-09 10:58:02 +00:00
Rudolf Cornelissen
63bd351f41 Intel_extreme and some others: replaced 1920x1080 modeline with nVidia one. Fixes out of range for some panels 2021-06-08 09:30:38 +00:00
Rudolf Cornelissen
aca9888e37 Intel_extreme: fixed hrev55115 regression and added FDI data/link M/N programming. 2021-06-08 09:30:38 +00:00
Alexander von Gluck IV
1a5fe94b7a riscv: Fix build, handle .riscv loader
* We accept the riscv loader to build it, but don't really put it
  into the image since for now you'll just want the haiku_loader.riscv
  for things like TinyEMU

Change-Id: I5005dd5063f2a84cf426db4c40635e87e579ad80
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4075
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-06-08 02:19:02 +00:00
X512
d407b17b18 kernel: riscv64 patches
Change-Id: I8ebcbaa395cbccb50af08fd2f1b049b5cbb949c7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3883
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: X512 <danger_mail@list.ru>
2021-06-07 07:14:23 +00:00
X512
b126a077f8 libroot/uname: add riscv64 support
Change-Id: I1753be9d79d6527f6a9b3cceb644b5cd19d8f67e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4070
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-06-06 19:04:47 +00:00
X512
a7ed58868f virtio: add interrupt declarations
Change-Id: Ifd68f69599a8313615c31b85828aa5b96c68c165
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4069
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-06-06 19:03:30 +00:00
John Scipione
830db1095f TextView docs: Add class overview
Change-Id: I4123822548f606812915211cd080c099b7413ef8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4045
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-06 12:44:28 +00:00
Jessica Tallon
1a5b7d9d27 haikudepot: Resize screenshot window on new change
When the screenshot is changed to a new one, it resets the size
before the screenshot begins downloading so the window is not the
same size as the previous screenshot.

Change-Id: I778b241537b3d1eeb1c1f91b60c60f5e8509ee51
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4049
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-06 09:23:38 +00:00
Jérôme Duval
addd392113 kernel/x86_64: clear carry, nested task and trap flags on syscall entry
this is what's generally done on other OSes.

Change-Id: I90f1a574172b8e020c9943468d2fd121e14dd062
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4047
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-06 07:23:10 +00:00
Autocomitter
55a7cd0a12 Update translations from Pootle 2021-06-05 08:48:53 +00:00
Jérôme Duval
bc5570ae60 kernel/x86: set initial user thread IOPL to zero
User threads aren't supposed to be able to adjust the interrupt flag (IF). A few
apps for instance DOSBox would just use the popf instruction and disable the
flag, expecting the change to be ignored.

Quote from the Intel manual:
"The interrupt flag (IF) is altered only when executing at a level at least as
privileged as the IOPL. If a POPF/POPFD instruction is executed with
insufficient privilege, an exception does not occur, but the privileged bits
do not change."

fix #14711

Change-Id: I0519312c1151a1dd76541f60283c6c210a5b21a6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4046
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-04 15:56:33 +00:00
CruxBox
b4763972bd xfs: B+Tree ExtentMap reading
We can now read all the extent maps from the leaves. This will be needed
to implement the GetNext() functionality.

Change-Id: Ie10b453c33bec6e6d3109743d695f86a90de45cd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3119
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-04 12:50:56 +00:00
Jérôme Duval
d9b9a94c4f kernel/x86: disable trap and direction flag on signal handler entry
846ac2266b
22eca0bf45
Change-Id: I19620d15372572ce4498d9145fd6b0df50f91bb9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4043
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-04 07:39:58 +00:00
Alexander von Gluck IV
37db8e9aed xhci: Enhance endpoint state handling
* Expands on previous change to no enter a stopped
  state on an endpoint teardown.
* Doorbells could re-awaken the port in a stopped state

Change-Id: Ib5d9c89c4b721ea36ca22aaaf3ff92760a3ec2ff
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3996
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-04 07:39:12 +00:00
Máximo Castañeda
a60e5cb46e Get font metrics from a bitmap if there are no outlines
FreeType only provides some font parameters for scalable fonts. In
particular, we use the FT_Face values of units_per_EM, ascender,
descender and height, which are 0 for bitmap-only fonts.

Part of #16938.

Change-Id: Iea2d87ad95f3bc1c2e27fb041da0a27c6e68be91
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4042
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-04 07:39:02 +00:00
Adrien Destugues
8aae4f2190 SetupEnvironment: set USER and GROUP variables
Fixes #7682.

Change-Id: I85ea7b41b838edaeb9c92d280e9420bd70b30fd1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3958
Reviewed-by: Rene Gollent <rene@gollent.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-04 06:37:00 +00:00
Fredrik Modéen
329ae20bac Make Bluetooth Pref use BMessage to save data.
* This will break previus ways to store settings (as it only stored a struct)
* Now we use BMessage to save data.
* Added some stuff to SettingsMessage.
* Fix a bug in BluetoothSettingsView::_GetClassForMenu() and SettingsMessage::SetValue

Change-Id: I6a0fa1564e78460258f480947592eb4007985007
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3887
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-02 13:44:13 +00:00
X512
7fca70f67e haiku_loader.riscv: fix build
`frame_buffer_console` is not usable in boot loader because it use
kernel virtual memory API.

Change-Id: I83f7411261e2ed9b4d68d4c109e5d988e75042cb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4013
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-02 09:25:17 +00:00
X512
3126032d47 OpenTerminal: fix parent PID, simplify logic, minor fixes
Change-Id: I6c97e63d380cbfe041c753c298778c6e5d647507
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4009
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-02 09:24:30 +00:00
Adrien Destugues
599789de1e Pulse: add Risc-V logo
This may become useful soon.

Change-Id: I5c2d57981a04aacea5d8a0cf555ed06b72be48da
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3913
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-02 08:48:36 +00:00
Rudolf Cornelissen
fe40adc2a6 Intel_extreme: fixed Pipe config pgm fault, fixed PLL setup fault (non-analog ports). 2021-06-01 20:29:42 +00:00
Adrien Destugues
0a6ab6bbca Input preferences: some style fixes.
Problems found by running haiku-format and looking at the resulting
files. Manually triaged to keep only the correct changes, currently
haiku-format is making a lot of unwanted changes as well.

Merging the correct changes allows us to see the incorrect ones more
easily and continue working on fixing them.
2021-06-01 21:36:43 +02:00
Jérôme Duval
b25103cc9c kernel: generic user_memcpy() should clear_ac after the fault handler returns
the AC flag in eflags/rflags, pushed in the iframe by the CPU, is kept intact after handling the exception, since the fault handler is run with the faulted iframe and does a simple jump. The AC flag would otherwise be set until the syscall returns to userland.

Change-Id: I24f763032ab98029dd162fb411e1541586451606
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4040
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-01 12:24:54 +00:00
Adrien Destugues
4d0359955f gitignore: Add Visual Studio Code and IntelliJ IDEA configuration directories
Co-authored-by: Panagiotis Vasilopoulos <hello@alwayslivid.com>
Change-Id: Ibed5c5be410bf61d36dc12dce74d9bc1706f2b0a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4039
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-05-31 20:15:44 +00:00