History log of /haiku/src/system/boot/arch/arm/arch_cpu.cpp
Revision Date Author Comments
# acb424c8 15-Feb-2022 David Karoly <karolyd577@gmail.com>

boot/arm: move system_time and spin to platform

Add fake implementation for system_time()
Implement spin() using EFI boot services

Change-Id: Ib69b851780bd03624ce4e19d725dd319f6640601
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4964
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>


# 8a18d81d 07-Nov-2021 David Karoly <karolyd577@gmail.com>

boot/arch/arm: disable FPU initialization on bootloader start

Change-Id: Idd71940d22a9004e93f613899725d299a7932d8c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4702
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 89fd39f4 01-Jul-2020 Alexander von Gluck IV <kallisti5@unixzen.com>

efi: Refactor CPU code to be arch-specific

* Migrate some platform agnostic architecture code into
boot/arch from efi/arch. This helps to avoid conflicts
between kernel and boot sources as well.
* Conflicts between arch_cpu in efi and kernel code means
bootcode really should *never* directly use kernel arch
headers. (other platforms don't, which is why they don't
have this same issue)
* We carefully thread any needed kernel headers (namely
assembly helper macros) into the bootloader headers without
mixing in the whole conflicting kernel/arch headers.
* ARM now properly get its cpu init code called, and we
progress further into the EFI bootloader.

Change-Id: If67ec9758b5ce68563ebd9eb45d5196401911c67
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2975
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 48064fbc 25-Feb-2020 Alexander von Gluck IV <kallisti5@unixzen.com>

system/boot: Unify spin design, add missing symbols to asm/ld

Change-Id: I1dd98a2243d498ec1c827f7a60385237d12a0d39
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2283
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 5eeb4163 06-Mar-2015 Alexander von Gluck IV <kallisti5@unixzen.com>

platform/u-boot: Make bcm2708 mailbox code functional

* Functional == compiles. Needs tested :-)


# 4a2260f2 13-Jun-2014 PulkoMandy <pulkomandy@pulkomandy.tk>

Let the bootloader know about ARMv7.

When an ARMv7 CPU is detected, immediately turn on the FPU. This allows
us to use vsnprintf in the TRACE call in that function, as our libc is
compiled with floating point support and will trigger a fault if the FPU
is not available.

This lets the boot go further, and crash in mmu_init. Next steps:
* Find why mmu_init is crashing
* Setup some fault handlers, otherwise we call uboot ones, and they are
not very helpful. They will also probably not work once the mmu is
enabledvery helpful. They will also probably not work once the mmu is
enabledvery helpful. They will also probably not work once the mmu is
enabled...


# 5db97b26 27-Nov-2012 Michael Lotz <mmlr@mlotz.ch>

Add memory barrier functions to the ARM bootloader.


# 066688dc 20-Nov-2012 Ithamar R. Adema <ithamar@upgrade-android.com>

ARM/haiku_loader: Style fixes

As suggested by Axel, thanks!


# 1df5784a 12-Nov-2012 Ithamar R. Adema <ithamar@upgrade-android.com>

ARM: Add ARM architecture detection to generic bootloader ARM code.

This detects everything up to ARMv6 right now. Need to check more
recent ARM ARMs for ARMv7 detection.

The detected details get passed on to the kernel, which can use
the pre-detected info for selecting right pagetable format and such.

Copyright removal of Axel done after agreement with Axel @ BeGeistert
that for files that were copy/pasted from x86 arch and then fully
replaced the implementation, removal of original copyright holder is
allowed, since their actual code is gone ;)


# 75b285a9 12-Nov-2012 Ithamar R. Adema <ithamar@upgrade-android.com>

ARM: Fix incorrect panic message.

As noted during BeGeistert and today again by kallisti5, there's a
Pentium reference in the ARM bootloader code.

Correct the message to something more appropriate....

Thanks to Rene for the suggestion ;)


# 36b41db7 09-Nov-2012 Ithamar R. Adema <ithamar@upgrade-android.com>

Merge common ARM CPU/MMU code

This is to make sure all ARM platforms will benefit from planned work on this
MMU/CPU code. The less code duplicated, the better.

Compile-tested for all supported ARM platforms


# 5eeb4163fa05b86b46e9c3cceb980237c99cc758 06-Mar-2015 Alexander von Gluck IV <kallisti5@unixzen.com>

platform/u-boot: Make bcm2708 mailbox code functional

* Functional == compiles. Needs tested :-)


# 4a2260f21ae708afb64c2bf13dd2ed4bd58705ea 13-Jun-2014 PulkoMandy <pulkomandy@pulkomandy.tk>

Let the bootloader know about ARMv7.

When an ARMv7 CPU is detected, immediately turn on the FPU. This allows
us to use vsnprintf in the TRACE call in that function, as our libc is
compiled with floating point support and will trigger a fault if the FPU
is not available.

This lets the boot go further, and crash in mmu_init. Next steps:
* Find why mmu_init is crashing
* Setup some fault handlers, otherwise we call uboot ones, and they are
not very helpful. They will also probably not work once the mmu is
enabledvery helpful. They will also probably not work once the mmu is
enabledvery helpful. They will also probably not work once the mmu is
enabled...


# 5db97b2668a1b8b86fa7a40a8c265e789418e978 27-Nov-2012 Michael Lotz <mmlr@mlotz.ch>

Add memory barrier functions to the ARM bootloader.


# 066688dcac74062a8d05834a9eed4ad2187ab9ce 20-Nov-2012 Ithamar R. Adema <ithamar@upgrade-android.com>

ARM/haiku_loader: Style fixes

As suggested by Axel, thanks!


# 1df5784a22ff1783bb42fbcb63cb86b9965237a1 12-Nov-2012 Ithamar R. Adema <ithamar@upgrade-android.com>

ARM: Add ARM architecture detection to generic bootloader ARM code.

This detects everything up to ARMv6 right now. Need to check more
recent ARM ARMs for ARMv7 detection.

The detected details get passed on to the kernel, which can use
the pre-detected info for selecting right pagetable format and such.

Copyright removal of Axel done after agreement with Axel @ BeGeistert
that for files that were copy/pasted from x86 arch and then fully
replaced the implementation, removal of original copyright holder is
allowed, since their actual code is gone ;)


# 75b285a9699908edbcab1c081a7c53b7d3b3ca76 12-Nov-2012 Ithamar R. Adema <ithamar@upgrade-android.com>

ARM: Fix incorrect panic message.

As noted during BeGeistert and today again by kallisti5, there's a
Pentium reference in the ARM bootloader code.

Correct the message to something more appropriate....

Thanks to Rene for the suggestion ;)


# 36b41db7aaa7c0fd032cb408234b58f3839f577c 09-Nov-2012 Ithamar R. Adema <ithamar@upgrade-android.com>

Merge common ARM CPU/MMU code

This is to make sure all ARM platforms will benefit from planned work on this
MMU/CPU code. The less code duplicated, the better.

Compile-tested for all supported ARM platforms