mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
9 lines
165 B
C
9 lines
165 B
C
#include <assert.h>
|
|
#include <inttypes.h>
|
|
|
|
int main(void) {
|
|
register uint32_t x0 __asm__ ("x0");
|
|
__asm__ ("mov x0, #1;" : : : "%x0");
|
|
assert(x0 == 1);
|
|
}
|