Changeset 36e7ee98 in mainline for generic/src/console/console.c


Ignore:
Timestamp:
2005-12-15T21:32:12Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cddc1639
Parents:
49b6d32
Message:

Fixed cpu halting in debug panic mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/console/console.c

    r49b6d32 r36e7ee98  
    3737#include <func.h>
    3838#include <print.h>
     39#include <arch/atomic.h>
    3940
    4041/** Standard input character device. */
     
    5354        ipl_t ipl;
    5455
    55         if (haltstate) {
     56        if (atomic_get(&haltstate)) {
    5657                /* If we are here, we are hopefully on the processor, that
    5758                 * issued the 'halt' command, so proceed to read the character
     
    6162                        return chardev->op->read(chardev);
    6263                /* no other way of interacting with user, halt */
    63                 printf("cpu: halted - no kconsole\n");
     64                if (CPU)
     65                        printf("cpu%d: ", CPU->id);
     66                else
     67                        printf("cpu: ");
     68                printf("halted - no kconsole\n");
    6469                cpu_halt();
    6570        }
Note: See TracChangeset for help on using the changeset viewer.