diff options
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.patch | 34 |
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 @@ | |||
| 1 | From 98f6f8dc23d6b3d4fe5b15045ccb3d3ef36747be Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Peng Fan <peng.fan@nxp.com> | ||
| 3 | Date: Mon, 25 Aug 2025 09:48:05 +0800 | ||
| 4 | Subject: [PATCH 2/2] YOCIMX-9281-2: hypervisor: arm64: fix strh usage | ||
| 5 | |||
| 6 | hypervisor/arch/arm64/entry.S:555: Error: immediate offset out of range | ||
| 7 | |||
| 8 | Per ARM spec: | ||
| 9 | STRH (immediate) | ||
| 10 | <pimm> Is the optional positive immediate byte offset, a multiple of 2 in | ||
| 11 | the range 0 to 8190, defaulting to 0 and encoded in the "imm12" field | ||
| 12 | as <pimm>/2. | ||
| 13 | |||
| 14 | So align sdei_event to 2 bytes aligned. | ||
| 15 | |||
| 16 | Upstream-Status: Pending | ||
| 17 | Signed-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 | |||
| 22 | diff --git a/hypervisor/arch/arm64/include/asm/percpu_fields.h b/hypervisor/arch/arm64/include/asm/percpu_fields.h | ||
| 23 | index 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 | -- | ||
| 33 | 2.34.1 | ||
| 34 | |||
