Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 ANSIfy.
details: https://anonhg.NetBSD.org/src/rev/20a17b8a14ee
branches: trunk
changeset: 559658:20a17b8a14ee
user: junyoung <junyoung%NetBSD.org@localhost>
date: Sun Mar 21 15:37:02 2004 +0000
description:
ANSIfy.
diffstat:
sys/arch/i386/i386/machdep.c | 81 ++++++++++++-------------------------------
1 files changed, 23 insertions(+), 58 deletions(-)
diffs (228 lines):
diff -r f169be0897c0 -r 20a17b8a14ee sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c Sun Mar 21 15:12:35 2004 +0000
+++ b/sys/arch/i386/i386/machdep.c Sun Mar 21 15:37:02 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.550 2004/03/05 11:34:17 junyoung Exp $ */
+/* $NetBSD: machdep.c,v 1.551 2004/03/21 15:37:02 junyoung Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.550 2004/03/05 11:34:17 junyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.551 2004/03/21 15:37:02 junyoung Exp $");
#include "opt_beep.h"
#include "opt_compat_ibcs2.h"
@@ -219,7 +219,7 @@
#endif
#ifdef COMPAT_NOMID
-static int exec_nomid (struct proc *, struct exec_package *);
+static int exec_nomid(struct proc *, struct exec_package *);
#endif
int physmem;
@@ -376,8 +376,7 @@
*/
void
-i386_init_pcb_tss_ldt(ci)
- struct cpu_info *ci;
+i386_init_pcb_tss_ldt(struct cpu_info *ci)
{
int x;
struct pcb *pcb = ci->ci_idle_pcb;
@@ -701,9 +700,7 @@
struct pcb dumppcb;
void
-cpu_reboot(howto, bootstr)
- int howto;
- char *bootstr;
+cpu_reboot(int howto, char *bootstr)
{
if (cold) {
@@ -935,8 +932,7 @@
static vaddr_t dumpspace;
vaddr_t
-reserve_dumppages(p)
- vaddr_t p;
+reserve_dumppages(vaddr_t p)
{
dumpspace = p;
@@ -1070,10 +1066,7 @@
* Clear registers on exec
*/
void
-setregs(l, pack, stack)
- struct lwp *l;
- struct exec_package *pack;
- u_long stack;
+setregs(struct lwp *l, struct exec_package *pack, u_long stack)
{
struct pmap *pmap = vm_map_pmap(&l->l_proc->p_vmspace->vm_map);
struct pcb *pcb = &l->l_addr->u_pcb;
@@ -1130,10 +1123,8 @@
extern struct user *proc0paddr;
void
-setgate(gd, func, args, type, dpl, sel)
- struct gate_descriptor *gd;
- void *func;
- int args, type, dpl, sel;
+setgate(struct gate_descriptor *gd, void *func, int args, int type, int dpl,
+ int sel)
{
gd->gd_looffset = (int)func;
@@ -1147,8 +1138,7 @@
}
void
-unsetgate(gd)
- struct gate_descriptor *gd;
+unsetgate(struct gate_descriptor *gd)
{
gd->gd_p = 0;
gd->gd_hioffset = 0;
@@ -1162,10 +1152,7 @@
void
-setregion(rd, base, limit)
- struct region_descriptor *rd;
- void *base;
- size_t limit;
+setregion(struct region_descriptor *rd, void *base, size_t limit)
{
rd->rd_limit = (int)limit;
@@ -1173,11 +1160,8 @@
}
void
-setsegment(sd, base, limit, type, dpl, def32, gran)
- struct segment_descriptor *sd;
- void *base;
- size_t limit;
- int type, dpl, def32, gran;
+setsegment(struct segment_descriptor *sd, void *base, size_t limit, int type,
+ int dpl, int def32, int gran)
{
sd->sd_lolimit = (int)limit;
@@ -1219,9 +1203,7 @@
#if !defined(REALBASEMEM) && !defined(REALEXTMEM)
void
-add_mem_cluster(seg_start, seg_end, type)
- u_int64_t seg_start, seg_end;
- u_int32_t type;
+add_mem_cluster(u_int64_t seg_start, u_int64_t seg_end, u_int32_t type)
{
extern struct extent *iomem_ex;
int i;
@@ -1335,8 +1317,7 @@
}
void
-init386(first_avail)
- paddr_t first_avail;
+init386(paddr_t first_avail)
{
union descriptor *tgdt;
extern void consinit(void);
@@ -1931,9 +1912,7 @@
#ifdef COMPAT_NOMID
static int
-exec_nomid(p, epp)
- struct proc *p;
- struct exec_package *epp;
+exec_nomid(struct proc *p, struct exec_package *epp)
{
int error;
u_long midmag, magic;
@@ -2006,9 +1985,7 @@
* if COMPAT_NOMID is given as a kernel option.
*/
int
-cpu_exec_aout_makecmds(p, epp)
- struct proc *p;
- struct exec_package *epp;
+cpu_exec_aout_makecmds(struct proc *p, struct exec_package *epp)
{
int error = ENOEXEC;
@@ -2021,8 +1998,7 @@
}
void *
-lookup_bootinfo(type)
-int type;
+lookup_bootinfo(int type)
{
struct btinfo_common *help;
int n = *(int*)bootinfo;
@@ -2081,10 +2057,7 @@
}
void
-cpu_getmcontext(l, mcp, flags)
- struct lwp *l;
- mcontext_t *mcp;
- unsigned int *flags;
+cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flags)
{
const struct trapframe *tf = l->l_md.md_regs;
__greg_t *gr = mcp->__gregs;
@@ -2160,10 +2133,7 @@
}
int
-cpu_setmcontext(l, mcp, flags)
- struct lwp *l;
- const mcontext_t *mcp;
- unsigned int flags;
+cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, unsigned int flags)
{
struct trapframe *tf = l->l_md.md_regs;
__greg_t *gr = mcp->__gregs;
@@ -2293,9 +2263,7 @@
*/
int
-idt_vec_alloc(low, high)
- int low;
- int high;
+idt_vec_alloc(int low, int high)
{
int vec;
@@ -2312,9 +2280,7 @@
}
void
-idt_vec_set(vec, function)
- int vec;
- void (*function)(void);
+idt_vec_set(int vec, void (*function)(void))
{
/*
* Vector should be allocated, so no locking needed.
@@ -2325,8 +2291,7 @@
}
void
-idt_vec_free(vec)
- int vec;
+idt_vec_free(int vec)
{
simple_lock(&idt_lock);
unsetgate(&idt[vec]);
Home |
Main Index |
Thread Index |
Old Index