From ff25319c393a2dcaf4b059c8970d8b604c7605a1 Mon Sep 17 00:00:00 2001 From: kettenis Date: Sat, 24 Dec 2022 10:47:22 +0000 Subject: [PATCH] Use the correct instruction to clear the frame pointer. ok guenther@, deraadt@ --- lib/libc/arch/aarch64/sys/tfork_thread.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/arch/aarch64/sys/tfork_thread.S b/lib/libc/arch/aarch64/sys/tfork_thread.S index a1b31795ea5..834d39da81f 100644 --- a/lib/libc/arch/aarch64/sys/tfork_thread.S +++ b/lib/libc/arch/aarch64/sys/tfork_thread.S @@ -1,4 +1,4 @@ -/* $OpenBSD: tfork_thread.S,v 1.7 2022/05/24 22:36:58 guenther Exp $ */ +/* $OpenBSD: tfork_thread.S,v 1.8 2022/12/24 10:47:22 kettenis Exp $ */ /* * Copyright (c) 2005 Dale Rahn * @@ -38,7 +38,7 @@ ENTRY(__tfork_thread) .cfi_startproc .cfi_undefined lr /* child */ - ldr fp, 0 + mov fp, #0 mov x0, x3 blr x2 SYSTRAP(__threxit) -- 2.20.1