mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
baremetal: all examples working, all failures accounted for!
SIMD&FP is now enabled in arm from bootloader.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user