mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
11 lines
238 B
C
11 lines
238 B
C
/* https://cirosantilli.com/linux-kernel-module-cheat#config-pid-in-contextidr */
|
|
|
|
#include <inttypes.h>
|
|
|
|
int main(void) {
|
|
for (int i = 0; i < 10; i++) {
|
|
__asm__ ("msr contextidr_el1, %0" : : "r" (i) :);
|
|
}
|
|
return 0;
|
|
}
|