commit | d058ed301191d9db8a3f98e4e57d12ce77266450 | [log] [tgz] |
---|---|---|
author | Andy Ross <andrew.j.ross@intel.com> | Mon May 17 08:04:13 2021 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon May 17 15:27:37 2021 -0400 |
tree | 772c0010a8ea5ae2c19e09d9346e0f945b3afd84 | |
parent | 58bc81573f7f4011362c3d98f67990dd7ecad7db [diff] |
tests/kernel/fatal: Don't swap while locked This test takes an interrupt lock and tries to call z_swap_unlocked() while holding it. That's not legal (in the general case it means you're breaking a caller's lock!), though in this particular case it was safe because we'll never return to this. Regardless, there is a natural z_swap_irqlock() that releases the lock atomically. Use that. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>