32 or 64 bit alternative procesor RiscV or ARM


I am watching your work on alternative architectures. One serious fact puzzles me. As in the subject, will the first working version of Haiku be for a 64 bit processor?
Is there any work on the so-called user space for 32 bit programs. What will it look like? The first 32 bit version is the natural approach. are you going to change it

IA32 support for AMD64: https://review.haiku-os.org/c/haiku/+/2874

We are currently not putting a lot of effort in supporting 32bit ARM and RISC-V. For ARM, the 32bit version is old, and as a result it has a lot of variations and different generations (hardware floating point or not? ARMv6 or ARMv7?). This means every device is different and it is an endless source of problems for us. The 64bit version sets a more sane base to start from.

In the case of RISC-V, we simply don’t expect any 32bit “desktop” machine to be available.

In the case of Sparc, the architecture is 64bit since 1998, there is really no point in supporting older system (and that’s assuming there is a point in supporting Sparc at all).

The PowerPC port is currently 32bit only, and generating not a lot of interest and excitement. The m68k port is also 32bit only since m68k never had a 64bit version.

So, long story short: we have enough problems supporting new architectures, and it seems not wise to focus on older versions of CPU architectures. 32bit is making our work harder and is not “natural” at all since on all modern platforms, you have to deal with some kind of PAE: 64bit physical addresses, 32bit virtual addresses, so that you can handle more than 4GB of RAM (and on ARM and RISC-V, this would even be “more than 4GB of address space”, which there includes a lot more than RAM, you will probably be limited to 2 or 3GB of RAM).


The “grown-up” answer is probably no but it would be seriously cool to run Haiku on my Sun Blade 100 workstation that keeps on collecting dust :slight_smile:
Speaking of the sparc port, if there is anything I could do to help testing-wise, please let me know.

Well at the moment all you can test is the bootloader and I haven’t even checked that carefully on all the hardware I own. So I’d say it’s a bit early for testing :slight_smile:

When ?

  • merge a fdt to ARM and RiscV
  • patch a offcial RiscV image a X512 patches
  • be work a mmc driver do RiscV or ARM
  • RISCV64 works today. It was the first functional non-x86 port thanks to @X512 for a lot of debugging and code.
    • Minimum specs: UEFI capable bootloader (edk2, or u-boot), RV64GC CPU, 1GiB of RAM.
  • ARM64 is close behind and attempts to boot.
    • Minimum specs: UEFI capable bootloader (edk2, or u-boot), ARMv8, 1GiB of RAM.

Find a device matching the above, and you have a great shot at Haiku at least attempting to boot :slight_smile: