Changeset 93b84b3 in mainline for generic/src/lib/func.c


Ignore:
Timestamp:
2005-12-12T16:30:07Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ebbdb8f
Parents:
af9a7c5
Message:

Fixed weird simics panic.
Run kconsole, if we panic. This currently works in gxemul,
simics. In mips we need to modify the simulator.
On ia32 we need a function, that would speak directly to the chip
and fetch the character using polling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/lib/func.c

    raf9a7c5 r93b84b3  
    3333#include <arch.h>
    3434#include <typedefs.h>
     35#include <console/kconsole.h>
    3536
    3637__u32   haltstate = 0; /**< Halt flag */
     
    4647        haltstate = 1;
    4748        interrupts_disable();
     49#ifdef CONFIG_DEBUG
     50        printf("\n");
     51        kconsole(NULL); /* Run kconsole as a last resort to user */
     52#endif     
     53
    4854        if (CPU)
    4955                printf("cpu%d: halted\n", CPU->id);
Note: See TracChangeset for help on using the changeset viewer.