diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-11-29 22:54:20 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-15 19:19:23 +0100 |
commit | be78a5c7937a31128a3624dcace9df23492866f9 (patch) | |
tree | 18fe5f79b66f47aef9658d788fea84ef425d8127 /i386/i386 | |
parent | 6ff7e82fab67f23f0aa4caa18b886ce03c060f4d (diff) |
Declare void argument lists
Diffstat (limited to 'i386/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 |
10 files changed, 21 insertions, 22 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(); |