diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2024-03-23 14:53:22 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-03-23 13:06:02 +0100 |
commit | 1adea9ccce9e07037506d069a73f048b50c40561 (patch) | |
tree | b52eb77328f6e00447c017e8d08ea5bc2bef8bc8 /boot | |
parent | e652799da09e4bade166476ad4cee13e49722ec9 (diff) | |
download | hurd-1adea9ccce9e07037506d069a73f048b50c40561.tar.gz hurd-1adea9ccce9e07037506d069a73f048b50c40561.tar.bz2 hurd-1adea9ccce9e07037506d069a73f048b50c40561.zip |
boot: Add support for AArch64
Message-ID: <20240323115322.69075-10-bugaevc@gmail.com>
Diffstat (limited to 'boot')
-rw-r--r-- | boot/userland-boot.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 |