diff options
author | Anton Kling <anton@kling.gg> | 2024-02-21 00:14:29 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-02-21 00:14:29 +0100 |
commit | 8ff63b062d724826d8017504063df9b92f8e6703 (patch) | |
tree | 03bf0b5a278a4908da8912f956e5651bea9412f1 /kernel/drivers/rtl8139.c | |
parent | a85eacdd2406fede4d6ff5cb130b1758978cabb3 (diff) |
New clang-format options
Diffstat (limited to 'kernel/drivers/rtl8139.c')
-rw-r--r-- | kernel/drivers/rtl8139.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/drivers/rtl8139.c b/kernel/drivers/rtl8139.c index 34d9b85..b22bb8a 100644 --- a/kernel/drivers/rtl8139.c +++ b/kernel/drivers/rtl8139.c @@ -146,8 +146,9 @@ void get_mac_address(u8 mac[6]) { u8 rtl8139_get_transmit_status(u32 base_address) { u32 status_register = inl(base_address + 0x3E); - if ((status_register >> 3) & 0x1) + if ((status_register >> 3) & 0x1) { kprintf("transmit error :(\n"); + } u8 status = (status_register >> 2) & 0x1; outl(base_address + 0x3E, 0x5); return status; @@ -200,6 +201,7 @@ void rtl8139_init(void) { // ksbrk() seems to have the magical ability of disabling interrupts? // I have no fucking clue why that happens and it was a pain to debug. - for (int i = 0; i < 4; i++) + for (int i = 0; i < 4; i++) { send_buffers[i] = ksbrk(0x1000); + } } |