|
Modestus Moon OS
R4
CS 450 project
|
#include <system.h>#include <core/io.h>#include <core/serial.h>#include <core/tables.h>#include <core/interrupts.h>
Go to the source code of this file.
Macros | |
| #define | PIC1 0x20 |
| #define | PIC2 0xA0 |
| #define | ICW1 0x11 |
| #define | ICW4 0x01 |
| #define | io_wait() asm volatile ("outb $0x80") |
Functions | |
| void | divide_error () |
| void | debug () |
| void | nmi () |
| void | breakpoint () |
| void | overflow () |
| void | bounds () |
| void | invalid_op () |
| void | device_not_available () |
| void | double_fault () |
| void | coprocessor_segment () |
| void | invalid_tss () |
| void | segment_not_present () |
| void | stack_segment () |
| void | general_protection () |
| void | page_fault () |
| void | reserved () |
| void | coprocessor () |
| void | rtc_isr () |
| void | sys_call_isr () |
| void | isr0 () |
| void | do_isr () |
| void | init_irq (void) |
| void | init_pic (void) |
| void | do_divide_error () |
| void | do_debug () |
| void | do_nmi () |
| void | do_breakpoint () |
| void | do_overflow () |
| void | do_bounds () |
| void | do_invalid_op () |
| void | do_device_not_available () |
| void | do_double_fault () |
| void | do_coprocessor_segment () |
| void | do_invalid_tss () |
| void | do_segment_not_present () |
| void | do_stack_segment () |
| void | do_general_protection () |
| void | do_page_fault () |
| void | do_reserved () |
| void | do_coprocessor () |
Variables | |
| idt_entry | idt_entries [256] |
| #define ICW1 0x11 |
Definition at line 20 of file interrupts.c.
Referenced by init_pic().
| #define ICW4 0x01 |
Definition at line 21 of file interrupts.c.
Referenced by init_pic().
Definition at line 28 of file interrupts.c.
Referenced by init_pic().
| #define PIC1 0x20 |
Definition at line 16 of file interrupts.c.
Referenced by init_pic().
| #define PIC2 0xA0 |
Definition at line 17 of file interrupts.c.
Referenced by init_pic().
| void bounds | ( | ) |
Referenced by init_irq().
| void breakpoint | ( | ) |
Referenced by init_irq().
| void coprocessor | ( | ) |
Referenced by init_irq().
| void coprocessor_segment | ( | ) |
Referenced by init_irq().
| void debug | ( | ) |
Referenced by init_irq().
| void device_not_available | ( | ) |
Referenced by init_irq().
| void divide_error | ( | ) |
Referenced by init_irq().
| void do_bounds | ( | ) |
Definition at line 152 of file interrupts.c.
References kpanic().
| void do_breakpoint | ( | ) |
Definition at line 144 of file interrupts.c.
References kpanic().
| void do_coprocessor | ( | ) |
| void do_coprocessor_segment | ( | ) |
| void do_debug | ( | ) |
Definition at line 136 of file interrupts.c.
References kpanic().
| void do_device_not_available | ( | ) |
| void do_divide_error | ( | ) |
| void do_double_fault | ( | ) |
Definition at line 164 of file interrupts.c.
References kpanic().
| void do_general_protection | ( | ) |
| void do_invalid_op | ( | ) |
| void do_invalid_tss | ( | ) |
Definition at line 172 of file interrupts.c.
References kpanic().
| void do_isr | ( | ) |
Definition at line 55 of file interrupts.c.
References COM2, inb, outb, serial_print(), and serial_println().
| void do_nmi | ( | ) |
Definition at line 140 of file interrupts.c.
References kpanic().
| void do_overflow | ( | ) |
Definition at line 148 of file interrupts.c.
References kpanic().
| void do_page_fault | ( | ) |
Definition at line 188 of file interrupts.c.
References kpanic().
| void do_reserved | ( | ) |
| void do_segment_not_present | ( | ) |
| void do_stack_segment | ( | ) |
| void double_fault | ( | ) |
Referenced by init_irq().
| void general_protection | ( | ) |
Referenced by init_irq().
| void init_irq | ( | void | ) |
Definition at line 68 of file interrupts.c.
References bounds(), breakpoint(), coprocessor(), coprocessor_segment(), debug(), device_not_available(), divide_error(), double_fault(), general_protection(), idt_set_gate(), invalid_op(), invalid_tss(), nmi(), overflow(), page_fault(), reserved(), rtc_isr(), segment_not_present(), stack_segment(), and sys_call_isr().
Referenced by kmain().
| void init_pic | ( | void | ) |
| void invalid_op | ( | ) |
Referenced by init_irq().
| void invalid_tss | ( | ) |
Referenced by init_irq().
| void isr0 | ( | ) |
| void nmi | ( | ) |
Referenced by init_irq().
| void overflow | ( | ) |
Referenced by init_irq().
| void page_fault | ( | ) |
Referenced by init_irq().
| void reserved | ( | ) |
Referenced by init_irq().
| void rtc_isr | ( | ) |
Referenced by init_irq().
| void segment_not_present | ( | ) |
Referenced by init_irq().
| void stack_segment | ( | ) |
Referenced by init_irq().
| void sys_call_isr | ( | ) |
Referenced by init_irq().
| idt_entry idt_entries[256] |
Definition at line 17 of file tables.c.
Referenced by idt_set_gate(), and init_idt().