Changeset 7c31d20 in mainline


Ignore:
Timestamp:
2010-06-28T19:40:03Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5b8016d
Parents:
ac11ac7
Message:

Check CPU before doing CPU→id.

File:
1 edited

Legend:

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

    rac11ac7 r7c31d20  
    4949        silent = false;
    5050
    51         printf("\nKERNEL PANIC ON cpu%d DUE TO ", CPU->id);
     51        printf("\nKERNEL PANIC ");
     52        if (CPU)
     53                printf("ON cpu%d ", CPU->id);
     54        printf("DUE TO ");
     55
    5256        va_start(args, fmt);
    5357        if (cat == PANIC_ASSERT) {
Note: See TracChangeset for help on using the changeset viewer.