Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
enable_ccr.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
Include dependency graph for enable_ccr.c:

Go to the source code of this file.

Functions

void enable_ccr (void *info)
int init_module (void)
 MODULE_LICENSE ("CC0")

Function Documentation

◆ enable_ccr()

void enable_ccr ( void * info)

Definition at line 4 of file enable_ccr.c.

5{
6 #ifdef __aarch64__
7 asm volatile("MSR PMUSERENR_EL0, %0" ::"r"(1));
8 asm volatile("MSR PMCR_EL0, %0" ::"r"(1));
9 asm volatile("MSR PMCNTENSET_EL0, %0" ::"r"(0x80000000));
10 #else
11 asm volatile("mcr p15, 0, %0, c9, c14, 0" :: "r"(1));
12 asm volatile("mcr p15, 0, %0, c9, c12, 0" :: "r"(1 | 16));
13 asm volatile("mcr p15, 0, %0, c9, c12, 1" :: "r"(0x8000000f));
14 #endif
15}

Referenced by init_module().

Here is the caller graph for this function:

◆ init_module()

int init_module ( void )

Definition at line 17 of file enable_ccr.c.

18{
19 on_each_cpu(enable_ccr, NULL, 0);
20 printk(KERN_INFO "Userspace access to CCR enabled\n");
21 return 0;
22}
void enable_ccr(void *info)
Definition enable_ccr.c:4

References enable_ccr().

Here is the call graph for this function:

◆ MODULE_LICENSE()

MODULE_LICENSE ( "CC0" )