Changeset 473d5d2 in mainline for kernel/generic/src/debug/panic.c


Ignore:
Timestamp:
2011-05-19T16:44:47Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bcaca55
Parents:
9c757820
Message:

add magic value to THE structure for better stack/memory corruption detection
rename (security) contexts to containers (a slightly less overloaded term within SPARTAN kernel)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/debug/panic.c

    r9c757820 r473d5d2  
    9595        printf("\n");
    9696       
    97         printf("THE=%p", THE);
     97        printf("THE=%p: ", THE);
    9898        if (THE != NULL) {
    99                 printf(": pe=%" PRIun " thr=%p task=%p cpu=%p as=%p",
     99                printf("pe=%" PRIun " thr=%p task=%p cpu=%p as=%p magic=%#x\n",
    100100                    THE->preemption_disabled, THE->thread, THE->task,
    101                     THE->cpu, THE->as);
    102         }
    103         printf("\n");
     101                    THE->cpu, THE->as, THE->magic);
     102        } else
     103                printf("invalid\n");
    104104       
    105105        if (istate) {
Note: See TracChangeset for help on using the changeset viewer.