History log of /haiku/src/system/boot/platform/amiga_m68k/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>


# 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>


# 2e74287a 24-Oct-2010 François Revol <revol@free.fr>

Force a 040 detection for now, it seems E-UAE is making kickstart detect it randomly :(


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


# 4cbffbf5 12-Oct-2010 François Revol <revol@free.fr>

Style is overrated.


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


# 14016c7c 12-Oct-2010 François Revol <revol@free.fr>

Add some simplified structure definitions the way NetBSD does.
Implement cpu detection using Exec's AttnFlags.
Now panics a little later.

Note you need to tell UAE to emulate a 040 now (020 not supported) with -C4 to boot.


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


# 7ddba3d2 10-Oct-2010 François Revol <revol@free.fr>

s/amicalls/rom_calls/


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


# 4ae92968 10-Oct-2010 François Revol <revol@free.fr>

Stub out some more of the platform code.


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


# 2e74287ab2795146d7d0f01c69a6a234835dbf3a 24-Oct-2010 François Revol <revol@free.fr>

Force a 040 detection for now, it seems E-UAE is making kickstart detect it randomly :(


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


# 4cbffbf53f21696984165816eedc07ef4937f5f5 12-Oct-2010 François Revol <revol@free.fr>

Style is overrated.


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


# 14016c7ce9a173d8e4a0bb4b6062bf98bda24974 12-Oct-2010 François Revol <revol@free.fr>

Add some simplified structure definitions the way NetBSD does.
Implement cpu detection using Exec's AttnFlags.
Now panics a little later.

Note you need to tell UAE to emulate a 040 now (020 not supported) with -C4 to boot.


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


# 7ddba3d2ad915b5ea3ebdc0ea6699d5d8530ea06 10-Oct-2010 François Revol <revol@free.fr>

s/amicalls/rom_calls/


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


# 4ae92968aba77cc4215da219b9f61ba328a92f55 10-Oct-2010 François Revol <revol@free.fr>

Stub out some more of the platform code.


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