Commit Graph

62939 Commits

Author SHA1 Message Date
Alexander von Gluck IV
fbd2589b8c bus_manangers/fdt: Fix missing close curly
Change-Id: I2dd439ea7fc90bb149e7454b0d58a6fd383ab30b
2021-08-19 17:41:16 -05:00
Gerasim Troeglazov
270bb32f98 virtio: fix typo 2021-08-18 21:30:41 +10:00
X512
397c81a2b8 virtio_mmio: add new mmio interface
Change-Id: I2ca51d98e337d1e69a8e68d78ef0cfe33dc0d308
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3979
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-08-18 06:19:37 +00:00
Przemysław Buczkowski
5855a8e350 riscv: fix typo frequrency -> frequency
Change-Id: I7a2ed220ad96a9b18bff3ac5c115592c8ba87d89
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4334
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2021-08-17 15:41:18 +00:00
Alexander von Gluck IV
950f68e3b2 kernel/uart: Fix PPC, drop needless abstraction
Change-Id: I4b8f69271ede117701725f9cce30de5bb8ba30bb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4332
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2021-08-16 23:22:35 +00:00
Alexander von Gluck IV
1648ab5277 kernel/uart: Clean up uarts, make calling convention consistent
Change-Id: I36ef92ef13edb0b006344db74e9d1b3ae52e0127
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4327
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-08-16 23:22:35 +00:00
Semion Dimov
c39da9b7a0 Fix build on OSX host
FreeBSD's stat command doesn't support -c/--format option and use %z specifier for file size

Change-Id: I368b6eef0a692df0f16bc1c3d5b5399fcf91e051
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4326
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-08-16 11:17:29 +00:00
X512
dbd1ff0988 libroot: fix ffs for riscv64
Built-in function call ffs() causing infinite recursion.

Change-Id: I506c0301c3a19178ebca4478cbe2ea06a7aeb932
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4318
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-15 20:56:11 +00:00
Alexander von Gluck IV
ae5abb5826 3rdparty: A small script to setup an SD card for the Unmatched
Change-Id: I275f62b2b16017b1735f0b4319ebd1a596da0cdd
2021-08-15 10:11:27 -05:00
Adrien Destugues
c3abd58da6 BUrlRequest: reintroduce Pause/Resume API in the deprecated version
Fixes https://github.com/haikuports/haikuports/issues/6123
2021-08-15 11:47:17 +02:00
X512
756884ad48 radeon_hd: 64 bit PCI bus fixes
Change-Id: If14dc31bf4c9360b5e1d0b477ba375cec8f75ba7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4306
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-15 00:26:57 +00:00
X512
7508e28c4f virtio_net: set device name
Change-Id: I1606804ad45e34f6a745c39917ba113ba5e9ee7f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4313
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-15 00:07:52 +00:00
X512
73445bc413 virtio_block: set device name
Change-Id: Id96e0dd2247625b7b898316511da7f1d8d0e3ba0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4314
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-15 00:05:34 +00:00
X512
f850bba8d0 bus_managers/fdt: rewrite to support device manager node tree
* Breaks previous fdt module clients.

Change-Id: I8bfdca40a77c041ddef51488e1995e5d43edb340
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3977
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-14 23:57:35 +00:00
Alexander von Gluck IV
961c0ecef4 efi/mmu: Disable fixed vaddr allocation on riscv
Change-Id: I137306be6e5d16a715e7efe9eb2614f0dd9e17cb
2021-08-13 21:16:49 -05:00
X512
fa41d6fa7a kernel/arch/platform: implement for riscv64
Change-Id: Id1839ef39d927e6a2017c8b8ac3482d9eeb00fa1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4059
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-13 20:36:30 +00:00
X512
56ac584a91 libdebug: add riscv64 support
Change-Id: I9d9d1697bc67d2ab674f2fbe0dbf3a37ead58595
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4062
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-13 13:24:35 +00:00
X512
9d2cc33a64 kernel/arch_real_time_clock: implement for riscv64
Change-Id: I3a50b3343e00ef45ef9391d463939abba9e666a0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4072
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-13 13:14:41 +00:00
X512
95d6ecf25d libroot/riscv64: define syscall function size, implement time
Change-Id: Ib08b0b700506e3e1eb41d1b30b025bdf688342d9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4071
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-13 13:10:39 +00:00
X512
7b124be096 efi: add NVRAM variable GUID definition
Change-Id: Iab4e59bb4ac91ba5e9c34e1ade433b423a140b9b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4316
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2021-08-13 13:06:05 +00:00
X512
5ae7ac5fd9 drivers/vesa: fix for RISC-V
* Make ISA bus optional in vesa driver

Change-Id: I1f38f92d81fbfe47224893e1d9dbf6a74306e2f0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3986
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-13 13:03:49 +00:00
X512
0877e4d7d1 nvme: add legacy interrupts support
Change-Id: I29b9676c6c2407e7795af4c7b1c56a7afb546f6e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4312
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2021-08-12 17:19:38 +00:00
Alexander von Gluck IV
06ffdddcc8 kernel/vm: riscv64 build fix checkpoint
* This gets the riscv64 build working again
* These changes are being consolidated into:
  https://review.haiku-os.org/c/haiku/+/4309

Change-Id: I3b732299fa49acbda6317e6a2a8d7ab382d7740b
2021-08-12 11:05:44 -05:00
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