commit | e6af0f8caac97b066b754db61f5c6d0aaf905c2e | [log] [tgz] |
---|---|---|
author | Andy Ross <andrew.j.ross@intel.com> | Fri May 24 09:24:35 2019 -0700 |
committer | Andrew Boie <andrewboie@gmail.com> | Mon Jun 03 12:03:48 2019 -0700 |
tree | 3d1780bf0723b545e5109cbbaf2972f3f73ea6b8 | |
parent | 76d9d7806d7b68f8325ac823fcbcdee18b2618cf [diff] |
arch/*: Add z_arch_irq_unlocked() predicate and test It's useful to be able to inspect the key returned from z_arch_irq_unlock() to see if interrupts were enabled at the point where z_arch_irq_lock() was called. Architectures tend to represent this is a simple way that doesn't require platform assembly to inspect. Adds a simple test to kernel/common that validates this predicate with a nested lock. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>