diff options
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/pcb.h | 1 | ||||
-rw-r--r-- | i386/i386/trap.c | 2 | ||||
-rw-r--r-- | i386/i386/user_ldt.c | 2 | ||||
-rw-r--r-- | i386/i386at/autoconf.h | 1 | ||||
-rw-r--r-- | i386/i386at/com.c | 4 | ||||
-rw-r--r-- | i386/i386at/model_dep.c | 2 |
6 files changed, 7 insertions, 5 deletions
diff --git a/i386/i386/pcb.h b/i386/i386/pcb.h index dc9cbd7..f8671a2 100644 --- a/i386/i386/pcb.h +++ b/i386/i386/pcb.h @@ -27,6 +27,7 @@ #define _I386_PCB_H_ #include <sys/types.h> +#include <mach/exec/exec.h> extern void pcb_init (thread_t thread); diff --git a/i386/i386/trap.c b/i386/i386/trap.c index 41ce0cc..f14491a 100644 --- a/i386/i386/trap.c +++ b/i386/i386/trap.c @@ -369,7 +369,7 @@ dump_ss(regs); int user_trap(regs) register struct i386_saved_state *regs; { - int exc; + int exc = 0; /* Suppress gcc warning */ int code; int subcode; register int type; diff --git a/i386/i386/user_ldt.c b/i386/i386/user_ldt.c index e6bfc95..942ad07 100644 --- a/i386/i386/user_ldt.c +++ b/i386/i386/user_ldt.c @@ -111,7 +111,7 @@ i386_set_ldt(thread, first_selector, desc_list, count, desc_list_inline) pcb_t pcb; vm_size_t ldt_size_needed; int first_desc = sel_idx(first_selector); - vm_map_copy_t old_copy_object; + vm_map_copy_t old_copy_object = NULL; /* Suppress gcc warning */ if (thread == THREAD_NULL) return KERN_INVALID_ARGUMENT; diff --git a/i386/i386at/autoconf.h b/i386/i386at/autoconf.h index 4916d3e..a16a88f 100644 --- a/i386/i386at/autoconf.h +++ b/i386/i386at/autoconf.h @@ -26,6 +26,7 @@ #define _AUTOCONF_H_ #include <mach/std_types.h> +#include <chips/busses.h> /* * probeio: diff --git a/i386/i386at/com.c b/i386/i386at/com.c index 4ba625d..51f3ff1 100644 --- a/i386/i386at/com.c +++ b/i386/i386at/com.c @@ -529,7 +529,7 @@ int unit; ((tp->t_flags&(EVENP|ODDP)) == EVENP || (tp->t_flags&(EVENP|ODDP)) == ODDP)) { /* parity error */; - } else if (line&iOR && !comoverrun) { + } else if (line_stat&iOR && !comoverrun) { printf("com%d: overrun\n", unit); comoverrun = 1; } else if (line_stat & (iFE | iBRKINTR)) { @@ -751,7 +751,7 @@ commctl( spl_t s; int unit; vm_offset_t dev_addr; - register int b; + register int b = 0; /* Suppress gcc warning */ unit = minor(tp->t_dev); diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index d020c92..b208cb2 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -445,7 +445,7 @@ inittodr(void) new_time.seconds = 0; new_time.microseconds = 0; - (void) readtodc(&new_time.seconds); + (void) readtodc((u_int *)&new_time.seconds); { spl_t s = splhigh(); |