nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
idt.c File Reference
#include <slibc.h>
#include <sys/types.h>
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include <segment.h>
#include <idt.h>
Include dependency graph for idt.c:

Go to the source code of this file.

Macros

#define INSTALL_ISR(idt, t, ptr)
 
#define INSTALL_USER_ISR(idt, t, ptr)
 

Functions

void interrupt_init (void)
 인터럽트 처리 초기화 More...
 
void isr_alignment_check (void)
 
void isr_binder (void)
 
void isr_bound (void)
 
void isr_breakpoint (void)
 
void isr_coprocessor (void)
 
void isr_debug (void)
 
void isr_device (void)
 
void isr_div_error (void)
 
void isr_double_fault (void)
 
void isr_dummy (void)
 
void isr_fdc (void)
 
void isr_general_protection (void)
 
void isr_hdc (void)
 
void isr_invalid_opcode (void)
 
void isr_invalid_tss (void)
 
void isr_irq2 (void)
 
void isr_keyboard (void)
 
void isr_machine_check (void)
 
void isr_math_fault (void)
 
void isr_nmi (void)
 
void isr_overflow (void)
 
void isr_page_fault (void)
 
void isr_rtc (void)
 
void isr_seg_not_present (void)
 
void isr_simd_floating (void)
 
void isr_stack_seg_fault (void)
 
void isr_sw (void)
 
void isr_timer (void)
 

Macro Definition Documentation

#define INSTALL_ISR (   idt,
  t,
  ptr 
)
Value:
do { \
(idt).p = IDT_SEGMENT_PRESENT; \
(idt).dpl = IDT_KERNEL; \
(idt).type = (t); \
(idt).d = SIZE32; \
(idt).selector = ((DESC_KERNEL_CS << SIZEOF_A_DESC_BIT) | TI(GDT) | KERNEL); \
(idt).offset0 = LOW16((unsigned long)ptr); \
(idt).offset1 = HIGH16((unsigned long)ptr); \
} while (0)

Definition at line 10 of file idt.c.

Referenced by interrupt_init().

#define INSTALL_USER_ISR (   idt,
  t,
  ptr 
)
Value:
do { \
(idt).p = IDT_SEGMENT_PRESENT; \
(idt).dpl = IDT_USER; \
(idt).type = (t); \
(idt).d = SIZE32; \
(idt).selector = ((DESC_KERNEL_CS << SIZEOF_A_DESC_BIT) | TI(GDT) | KERNEL); \
(idt).offset0 = LOW16((unsigned long)ptr); \
(idt).offset1 = HIGH16((unsigned long)ptr); \
} while (0)

Definition at line 20 of file idt.c.

Referenced by interrupt_init().

Function Documentation

void interrupt_init ( void  )
void isr_alignment_check ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_binder ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_bound ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_breakpoint ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_coprocessor ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_debug ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_device ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_div_error ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_double_fault ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_dummy ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_fdc ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_general_protection ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_hdc ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_invalid_opcode ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_invalid_tss ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_irq2 ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_keyboard ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_machine_check ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_math_fault ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_nmi ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_overflow ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_page_fault ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_rtc ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_seg_not_present ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_simd_floating ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_stack_seg_fault ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_sw ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function:

void isr_timer ( void  )

Referenced by interrupt_init().

Here is the caller graph for this function: