aboutsummaryrefslogtreecommitdiff
path: root/src/irq/kirq.cc
blob: acd57d4a07ded4e5f5afbf99024b07145d9a4485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdlib.h>
#include "../idt.h"
#include "ports.h"

template <>
void kirq<0x0>(interrupt_frame*) {
  printk("Interrupt 0x0\n");

  // send end of interrupt
  pic1_t pic1;
  pic1.write(0x20);
}

template <>
void kirq<0x1>(interrupt_frame*) {
  printk("Interrupt 0x0\n");

  // send end of interrupt
  pic1_t pic1;
  pic1.write(0x20);
}