diff options
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/trap.c | 2 | ||||
-rw-r--r-- | i386/i386at/rtc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/trap.c b/i386/i386/trap.c index dd6c23c..9c96758 100644 --- a/i386/i386/trap.c +++ b/i386/i386/trap.c @@ -245,7 +245,7 @@ dump_ss(regs); assert(thread); map = thread->task->map; if (map == kernel_map) { - printf("kernel page fault at %08x:\n"); + printf("kernel page fault at %08x:\n", subcode); dump_ss(regs); panic("kernel thread accessed user space!\n"); } 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); |