Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a69abbf4 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "arm64: mm: Log the process id in the rtb"

parents e8d9dffb 1a568c45
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -23,16 +23,22 @@
#include <asm/pgtable.h>
#include <asm/sysreg.h>
#include <asm/tlbflush.h>
#include <linux/msm_rtb.h>

extern bool rodata_full;

static inline void contextidr_thread_switch(struct task_struct *next)
{
	pid_t pid = task_pid_nr(next);

	if (!IS_ENABLED(CONFIG_PID_IN_CONTEXTIDR))
		return;

	write_sysreg(task_pid_nr(next), contextidr_el1);
	write_sysreg(pid, contextidr_el1);
	isb();

	uncached_logk(LOGK_CTXID, (void *)(u64)pid);

}

/*