mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
baremetal: some quick fixes
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#define SYSREG_WRITE(type, name) \
|
||||
void name ## _write(type name) { \
|
||||
__asm__ __volatile__("msr " #name ", %0" : : "r" (name) : ); \
|
||||
} \
|
||||
}
|
||||
|
||||
#define SYSREG_READ_WRITE(name, type) \
|
||||
SYSREG_READ(name, type) \
|
||||
|
||||
Reference in New Issue
Block a user