summaryrefslogtreecommitdiff
path: root/i386/i386at
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-07-20 17:40:19 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:18 +0200
commitca9d48e5538e0e0088a6d865091d3b9992d7378c (patch)
tree6bf763e6ee6d24c78e0454f2a5126658d6064242 /i386/i386at
parentcdab6fb231fd19ef1ae22db7c1cc98b8f7fbf98c (diff)
2008-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
* device/net_io.c (net_set_filter): Reference the proper member instead of casting pointers. * device/subrs.c (ether_sprintf): Set type of `i' to `int'. * i386/i386/trap.c (kernel_trap): Pass page fault address to printf. * i386/i386at/rtc.c (rtcget): Fix parenthesis to really test the bit.
Diffstat (limited to 'i386/i386at')
-rw-r--r--i386/i386at/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386at/rtc.c b/i386/i386at/rtc.c
index a66c5a8..e0a03de 100644
--- a/i386/i386at/rtc.c
+++ b/i386/i386at/rtc.c
@@ -75,7 +75,7 @@ unsigned char *regs;
first_rtcopen_ever = 0;
}
outb(RTC_ADDR, RTC_D);
- if (inb(RTC_DATA) & RTC_VRT == 0) return(-1);
+ if ((inb(RTC_DATA) & RTC_VRT) == 0) return(-1);
outb(RTC_ADDR, RTC_A);
while (inb(RTC_DATA) & RTC_UIP) /* busy wait */
outb(RTC_ADDR, RTC_A);