Changeset 623ba26c in mainline for src/lib/func.c


Ignore:
Timestamp:
2005-09-01T14:42:09Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e83a9f7
Parents:
db3341e
Message:

Add couple of assertions CPU != NULL.

Change type of nrdy from int to count_t.

Rewrite halt() to avoid page fault when CPU == NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lib/func.c

    rdb3341e r623ba26c  
    4545        haltstate = 1;
    4646        cpu_priority_high();
    47         printf("cpu%d: halted\n", CPU->id);
     47        if (CPU)
     48                printf("cpu%d: halted\n", CPU->id);
     49        else
     50                printf("cpu: halted\n");
    4851        cpu_halt();
    4952}
Note: See TracChangeset for help on using the changeset viewer.