mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-30 13:24:27 +01:00
baremetal aarch64: create C version of multicore.S as well
Attempted to do the same for arm, but it failed.
This commit is contained in:
12
lkmc/arm_aarch64.h
Normal file
12
lkmc/arm_aarch64.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef LKMC_ARM_AARCH64_H
|
||||
#define LKMC_ARM_AARCH64_H
|
||||
|
||||
/* Stuff that is common between arm and aarch64. */
|
||||
#define lkmc_arm_aarch64_wfe() __asm__ __volatile__ ("wfe" : : : )
|
||||
#define lkmc_arm_aarch64_dmb(type) __asm__ __volatile__ ("dmb " #type : : : "memory")
|
||||
#define lkmc_arm_aarch64_sev(immediate) __asm__ __volatile__("sev" : : : )
|
||||
#define lkmc_arm_aarch64_hvc(immediate) __asm__ __volatile__("hvc " #immediate : : : )
|
||||
#define lkmc_arm_aarch64_svc(immediate) __asm__ __volatile__("svc " #immediate : : : )
|
||||
#define lkmc_arm_aarch64_wfi() __asm__ __volatile__ ("wfi" : : : )
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user