Thread (139 messages) 139 messages, 12 authors, 2024-08-20

Re: [PATCH v4 28/29] kselftest/arm64: Add test case for POR_EL0 signal frame records

From: Kevin Brodsky <hidden>
Date: 2024-07-09 13:10:23
Also in: kvmarm, linux-fsdevel, linux-mm, linuxppc-dev

On 03/05/2024 15:01, Joey Gouly wrote:
+static uint64_t get_por_el0(void)
+{
+	uint64_t val;
+
+	asm volatile (
+		"mrs	%0, " SYS_POR_EL0 "\n"
+		: "=r"(val)
+		:
+		: "cc");
Not sure why we would need "cc" for an MRS? __read_pkey_reg() doesn't
use it (maybe we could directly use that function here if including
pkey-arm64.h is OK).

Kevin
+
+	return val;
+}
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help