git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
feat: nearly complete POSIX.1-2008 compliant terminal interface implementation
[lunaix-os.git]
/
lunaix-os
/
arch
/
i386
/
hal
/
x86_intc.c
1
#include <hal/intc.h>
2
#include <sys/apic.h>
3
#include <sys/ioapic.h>
4
5
extern struct intc_context arch_intc_ctx;
6
7
void
8
intc_init()
9
{
10
apic_init();
11
ioapic_init();
12
13
arch_intc_ctx.name = "i386_apic";
14
arch_intc_ctx.irq_attach = ioapic_irq_remap;
15
arch_intc_ctx.notify_eoi = apic_on_eoi;
16
}