Skip to content

Commit

Permalink
Revision 3
Browse files Browse the repository at this point in the history
  • Loading branch information
X547 committed Jul 25, 2021
1 parent 706a9cb commit c425211
Show file tree
Hide file tree
Showing 124 changed files with 62,631 additions and 3 deletions.
29 changes: 26 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,33 @@
# Haiku-riscv
Haiku port to RISC-V architecture

Latest version: revision 2.
Latest version: revision 3.

Source code is located at https://github.com/X547/haiku/tree/riscv.
[HiFive Unmatched](https://www.sifive.com/boards/hifive-unmatched) board is supported. Radeon graphics card is required for booting to desktop, text mode is not supported.

Booting instructions for HiFive Unmatched:

1. Connect USB keyboard and mouse.

2. Write release image to USB drive. USB 3 drive is recomended.

3. Connect board to UEFI terminal.

4. Start board and press any key on UART terminal to stop boot process.

5. Type following commands in UART u-boot promt: `pci enum ; usb start ; run bootcmd_usb0`.

6. When Haiku boot loader menu appear on UART terminal (not on screen) hit Enter key 3 times.

7. Boot process whould start and eventually desktop will be loaded.


Patchset is provided. Exact Haiku version should be used when appliying patchset.

![](https://raw.githubusercontent.com/X547/Haiku-riscv/main/screenshot.png)

Detail disscussion: https://discuss.haiku-os.org/t/my-haiku-risc-v-port-progress/10663.
Detail disscussion:

* https://discuss.haiku-os.org/t/my-haiku-risc-v-port-progress/10663

* https://discuss.haiku-os.org/t/my-progress-on-real-risc-v-hardware/10963
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From 277c776e3b3e082bd3302bb0ce484f12487da262 Mon Sep 17 00:00:00 2001
From: X512 <[email protected]>
Date: Sun, 29 Nov 2020 20:29:27 +0900
Subject: app_server: [WIP] fix alpha mask clipping

Change-Id: Iad1e0f3c59b04ef92049d0992a45d18215a63c09
---
src/servers/app/drawing/AlphaMask.cpp | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/src/servers/app/drawing/AlphaMask.cpp b/src/servers/app/drawing/AlphaMask.cpp
index 78b1708e6a..caecce27c4 100644
--- a/src/servers/app/drawing/AlphaMask.cpp
+++ b/src/servers/app/drawing/AlphaMask.cpp
@@ -320,12 +320,16 @@ VectorAlphaMask<VectorMaskType>::_RenderSource(const IntRect& canvasBounds)
{
fBounds = static_cast<VectorMaskType*>(this)->DetermineBoundingBox();

+#if 0
if (fBounds.Width() > canvasBounds.Width()
|| fBounds.Height() > canvasBounds.Height()) {
fBounds = fBounds & canvasBounds;
fClippedToCanvas = true;
} else
fClippedToCanvas = false;
+#else
+ fClippedToCanvas = false;
+#endif

if (fPreviousMask != NULL)
fBounds = fBounds & _PreviousMaskBounds();
--
2.30.2

82 changes: 82 additions & 0 deletions patchset-hrev55144/0002-libbe_test-add-more-applications.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
From add8607e00fbfafc368f3d556495db57cfb91f88 Mon Sep 17 00:00:00 2001
From: X512 <[email protected]>
Date: Sun, 29 Nov 2020 18:40:09 +0900
Subject: libbe_test: add more applications

Change-Id: I0fdb73bc2c069bf1748eec99f4c2c483e6dbb68e
---
src/apps/deskbar/Jamfile | 2 ++
src/apps/launchbox/Jamfile | 4 +++-
src/apps/mediaplayer/Jamfile | 2 ++
src/apps/processcontroller/Jamfile | 4 +++-
4 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/apps/deskbar/Jamfile b/src/apps/deskbar/Jamfile
index 5f97856b81..802f5d3120 100644
--- a/src/apps/deskbar/Jamfile
+++ b/src/apps/deskbar/Jamfile
@@ -1,5 +1,7 @@
SubDir HAIKU_TOP src apps deskbar ;

+AddSubDirSupportedPlatforms libbe_test ;
+
UsePrivateHeaders app interface locale shared tracker ;
UsePrivateHeaders private shared ;
SubDirHdrs $(HAIKU_TOP) src kits tracker ;
diff --git a/src/apps/launchbox/Jamfile b/src/apps/launchbox/Jamfile
index 850d9d2bfe..68658b70b8 100644
--- a/src/apps/launchbox/Jamfile
+++ b/src/apps/launchbox/Jamfile
@@ -1,5 +1,7 @@
SubDir HAIKU_TOP src apps launchbox ;

+AddSubDirSupportedPlatforms libbe_test ;
+
UsePrivateHeaders shared ;

Application LaunchBox :
@@ -11,7 +13,7 @@ Application LaunchBox :
PadView.cpp
Panel.cpp
support.cpp
- : be translation shared [ TargetLibsupc++ ] localestub
+ : be translation shared [ TargetLibstdc++ ] [ TargetLibsupc++ ] localestub
: LaunchBox.rdef
;

diff --git a/src/apps/mediaplayer/Jamfile b/src/apps/mediaplayer/Jamfile
index bba251d3d2..07ea5ff9fa 100644
--- a/src/apps/mediaplayer/Jamfile
+++ b/src/apps/mediaplayer/Jamfile
@@ -1,5 +1,7 @@
SubDir HAIKU_TOP src apps mediaplayer ;

+AddSubDirSupportedPlatforms libbe_test ;
+
# for BRecentItems
UsePublicHeaders [ FDirName be_apps Tracker ] ;
UsePrivateHeaders interface shared ;
diff --git a/src/apps/processcontroller/Jamfile b/src/apps/processcontroller/Jamfile
index a189b088cb..8d98329a5d 100644
--- a/src/apps/processcontroller/Jamfile
+++ b/src/apps/processcontroller/Jamfile
@@ -1,5 +1,7 @@
SubDir HAIKU_TOP src apps processcontroller ;

+SetSubDirSupportedPlatforms libbe_test ;
+
UsePrivateSystemHeaders ;
UsePrivateHeaders app interface shared ;

@@ -21,7 +23,7 @@ Application ProcessController :
ThreadBarMenu.cpp
ThreadBarMenuItem.cpp
Utilities.cpp
- : be shared [ TargetLibsupc++ ] localestub
+ : be shared [ TargetLibstdc++ ] [ TargetLibsupc++ ] localestub
: ProcessController.rdef
;

--
2.30.2

Loading

0 comments on commit c425211

Please sign in to comment.