diff options
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/debug_i386.c | 5 | ||||
-rw-r--r-- | i386/i386/fpu.c | 18 | ||||
-rw-r--r-- | i386/i386/gdt.c | 2 | ||||
-rw-r--r-- | i386/i386/idt.c | 2 | ||||
-rw-r--r-- | i386/i386/ktss.c | 2 | ||||
-rw-r--r-- | i386/i386/ldt.c | 2 | ||||
-rw-r--r-- | i386/i386/pcb.c | 2 | ||||
-rw-r--r-- | i386/i386/pic.c | 4 | ||||
-rw-r--r-- | i386/i386/pit.c | 2 | ||||
-rw-r--r-- | i386/i386/trap.c | 4 | ||||
-rw-r--r-- | i386/i386at/int_init.c | 2 | ||||
-rw-r--r-- | i386/i386at/kd.c | 62 | ||||
-rw-r--r-- | i386/i386at/kd_event.c | 6 | ||||
-rw-r--r-- | i386/i386at/model_dep.c | 2 | ||||
-rw-r--r-- | i386/i386at/rtc.c | 4 | ||||
-rw-r--r-- | i386/intel/pmap.c | 10 |
16 files changed, 64 insertions, 65 deletions
diff --git a/i386/i386/debug_i386.c b/i386/i386/debug_i386.c index 937d7b4..01f26a0 100644 --- a/i386/i386/debug_i386.c +++ b/i386/i386/debug_i386.c @@ -59,9 +59,8 @@ struct debug_trace_entry struct debug_trace_entry debug_trace_buf[DEBUG_TRACE_LEN]; int debug_trace_pos; - void -debug_trace_reset() +debug_trace_reset(void) { int s = splhigh(); debug_trace_pos = 0; @@ -89,7 +88,7 @@ print_entry(int i, int *col) } void -debug_trace_dump() +debug_trace_dump(void) { int s = splhigh(); int i; diff --git a/i386/i386/fpu.c b/i386/i386/fpu.c index 4e3ab57..b1aed91 100644 --- a/i386/i386/fpu.c +++ b/i386/i386/fpu.c @@ -101,7 +101,7 @@ volatile thread_t fp_intr_thread = THREAD_NULL; * Called on each CPU. */ void -init_fpu() +init_fpu(void) { unsigned short status, control; @@ -185,7 +185,7 @@ init_fpu() * Initialize FP handling. */ void -fpu_module_init() +fpu_module_init(void) { kmem_cache_init(&ifps_cache, "i386_fpsave_state", sizeof(struct i386_fpsave_state), 16, @@ -495,7 +495,7 @@ ASSERT_IPL(SPL0); * * Use 53-bit precision. */ -void fpinit() +void fpinit(void) { unsigned short control; @@ -519,7 +519,7 @@ ASSERT_IPL(SPL0); * Coprocessor not present. */ void -fpnoextflt() +fpnoextflt(void) { /* * Enable FPU use. @@ -563,7 +563,7 @@ ASSERT_IPL(SPL0); * Re-initialize FPU. Floating point state is not valid. */ void -fpextovrflt() +fpextovrflt(void) { thread_t thread = current_thread(); pcb_t pcb; @@ -612,7 +612,7 @@ fpextovrflt() } static int -fphandleerr() +fphandleerr(void) { thread_t thread = current_thread(); @@ -659,7 +659,7 @@ fphandleerr() * FPU error. Called by exception handler. */ void -fpexterrflt() +fpexterrflt(void) { thread_t thread = current_thread(); @@ -684,7 +684,7 @@ fpexterrflt() * FPU error. Called by AST. */ void -fpastintr() +fpastintr(void) { thread_t thread = current_thread(); @@ -824,7 +824,7 @@ ASSERT_IPL(SPL0); * Locking not needed; always called on the current thread. */ void -fp_state_alloc() +fp_state_alloc(void) { pcb_t pcb = current_thread()->pcb; struct i386_fpsave_state *ifps; diff --git a/i386/i386/gdt.c b/i386/i386/gdt.c index 5523fea..c895eb3 100644 --- a/i386/i386/gdt.c +++ b/i386/i386/gdt.c @@ -46,7 +46,7 @@ extern struct real_descriptor gdt[GDTSZ]; void -gdt_init() +gdt_init(void) { /* Initialize the kernel code and data segment descriptors. */ fill_gdt_descriptor(KERNEL_CS, diff --git a/i386/i386/idt.c b/i386/i386/idt.c index 882764f..d304ec3 100644 --- a/i386/i386/idt.c +++ b/i386/i386/idt.c @@ -36,7 +36,7 @@ struct idt_init_entry }; extern struct idt_init_entry idt_inittab[]; -void idt_init() +void idt_init(void) { #ifdef MACH_PV_DESCRIPTORS if (hyp_set_trap_table(kvtolin(idt_inittab))) diff --git a/i386/i386/ktss.c b/i386/i386/ktss.c index 1b2938a..21d0030 100644 --- a/i386/i386/ktss.c +++ b/i386/i386/ktss.c @@ -40,7 +40,7 @@ struct task_tss ktss; void -ktss_init() +ktss_init(void) { /* XXX temporary exception stack */ static int exception_stack[1024]; diff --git a/i386/i386/ldt.c b/i386/i386/ldt.c index 43b9efb..a5e89f2 100644 --- a/i386/i386/ldt.c +++ b/i386/i386/ldt.c @@ -46,7 +46,7 @@ extern struct real_descriptor ldt[LDTSZ]; void -ldt_init() +ldt_init(void) { #ifdef MACH_PV_DESCRIPTORS #ifdef MACH_PV_PAGETABLES diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c index 3827f5e..82b2faf 100644 --- a/i386/i386/pcb.c +++ b/i386/i386/pcb.c @@ -365,7 +365,7 @@ thread_t switch_context(old, continuation, new) return Switch_context(old, continuation, new); } -void pcb_module_init() +void pcb_module_init(void) { kmem_cache_init(&pcb_cache, "pcb", sizeof(struct pcb), 0, NULL, NULL, NULL, 0); diff --git a/i386/i386/pic.c b/i386/i386/pic.c index 75cb835..9c51497 100644 --- a/i386/i386/pic.c +++ b/i386/i386/pic.c @@ -102,7 +102,7 @@ u_short PICM_ICW4, PICS_ICW4 ; */ void -picinit() +picinit(void) { asm("cli"); @@ -220,7 +220,7 @@ picinit() #define SLAVEACTV 0xFF00 void -form_pic_mask() +form_pic_mask(void) { unsigned int i, j, bit, mask; diff --git a/i386/i386/pit.c b/i386/i386/pit.c index 85929e9..da68330 100644 --- a/i386/i386/pit.c +++ b/i386/i386/pit.c @@ -65,7 +65,7 @@ int pit0_mode = PIT_C0|PIT_SQUAREMODE|PIT_READMODE ; unsigned int clknumb = CLKNUM; /* interrupt interval for timer 0 */ void -clkstart() +clkstart(void) { unsigned char byte; unsigned long s; diff --git a/i386/i386/trap.c b/i386/i386/trap.c index b891527..9796940 100644 --- a/i386/i386/trap.c +++ b/i386/i386/trap.c @@ -70,7 +70,7 @@ extern struct db_watchpoint *db_watchpoint_list; extern boolean_t db_watchpoints_inserted; void -thread_kdb_return() +thread_kdb_return(void) { thread_t thread = current_thread(); struct i386_saved_state *regs = USER_REGS(thread); @@ -563,7 +563,7 @@ printf("user trap %d error %d sub %08x\n", type, code, subcode); * AT-bus machines. */ void -i386_astintr() +i386_astintr(void) { int mycpu = cpu_number(); diff --git a/i386/i386at/int_init.c b/i386/i386at/int_init.c index 0f00b86..43daad8 100644 --- a/i386/i386at/int_init.c +++ b/i386/i386at/int_init.c @@ -27,7 +27,7 @@ /* defined in locore.S */ extern vm_offset_t int_entry_table[]; -void int_init() +void int_init(void) { int i; diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c index 2404eaf..a326626 100644 --- a/i386/i386at/kd.c +++ b/i386/i386at/kd.c @@ -108,7 +108,7 @@ struct tty kd_tty; extern boolean_t rebootflag; static void charput(), charmvup(), charmvdown(), charclear(), charsetcursor(); -static void kd_noopreset(); +static void kd_noopreset(void); /* * These routines define the interface to the device-specific layer. @@ -358,7 +358,7 @@ int kd_pollc = 0; * Warning: uses outb(). You may prefer to use kd_debug_put. */ void -feep() +feep(void) { int i; @@ -369,7 +369,7 @@ feep() } void -pause() +pause(void) { int i; @@ -862,7 +862,7 @@ int vec; * drop the ack on the floor. */ void -kd_handle_ack() +kd_handle_ack(void) { switch (kd_ack) { case SET_LEDS: @@ -887,7 +887,7 @@ kd_handle_ack() * Resend a missed keyboard command or data byte. */ void -kd_resend() +kd_resend(void) { if (kd_ack == NOT_WAITING) printf("unexpected RESEND from keyboard\n"); @@ -1147,7 +1147,7 @@ kdstop(tp, flags) * */ void -kdinit() +kdinit(void) { unsigned char k_comm; /* keyboard command byte */ @@ -1235,7 +1235,7 @@ kd_belloff(void * param) * */ void -kd_bellon() +kd_bellon(void) { unsigned char status; @@ -1346,7 +1346,7 @@ csrpos_t newpos; * */ void -kd_scrollup() +kd_scrollup(void) { csrpos_t to; csrpos_t from; @@ -1376,7 +1376,7 @@ kd_scrollup() * */ void -kd_scrolldn() +kd_scrolldn(void) { csrpos_t to; csrpos_t from; @@ -1410,7 +1410,7 @@ kd_scrolldn() * */ void -kd_parseesc() +kd_parseesc(void) { u_char *escp; @@ -1747,7 +1747,7 @@ u_char *cp; } void -kd_tab() +kd_tab(void) { int i; @@ -1768,7 +1768,7 @@ kd_tab() * */ void -kd_cls() +kd_cls(void) { (*kd_dclear)(0, ONE_PAGE/ONE_SPACE, kd_attr); return; @@ -1786,7 +1786,7 @@ kd_cls() * */ void -kd_home() +kd_home(void) { kd_setpos(0); return; @@ -1803,7 +1803,7 @@ kd_home() * */ void -kd_up() +kd_up(void) { if (kd_curpos < ONE_LINE) kd_scrolldn(); @@ -1823,7 +1823,7 @@ kd_up() * */ void -kd_down() +kd_down(void) { if (kd_curpos >= (ONE_PAGE - ONE_LINE)) kd_scrollup(); @@ -1843,7 +1843,7 @@ kd_down() * */ void -kd_right() +kd_right(void) { if (kd_curpos < (ONE_PAGE - ONE_SPACE)) kd_setpos(kd_curpos + ONE_SPACE); @@ -1865,7 +1865,7 @@ kd_right() * */ void -kd_left() +kd_left(void) { if (0 < kd_curpos) kd_setpos(kd_curpos - ONE_SPACE); @@ -1884,7 +1884,7 @@ kd_left() * */ void -kd_cr() +kd_cr(void) { kd_setpos(BEG_OF_LINE(kd_curpos)); return; @@ -1902,7 +1902,7 @@ kd_cr() * */ void -kd_cltobcur() +kd_cltobcur(void) { csrpos_t start; int count; @@ -1925,7 +1925,7 @@ kd_cltobcur() * */ void -kd_cltopcur() +kd_cltopcur(void) { int count; @@ -1945,7 +1945,7 @@ kd_cltopcur() * */ void -kd_cltoecur() +kd_cltoecur(void) { csrpos_t i; csrpos_t hold; @@ -1968,7 +1968,7 @@ kd_cltoecur() * */ void -kd_clfrbcur() +kd_clfrbcur(void) { csrpos_t i; @@ -2136,7 +2136,7 @@ int number; * */ void -kd_eraseln() +kd_eraseln(void) { csrpos_t i; csrpos_t stop; @@ -2264,14 +2264,14 @@ unsigned char ch; * read. */ unsigned char -kd_getdata() +kd_getdata(void) { while ((inb(K_STATUS) & K_OBUF_FUL) == 0); return(inb(K_RDWR)); } unsigned char -kd_cmdreg_read() +kd_cmdreg_read(void) { int ch=KC_CMD_READ; @@ -2295,7 +2295,7 @@ int ch=KC_CMD_WRITE; } void -kd_mouse_drain() +kd_mouse_drain(void) { int i; while(inb(K_STATUS) & K_IBUF_FUL); @@ -2357,7 +2357,7 @@ u_char val; } void -kd_setleds2() +kd_setleds2(void) { kd_senddata(kd_nextled); } @@ -2381,7 +2381,7 @@ u_char val; } void -kdreboot() +kdreboot(void) { (*kd_dreset)(); @@ -2494,7 +2494,7 @@ int new_button = 0; * Initialization specific to character-based graphics adapters. */ void -kd_xga_init() +kd_xga_init(void) { csrpos_t xga_getpos(); unsigned char screen; @@ -2567,7 +2567,7 @@ kd_xga_init() * */ csrpos_t -xga_getpos() +xga_getpos(void) { unsigned char low; @@ -2670,7 +2670,7 @@ char chattr; * No-op reset routine for kd_dreset. */ static void -kd_noopreset() +kd_noopreset(void) { } diff --git a/i386/i386at/kd_event.c b/i386/i386at/kd_event.c index 4e7b00a..ac87b20 100644 --- a/i386/i386at/kd_event.c +++ b/i386/i386at/kd_event.c @@ -91,7 +91,7 @@ static boolean_t initialized = FALSE; */ void -kbdinit() +kbdinit(void) { spl_t s = SPLKD(); @@ -343,7 +343,7 @@ u_int *p; } void -X_kdb_enter() +X_kdb_enter(void) { u_int *u_ip, *endp; @@ -354,7 +354,7 @@ X_kdb_enter() } void -X_kdb_exit() +X_kdb_exit(void) { u_int *u_ip, *endp; diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index 5015d41..10c0c41 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -196,7 +196,7 @@ void machine_idle (int cpu) #endif /* MACH_HYP */ } -void machine_relax () +void machine_relax (void) { asm volatile ("rep; nop" : : : "memory"); } diff --git a/i386/i386at/rtc.c b/i386/i386at/rtc.c index 98f157f..ff4309b 100644 --- a/i386/i386at/rtc.c +++ b/i386/i386at/rtc.c @@ -56,7 +56,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. static boolean_t first_rtcopen_ever = TRUE; void -rtcinit() +rtcinit(void) { outb(RTC_ADDR, RTC_A); outb(RTC_DATA, RTC_DIV2 | RTC_RATE6); @@ -171,7 +171,7 @@ readtodc(tp) } int -writetodc() +writetodc(void) { struct rtc_st rtclk; time_t n; diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c index ff6a327..06c4daa 100644 --- a/i386/intel/pmap.c +++ b/i386/intel/pmap.c @@ -573,7 +573,7 @@ vm_offset_t pmap_map_bd(virt, start, end, prot) * and direct-map all physical memory. * Called with mapping off. */ -void pmap_bootstrap() +void pmap_bootstrap(void) { /* * Mapping is turned off; we must reference only physical addresses. @@ -897,7 +897,7 @@ void pmap_virtual_space(startp, endp) * Called by vm_init, to initialize any structures that the pmap * system needs to map virtual memory. */ -void pmap_init() +void pmap_init(void) { long npages; vm_offset_t addr; @@ -996,7 +996,7 @@ boolean_t pmap_verify_free(phys) * since these must be unlocked to use vm_page_grab. */ vm_offset_t -pmap_page_table_page_alloc() +pmap_page_table_page_alloc(void) { vm_page_t m; vm_offset_t pa; @@ -2790,7 +2790,7 @@ void pmap_update_interrupt(void) /* * Dummy routine to satisfy external reference. */ -void pmap_update_interrupt() +void pmap_update_interrupt(void) { /* should never be called. */ } @@ -2799,7 +2799,7 @@ void pmap_update_interrupt() #if defined(__i386__) /* Unmap page 0 to trap NULL references. */ void -pmap_unmap_page_zero () +pmap_unmap_page_zero (void) { int *pte; |