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

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

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

parents 63eeb69d b7b6e670
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -34,14 +34,20 @@
#include <asm/pgtable.h>
#include <asm/sysreg.h>
#include <asm/tlbflush.h>
#include <linux/msm_rtb.h>

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);

}

/*