Skip to content

Commit 7a6ba31

Browse files
Fix: define correct mask for interrupts
orbstat detects interrupts by comparing LR values to the SPECIALS_MASK. Correct the mask to fit also armv8-m and armv7-m architecture.
1 parent ceec063 commit 7a6ba31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Inc/symbols.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ extern "C" {
2626
#define NO_FUNCTION 0xffffffff /* No function defined */
2727
#define NO_DESTADDRESS 0xffffffe0 /* No address defined */
2828

29-
#define SPECIALS_MASK 0xfffffff0
30-
#define FN_SLEEPING (SPECIALS_MASK|0xb) /* Marker for sleeping case */
29+
#define SPECIALS_MASK 0xffffff80
30+
#define FN_SLEEPING (SPECIALS_MASK|0xfb) /* Marker for sleeping case */
3131
#define FN_SLEEPING_STR "** Sleeping **" /* String for sleeping case */
3232

33-
#define INTERRUPT (SPECIALS_MASK|0xd)
33+
#define INTERRUPT (SPECIALS_MASK|0xfd)
3434
#define FN_INTERRUPT_STR "INTERRUPT"
3535

3636
enum symbolErr { SYMBOL_OK, SYMBOL_NOELF, SYMBOL_NOOBJDUMP, SYMBOL_UNSPECIFIED };

0 commit comments

Comments
 (0)