Changeset b3b7e14a in mainline for kernel/generic/include


Ignore:
Timestamp:
2010-06-11T15:31:03Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
214ec25c
Parents:
be06914
Message:

distinguish between "hot" and "cold" exceptions
display only "hot" exceptions by default
add top to help

Location:
kernel/generic/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/console/console.h

    rbe06914 rb3b7e14a  
    3737
    3838#include <typedefs.h>
     39#include <print.h>
    3940#include <console/chardev.h>
     41
     42#define PAGING(counter, increment, before, after) \
     43        do { \
     44                (counter) += (increment); \
     45                if ((counter) > 23) { \
     46                        before; \
     47                        printf(" -- Press any key to continue -- "); \
     48                        indev_pop_character(stdin); \
     49                        after; \
     50                        printf("\n"); \
     51                        (counter) = 0; \
     52                } \
     53        } while (0)
    4054
    4155extern indev_t *stdin;
  • kernel/generic/include/interrupt.h

    rbe06914 rb3b7e14a  
    4444#include <stacktrace.h>
    4545
    46 typedef void (* iroutine)(int, istate_t *);
     46typedef void (* iroutine_t)(int, istate_t *);
    4747
    4848typedef struct {
    4949        const char *name;
    50         iroutine f;
     50        bool hot;
     51        iroutine_t handler;
    5152        uint64_t cycles;
    5253        uint64_t count;
     
    5758
    5859extern void fault_if_from_uspace(istate_t *, const char *, ...);
    59 extern iroutine exc_register(int, const char *, iroutine);
    60 extern void exc_dispatch(int, istate_t *);
     60extern iroutine_t exc_register(unsigned int, const char *, bool, iroutine_t);
     61extern void exc_dispatch(unsigned int, istate_t *);
    6162extern void exc_init(void);
    6263
  • kernel/generic/include/sysinfo/abi.h

    rbe06914 rb3b7e14a  
    130130        unsigned int id;             /**< Exception ID */
    131131        char desc[EXC_NAME_BUFLEN];  /**< Description */
     132        bool hot;                    /**< Active or inactive exception */
    132133        uint64_t cycles;             /**< Number of CPU cycles in the handler */
    133134        uint64_t count;              /**< Number of handled exceptions */
Note: See TracChangeset for help on using the changeset viewer.