From b6b81f697b38ef915a5dbf1311baba164822e917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 12 Dec 2024 17:56:04 +0100 Subject: clone: clear the frame pointer in the child process on relevant ports This just mirrors what is done in the start code for the affected ports, as well as what is already done for the three x86 ports. Clearing the frame pointer helps protect FP-based unwinders from wrongly attempting to traverse into the parent thread's call frame stack. --- src/thread/microblaze/clone.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/thread/microblaze/clone.s') diff --git a/src/thread/microblaze/clone.s b/src/thread/microblaze/clone.s index b68cc5fc..64e3f074 100644 --- a/src/thread/microblaze/clone.s +++ b/src/thread/microblaze/clone.s @@ -22,7 +22,8 @@ __clone: rtsd r15, 8 nop -1: lwi r3, r1, 0 +1: add r19, r0, r0 + lwi r3, r1, 0 lwi r5, r1, 4 brald r15, r3 nop -- cgit v1.2.1