summaryrefslogtreecommitdiff
path: root/sys/arch/m68k
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-03-14 03:16:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-03-14 03:16:15 +0000
commite63dc855fe4ff1aa0029ebf9813134860a34ccdf (patch)
treec2aa960c67a99a878c8902943399029fa598683f /sys/arch/m68k
parent71eb96ce8a9190e7ffeccbabd7a5ec4f3b4fc72f (diff)
Final __P removal plus some cosmetic fixups
Diffstat (limited to 'sys/arch/m68k')
-rw-r--r--sys/arch/m68k/fpe/fpu_calcea.c4
-rw-r--r--sys/arch/m68k/fpe/fpu_emulate.c8
-rw-r--r--sys/arch/m68k/fpe/fpu_fscale.c4
-rw-r--r--sys/arch/m68k/m68k/db_memrw.c12
-rw-r--r--sys/arch/m68k/m68k/db_trace.c6
5 files changed, 17 insertions, 17 deletions
diff --git a/sys/arch/m68k/fpe/fpu_calcea.c b/sys/arch/m68k/fpe/fpu_calcea.c
index 25338b03856..c3b2044e779 100644
--- a/sys/arch/m68k/fpe/fpu_calcea.c
+++ b/sys/arch/m68k/fpe/fpu_calcea.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpu_calcea.c,v 1.7 2002/03/14 01:26:34 millert Exp $ */
+/* $OpenBSD: fpu_calcea.c,v 1.8 2002/03/14 03:15:54 millert Exp $ */
/* $NetBSD: fpu_calcea.c,v 1.7 1996/10/16 06:27:05 scottr Exp $ */
/*
@@ -478,7 +478,7 @@ fpu_store_ea(frame, insn, ea, src)
#endif
return SIGILL;
}
- dst = (char*)&frame->f_regs[ea->ea_regnum];
+ dst = (char *)&frame->f_regs[ea->ea_regnum];
/* The destination is an int. */
if (len < 4) {
dst += (4 - len);
diff --git a/sys/arch/m68k/fpe/fpu_emulate.c b/sys/arch/m68k/fpe/fpu_emulate.c
index 6f3502575fb..d17adad52d9 100644
--- a/sys/arch/m68k/fpe/fpu_emulate.c
+++ b/sys/arch/m68k/fpe/fpu_emulate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpu_emulate.c,v 1.9 2002/03/14 01:26:34 millert Exp $ */
+/* $OpenBSD: fpu_emulate.c,v 1.10 2002/03/14 03:15:54 millert Exp $ */
/* $NetBSD: fpu_emulate.c,v 1.14 1996/12/18 05:44:31 scottr Exp $ */
/*
@@ -512,14 +512,14 @@ fpu_emul_fmovm(fe, insn)
if (regmask & reglist) {
if (fpu_to_mem) {
sig = fpu_store_ea(frame, insn, &insn->is_ea0,
- (char*)&fpregs[regnum * 3]);
+ (char *)&fpregs[regnum * 3]);
if (fpu_debug_level & DL_RESULT)
printf(" fpu_emul_fmovm: FP%d (%08x,%08x,%08x) saved\n",
regnum, fpregs[regnum * 3], fpregs[regnum * 3 + 1],
fpregs[regnum * 3 + 2]);
} else { /* mem to fpu */
sig = fpu_load_ea(frame, insn, &insn->is_ea0,
- (char*)&fpregs[regnum * 3]);
+ (char *)&fpregs[regnum * 3]);
if (fpu_debug_level & DL_RESULT)
printf(" fpu_emul_fmovm: FP%d (%08x,%08x,%08x) loaded\n",
regnum, fpregs[regnum * 3], fpregs[regnum * 3 + 1],
@@ -696,7 +696,7 @@ fpu_emul_arith(fe, insn)
}
} /* if (fpu_debug_level & DL_ARITH) */
- fpu_load_ea(frame, insn, &insn->is_ea0, (char*)buf);
+ fpu_load_ea(frame, insn, &insn->is_ea0, (char *)buf);
if (format == FTYPE_WRD) {
/* sign-extend */
buf[0] &= 0xffff;
diff --git a/sys/arch/m68k/fpe/fpu_fscale.c b/sys/arch/m68k/fpe/fpu_fscale.c
index 8a87f181061..0e936ade6b8 100644
--- a/sys/arch/m68k/fpe/fpu_fscale.c
+++ b/sys/arch/m68k/fpe/fpu_fscale.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpu_fscale.c,v 1.4 1997/01/13 11:51:05 niklas Exp $ */
+/* $OpenBSD: fpu_fscale.c,v 1.5 2002/03/14 03:15:54 millert Exp $ */
/* $NetBSD: fpu_fscale.c,v 1.6 1996/10/13 03:19:14 christos Exp $ */
/*
@@ -145,7 +145,7 @@ fpu_emul_fscale(fe, insn)
printf("%c%d@\n", regname, insn->is_ea0.ea_regnum & 7);
}
}
- fpu_load_ea(frame, insn, &insn->is_ea0, (char*)buf);
+ fpu_load_ea(frame, insn, &insn->is_ea0, (char *)buf);
if (fpu_debug_level & DL_FSCALE) {
printf(" fpu_emul_fscale: src = %08x%08x%08x, siz = %d\n",
diff --git a/sys/arch/m68k/m68k/db_memrw.c b/sys/arch/m68k/m68k/db_memrw.c
index 2acefaf108d..95077c35f1b 100644
--- a/sys/arch/m68k/m68k/db_memrw.c
+++ b/sys/arch/m68k/m68k/db_memrw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_memrw.c,v 1.3 2001/11/06 19:53:14 miod Exp $ */
+/* $OpenBSD: db_memrw.c,v 1.4 2002/03/14 03:15:54 millert Exp $ */
/* $NetBSD: db_memrw.c,v 1.1 1996/02/22 23:23:35 gwr Exp $ */
/*
@@ -56,15 +56,15 @@ db_read_bytes(addr, size, data)
register size_t size;
register char *data;
{
- register char *src = (char*)addr;
+ register char *src = (char *)addr;
if (size == 4) {
- *((int*)data) = *((int*)src);
+ *((int *)data) = *((int *)src);
return;
}
if (size == 2) {
- *((short*)data) = *((short*)src);
+ *((short *)data) = *((short *)src);
return;
}
@@ -86,12 +86,12 @@ db_write_bytes(addr, size, data)
register char *dst = (char *)addr;
if (size == 4) {
- *((int*)dst) = *((int*)data);
+ *((int *)dst) = *((int *)data);
return;
}
if (size == 2) {
- *((short*)dst) = *((short*)data);
+ *((short *)dst) = *((short *)data);
return;
}
diff --git a/sys/arch/m68k/m68k/db_trace.c b/sys/arch/m68k/m68k/db_trace.c
index 288130d56d9..ef32a9471b3 100644
--- a/sys/arch/m68k/m68k/db_trace.c
+++ b/sys/arch/m68k/m68k/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.15 2002/03/14 01:26:35 millert Exp $ */
+/* $OpenBSD: db_trace.c,v 1.16 2002/03/14 03:15:54 millert Exp $ */
/* $NetBSD: db_trace.c,v 1.20 1997/02/05 05:10:25 scottr Exp $ */
/*
@@ -78,9 +78,9 @@ db_var_short(varp, valp, op)
int op;
{
if (op == DB_VAR_GET)
- *valp = (db_expr_t) *((short*)varp->valuep);
+ *valp = (db_expr_t) *((short *)varp->valuep);
else
- *((short*)varp->valuep) = (short) *valp;
+ *((short *)varp->valuep) = (short) *valp;
return(0);
}