From: kettenis Date: Sat, 24 Dec 2022 10:47:22 +0000 (+0000) Subject: Use the correct instruction to clear the frame pointer. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ff25319c393a2dcaf4b059c8970d8b604c7605a1;p=openbsd Use the correct instruction to clear the frame pointer. ok guenther@, deraadt@ --- 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)