baremetal: all examples working, all failures accounted for!

SIMD&FP is now enabled in arm from bootloader.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-25 00:00:01 +00:00
parent 8825222579
commit add6eedb76
21 changed files with 181 additions and 90 deletions

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/linux-kernel-module-cheat#arm-exception-level */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#arm-exception-levels */
#include <stdio.h>
#include <inttypes.h>

View File

@@ -1,7 +1,8 @@
/* https://github.com/cirosantilli/linux-kernel-module-cheat#arm-multicore */
.global main
main:
#include <lkmc.h>
LKMC_PROLOGUE
/* Reset spinlock. */
mov x0, 0
ldr x1, =spinlock
@@ -65,9 +66,6 @@ spinlock_start:
/* Hint CPU 0 to enter low power mode. */
wfe
cbz x0, spinlock_start
mov x0, 0
ret
LKMC_EPILOGUE
spinlock:
.skip 8