Cleanup handling of interrupt controller (PIC).
authorKevin O'Connor <kevin@koconnor.net>
Sat, 14 Jun 2008 19:56:16 +0000 (15:56 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 14 Jun 2008 19:56:16 +0000 (15:56 -0400)
commitf54c150090ff38a73ef64a5d20fdfa0d9c403972
treec9c4325ee9d88897c25452eaf08fcc22440499b4
parent15c1f2207f4d406bb56032cef5920f474f32de88
Cleanup handling of interrupt controller (PIC).

Add new file (pic.h) with helpers for accessing the PIC.
Move irq enabling code to the files that use those interrupts.
Also, don't setup for floppy if floppy support not enabled.
12 files changed:
Makefile
src/ata.c
src/clock.c
src/disk.c
src/floppy.c
src/ioport.h
src/kbd.c
src/mouse.c
src/pic.h [new file with mode: 0644]
src/post.c
src/system.c
src/util.h