RTEMS Logo

RTEMS 4.9.3 On-Line Library


Interrupts Interrupt Frame Data Structure

PREV UP NEXT Bookshelf RTEMS Porting Guide

5.5.1: Interrupt Frame Data Structure

When an interrupt occurs, it is the responsibility of the interrupt dispatching software to save the context of the processor such that an ISR written in a high-level language (typically C) can be invoked without damaging the state of the task that was interrupted. In general, this results in the saving of registers which are NOT preserved across subroutine calls as well as any special interrupt state. A port should define the CPU_Interrupt_frame structure so that application code can examine the saved state.

typedef struct {
    unsigned32 not_preserved_register_1;
    unsigned32 special_interrupt_register;
} CPU_Interrupt_frame;


PREV UP NEXT Bookshelf RTEMS Porting Guide

Copyright © 1988-2008 OAR Corporation