History log of /haiku/src/system/boot/platform/u-boot/cpu.cpp
Revision Date Author Comments
# 39a7a69b 23-Mar-2020 Jérôme Duval <jerome.duval@gmail.com>

boot_loader: add missing stubs

u_boot build still broken

Change-Id: Iba93ce7bf0d5c30a95ff98420a2e419eb28bb398
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2412
Reviewed-by: Adrien Destugues <pulkomandy@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>


# 7b4d924f 04-Dec-2019 Andrej Antunovikj <tunas@cryptolab.net>

cpu: Extract shared x86 code from efi & bios_ia32

This issue was initially detected by PVS Studio (issue number V547) and fixed
as part of Google Code-in 2019.

The initial problem was the calculate_cpu_conversion_factor function
which had been copied in the BIOS and EFI versions of the boot code.
Further investigation led to more duplicated or very similar functions
being identified.

Introduce an arch_cpu.h for the x86 boot platform to group these things
in a single place, and adjust the BIOS and EFI code to call into that.
Note that the BIOS and EFI code is still a little platform specific,
ideally there should be a boot_arch_cpu_init() function for each
architecture as already done for openfirmware and u-boot.

Also remove some irrelevant comments from copypasted files for other
architectures, as that was filling my git grep with useless noise.

Change-Id: I16d815f0bf015cec0b4e03cc14f3cc447c7164c5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1985
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# c9bb9409 01-Dec-2012 François Revol <revol@free.fr>

U-Boot: cleanup

Remove commented asm code. We should use the U-Boot API later on.


# 037f252f 24-May-2012 François Revol <revol@free.fr>

U-Boot: split cpu.cpp into arch-specific and common parts

* the common part should try to use the U-Boot API when found.
* the arch part can make use of cpu features (like timer register)
* the ppc code enables the FPU in the MSR, since it's used by vsnprintf(),
which at least saves one FP register in its prologue.


# f4bd3cda 17-May-2012 François Revol <revol@free.fr>

U-Boot: Fix comments and ppc build

* those are not ARM-specific.
* this asm code doesn't build for ppc, and is not really useful for ARM either.


# 20cbef82 27-Jul-2009 François Revol <revol@free.fr>

[GSoC] [ARM] Patch by Johannes Wischert.
Stubbed u-boot platform code. Mostly copied from other platforms.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31818 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c9bb94092f958ba5f2b002c656ddced90e6221af 01-Dec-2012 François Revol <revol@free.fr>

U-Boot: cleanup

Remove commented asm code. We should use the U-Boot API later on.


# 037f252fd0dd3e85ebf9eaceee58b1a5ce73ca0d 24-May-2012 François Revol <revol@free.fr>

U-Boot: split cpu.cpp into arch-specific and common parts

* the common part should try to use the U-Boot API when found.
* the arch part can make use of cpu features (like timer register)
* the ppc code enables the FPU in the MSR, since it's used by vsnprintf(),
which at least saves one FP register in its prologue.


# f4bd3cda321dce859975e6232ebac7e8eaad6958 17-May-2012 François Revol <revol@free.fr>

U-Boot: Fix comments and ppc build

* those are not ARM-specific.
* this asm code doesn't build for ppc, and is not really useful for ARM either.


# 20cbef82a43cbb7eeeaac16c85f4de15bcf9ef47 27-Jul-2009 François Revol <revol@free.fr>

[GSoC] [ARM] Patch by Johannes Wischert.
Stubbed u-boot platform code. Mostly copied from other platforms.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31818 a95241bf-73f2-0310-859d-f6bbb57e9c96