summaryrefslogtreecommitdiffstats
path: root/recipes-extended/jailhouse/files/0002-YOCIMX-9281-2-hypervisor-arm64-fix-strh-usage.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/jailhouse/files/0002-YOCIMX-9281-2-hypervisor-arm64-fix-strh-usage.patch')
-rw-r--r--recipes-extended/jailhouse/files/0002-YOCIMX-9281-2-hypervisor-arm64-fix-strh-usage.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-extended/jailhouse/files/0002-YOCIMX-9281-2-hypervisor-arm64-fix-strh-usage.patch b/recipes-extended/jailhouse/files/0002-YOCIMX-9281-2-hypervisor-arm64-fix-strh-usage.patch
new file mode 100644
index 000000000..4c8fefa36
--- /dev/null
+++ b/recipes-extended/jailhouse/files/0002-YOCIMX-9281-2-hypervisor-arm64-fix-strh-usage.patch
@@ -0,0 +1,34 @@
1From 98f6f8dc23d6b3d4fe5b15045ccb3d3ef36747be Mon Sep 17 00:00:00 2001
2From: Peng Fan <peng.fan@nxp.com>
3Date: Mon, 25 Aug 2025 09:48:05 +0800
4Subject: [PATCH 2/2] YOCIMX-9281-2: hypervisor: arm64: fix strh usage
5
6hypervisor/arch/arm64/entry.S:555: Error: immediate offset out of range
7
8Per ARM spec:
9STRH (immediate)
10<pimm> Is the optional positive immediate byte offset, a multiple of 2 in
11the range 0 to 8190, defaulting to 0 and encoded in the "imm12" field
12as <pimm>/2.
13
14So align sdei_event to 2 bytes aligned.
15
16Upstream-Status: Pending
17Signed-off-by: Peng Fan <peng.fan@nxp.com>
18---
19 hypervisor/arch/arm64/include/asm/percpu_fields.h | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/hypervisor/arch/arm64/include/asm/percpu_fields.h b/hypervisor/arch/arm64/include/asm/percpu_fields.h
23index 32f42a53..844a9417 100644
24--- a/hypervisor/arch/arm64/include/asm/percpu_fields.h
25+++ b/hypervisor/arch/arm64/include/asm/percpu_fields.h
26@@ -18,4 +18,4 @@
27 bool suspended; \
28 bool suspending; \
29 bool resuming; \
30- bool sdei_event;
31+ bool sdei_event __attribute__((aligned(2)));
32--
332.34.1
34