Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/interrupt.h

    r1f7cb3a rd99c1d2  
    3636#define KERN_amd64_INTERRUPT_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939#include <arch/pm.h>
    4040
     
    5454#define IRQ_PIC_SPUR            7
    5555#define IRQ_MOUSE               12
     56#define IRQ_DP8390              9
    5657
    5758/* this one must have four least significant bits set to ones */
     
    7071
    7172/** This is passed to interrupt handlers */
    72 typedef struct {
     73typedef struct istate {
    7374        uint64_t rax;
    7475        uint64_t rcx;
     
    8081        uint64_t r10;
    8182        uint64_t r11;
     83        uint64_t rbp;
    8284        uint64_t error_word;
    8385        uint64_t rip;
     
    101103        return istate->rip;
    102104}
     105static inline unative_t istate_get_fp(istate_t *istate)
     106{
     107        return istate->rbp;
     108}
    103109
    104110extern void (* disable_irqs_function)(uint16_t irqmask);
Note: See TracChangeset for help on using the changeset viewer.