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...
This commit is contained in:
PulkoMandy
2014-06-13 22:15:54 +02:00
parent afe56d3ab3
commit 4a2260f21a
2 changed files with 53 additions and 30 deletions
+2 -1
View File
@@ -50,7 +50,8 @@ enum {
ARCH_ARM_v5T,
ARCH_ARM_v5TE,
ARCH_ARM_v5TEJ,
ARCH_ARM_v6
ARCH_ARM_v6,
ARCH_ARM_v7
};
typedef struct arch_cpu_info {