diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-27 16:11:54 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-27 16:11:54 -0400 |
commit | 91fb39db553dea9d07bb124f38c83460abc48d21 (patch) | |
tree | 05b672e0a584d55ae78999b874f89e579d0d9657 /kernel | |
parent | fix FIXMEs in syscall.c (diff) | |
download | comus-91fb39db553dea9d07bb124f38c83460abc48d21.tar.gz comus-91fb39db553dea9d07bb124f38c83460abc48d21.tar.bz2 comus-91fb39db553dea9d07bb124f38c83460abc48d21.zip |
fmt
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/drivers/ata.c | 3 | ||||
-rw-r--r-- | kernel/include/comus/asm.h | 5 | ||||
-rw-r--r-- | kernel/syscall.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/kernel/drivers/ata.c b/kernel/drivers/ata.c index 022ec81..6c8de86 100644 --- a/kernel/drivers/ata.c +++ b/kernel/drivers/ata.c @@ -569,8 +569,7 @@ static enum ide_error ide_device_ata_access(struct ide_device *dev, ide_channel_write(chan, ATA_REG_HDDEVSEL, 0xE0 | (dev->drive_idx << 4) | head); } else { - ide_channel_write(chan, ATA_REG_HDDEVSEL, - 0x40 | (dev->drive_idx << 4)); + ide_channel_write(chan, ATA_REG_HDDEVSEL, 0x40 | (dev->drive_idx << 4)); } // write Parameters diff --git a/kernel/include/comus/asm.h b/kernel/include/comus/asm.h index a6a8a45..4f376b1 100644 --- a/kernel/include/comus/asm.h +++ b/kernel/include/comus/asm.h @@ -36,7 +36,10 @@ static inline uint16_t inw(uint16_t port) static inline void rep_inw(uint16_t port, uint16_t *buffer, size_t count) { - __asm__ volatile("rep insw" : "+D"(buffer), "+c"(count) : "d"(port) : "memory"); + __asm__ volatile("rep insw" + : "+D"(buffer), "+c"(count) + : "d"(port) + : "memory"); } static inline void outw(uint16_t port, uint16_t val) diff --git a/kernel/syscall.c b/kernel/syscall.c index 7a57353..11db5e5 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -13,8 +13,7 @@ #define ARG3(type, name) type name = (type)(current_pcb->regs->rdx) #define ARG4(type, name) type name = (type)(current_pcb->regs->rcx) -__attribute__((noreturn)) -static int sys_exit(void) +__attribute__((noreturn)) static int sys_exit(void) { ARG1(int, status); @@ -57,8 +56,7 @@ static int sys_write(void) return nbytes; } -__attribute__((noreturn)) -static int sys_poweroff(void) +__attribute__((noreturn)) static int sys_poweroff(void) { // TODO: we should probably // kill all user processes |