Commit 7aa4032a authored by Anas Nashif's avatar Anas Nashif Committed by Mahesh Mahadevan
Browse files

Revert "arch: arm: cortex_m: restore comment lost in translation"



This reverts commit 7d761621.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent aaeaef0a
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -97,12 +97,8 @@ uintptr_t z_arm_pendsv_c(uintptr_t exc_ret)
	/* restore mode */
	IF_ENABLED(CONFIG_USERSPACE, ({
			   CONTROL_Type ctrl = {.w = __get_CONTROL()};
			/* exit privileged state when returning to thread mode. */
			   /* exit privileged state when returing to thread mode. */
			   ctrl.b.nPRIV = 0;
			/* __set_CONTROL inserts an ISB which is may not be necessary here
			 * (stack pointer may not be touched), but it's recommended to avoid
			 * executing pre-fetched instructions with the previous privilege.
			 */
			   __set_CONTROL(ctrl.w | current->arch.mode);
		   }));