On 6/17/24 11:57, Ajeet Singh wrote:
From: Stacey Son <s...@freebsd.org>

Defined address spaces for FreeBSD/arm64 and added function for
getting stack pointer from CPU and setting a return value.

Signed-off-by: Stacey Son <s...@freebsd.org>
Signed-off-by: Warner Losh <i...@bsdimp.com>
Signed-off-by: Ajeet Singh <itac...@freebsd.org>
Co-authored-by: Sean Bruno <sbr...@freebsd.org>
Co-authored-by: Warner Losh <i...@bsdimp.com>
---
  bsd-user/aarch64/target_arch_vmparam.h | 68 ++++++++++++++++++++++++++
  1 file changed, 68 insertions(+)
  create mode 100644 bsd-user/aarch64/target_arch_vmparam.h

Acked-by: Richard Henderson <richard.hender...@linaro.org>

+                /* KERNBASE - 512 MB */
+#define TARGET_VM_MAXUSER_ADDRESS   (0x00007fffff000000ULL - (512 * MiB))
+#define TARGET_USRSTACK             TARGET_VM_MAXUSER_ADDRESS

I will note that this may conflict with -R reserved_size,
and is an existing issue with the x86_64 port as well.


r~


Reply via email to