summaryrefslogtreecommitdiff
path: root/src/arch/amd64/pic.c
diff options
context:
space:
mode:
authortrimill <trimill@trimillxyz.org>2024-01-31 22:30:35 -0500
committertrimill <trimill@trimillxyz.org>2024-02-01 17:01:20 -0500
commitb5b904cfc9bf22ce9f6c3cfcf110e4559ef0994a (patch)
tree2b352192a63e75fa921ac82ef370adb7da49434d /src/arch/amd64/pic.c
parentdisplay mem formatted (diff)
downloadcorn-b5b904cfc9bf22ce9f6c3cfcf110e4559ef0994a.tar.gz
corn-b5b904cfc9bf22ce9f6c3cfcf110e4559ef0994a.tar.bz2
corn-b5b904cfc9bf22ce9f6c3cfcf110e4559ef0994a.zip
follow the corn style guide
Diffstat (limited to 'src/arch/amd64/pic.c')
-rw-r--r--src/arch/amd64/pic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/amd64/pic.c b/src/arch/amd64/pic.c
index 658911c..c25856b 100644
--- a/src/arch/amd64/pic.c
+++ b/src/arch/amd64/pic.c
@@ -53,7 +53,7 @@ void pic_remap(void) {
void pic_mask(int irq) {
uint16_t port;
uint8_t mask;
- if(irq < 8) {
+ if (irq < 8) {
port = PIC1_DATA;
} else {
port = PIC2_DATA;
@@ -66,7 +66,7 @@ void pic_mask(int irq) {
void pic_unmask(int irq) {
uint16_t port;
uint8_t mask;
- if(irq < 8) {
+ if (irq < 8) {
port = PIC1_DATA;
} else {
irq -= 8;
@@ -82,7 +82,7 @@ void pic_disable(void) {
}
void pic_eoi(int irq) {
- if(irq >= 8) {
+ if (irq >= 8) {
outb(PIC2_COMMAND, PIC_EOI);
}
outb(PIC1_COMMAND, PIC_EOI);