[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/10] boot: Add support for AArch64
From: |
Sergey Bugaev |
Subject: |
[PATCH 10/10] boot: Add support for AArch64 |
Date: |
Sat, 23 Mar 2024 14:53:22 +0300 |
---
boot/userland-boot.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/boot/userland-boot.c b/boot/userland-boot.c
index f407f0a6..496628eb 100644
--- a/boot/userland-boot.c
+++ b/boot/userland-boot.c
@@ -334,6 +334,17 @@ boot_script_exec_cmd (void *hook,
thread_set_state (thread, ALPHA_THREAD_STATE,
(thread_state_t) ®s, reg_size);
}
+#elif defined (AARCH64_THREAD_STATE_COUNT)
+ {
+ struct aarch64_thread_state regs;
+ reg_size = AARCH64_THREAD_STATE_COUNT;
+ thread_get_state (thread, AARCH64_THREAD_STATE,
+ (thread_state_t) ®s, ®_size);
+ regs.sp = (long) arg_pos;
+ regs.pc = (long) startpc;
+ thread_set_state (thread, AARCH64_THREAD_STATE,
+ (thread_state_t) ®s, reg_size);
+ }
#else
# error needs to be ported
#endif
--
2.44.0
- [PATCH 01/10] term: Fix function prototype, Sergey Bugaev, 2024/03/23
- [PATCH 02/10] exec: Fix creating executable stacks, Sergey Bugaev, 2024/03/23
- [PATCH 04/10] proc: Only try host_kernel_version () on i386, Sergey Bugaev, 2024/03/23
- [PATCH 05/10] libshouldbeinlibc: Stop relying on address space size, Sergey Bugaev, 2024/03/23
- [PATCH 03/10] Make long & friends 64-bit on 64-bit platforms, Sergey Bugaev, 2024/03/23
- [PATCH 06/10] exec: Stop relying on address space size, Sergey Bugaev, 2024/03/23
- [PATCH 09/10] proc: Add support for AArch64 in uname, Sergey Bugaev, 2024/03/23
- [PATCH 07/10] exec: Add support for AArch64 executables, Sergey Bugaev, 2024/03/23
- [PATCH 10/10] boot: Add support for AArch64,
Sergey Bugaev <=
- [PATCH 08/10] elfcore: Add support for saving AArch64 registers, Sergey Bugaev, 2024/03/23
- Re: [PATCH 01/10] term: Fix function prototype, Samuel Thibault, 2024/03/23