arch: arm: core: aarch32: Fix Cortex-M userspace regression

This was introduced when trying to fix a previous merge conflict.  It
broke userspace tests on nucleo_l073rz.

Fixes #42627

Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
This commit is contained in:
Bradley Bolen 2022-02-09 08:57:35 -05:00 committed by Anas Nashif
parent b68bdf20cf
commit 48333e612a

View file

@ -524,9 +524,6 @@ dispatch_syscall:
#elif defined(CONFIG_ARMV7_M_ARMV8_M_MAINLINE)
/* set stack back to unprivileged stack */
ldr ip, [sp,#12]
#endif
#if !defined(CONFIG_ARMV7_R)
msr PSP, ip
#endif