-/* $OpenBSD: machdep.c,v 1.61 2014/03/13 03:52:55 dlg Exp $ */
+/* $OpenBSD: machdep.c,v 1.62 2014/05/08 22:17:33 miod Exp $ */
/*
* Copyright (c) 2007 Miodrag Vallat.
*
* Good {morning,afternoon,evening,night}.
*/
printf(version);
- printf("real mem = %u (%uMB)\n", ptoa(physmem),
+ printf("real mem = %lu (%luMB)\n", ptoa(physmem),
ptoa(physmem)/1024/1024);
/*
ncpusfound = 1;
return;
default:
- printf("CPU%d failed to start, error %d\n",
+ printf("CPU%ld failed to start, error %d\n",
cpu, rc);
/* FALLTHROUGH */
case JPSTART_NO_JP:
-# $OpenBSD: Makefile.aviion,v 1.44 2013/11/02 23:42:12 miod Exp $
+# $OpenBSD: Makefile.aviion,v 1.45 2014/05/08 22:17:33 miod Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
INCLUDES= -nostdinc -I$S -I. -I$S/arch
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
- -Wno-main -Wno-uninitialized -Wno-format \
+ -Wno-main -Wno-uninitialized \
-Wstack-larger-than-2047
CMACHFLAGS= -mno-check-zero-division -mmemcpy
-/* $OpenBSD: mainbus.c,v 1.7 2011/10/09 17:01:34 miod Exp $ */
+/* $OpenBSD: mainbus.c,v 1.8 2014/05/08 22:17:33 miod Exp $ */
/*
* Copyright (c) 1998 Steve Murphree, Jr.
* Copyright (c) 2004, Miodrag Vallat.
struct confargs *ca = args;
if (ca->ca_paddr != (paddr_t)-1)
- printf(" addr 0x%08x", ca->ca_paddr);
+ printf(" addr 0x%08lx", ca->ca_paddr);
return (UNCONF);
}
-/* $OpenBSD: nvram.c,v 1.8 2013/07/02 04:39:04 guenther Exp $ */
+/* $OpenBSD: nvram.c,v 1.9 2014/05/08 22:17:33 miod Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
sc->sc_ioh = ioh;
- printf(": MK48T0%d\n", sc->sc_len / 1024);
+ printf(": MK48T0%ld\n", sc->sc_len / 1024);
}
#define LEAPYEAR(y) (((y) & 3) == 0)
deltat = -deltat;
if (waszero || deltat < 2 * SECDAY)
goto done;
- printf("WARNING: clock %s %d days",
+ printf("WARNING: clock %s %ld days",
ts.tv_sec < base ? "lost" : "gained", deltat / SECDAY);
}
printf(" -- CHECK AND RESET THE DATE!\n");
-/* $OpenBSD: syscon.c,v 1.8 2013/09/26 19:02:06 miod Exp $ */
+/* $OpenBSD: syscon.c,v 1.9 2014/05/08 22:17:33 miod Exp $ */
/*
* Copyright (c) 2007 Miodrag Vallat.
*
struct confargs *ca = args;
if (ca->ca_offset != (paddr_t)-1)
- printf(" offset 0x%x", ca->ca_offset);
+ printf(" offset 0x%lx", ca->ca_offset);
return (UNCONF);
}
-/* $OpenBSD: vme.c,v 1.12 2011/04/07 15:30:15 miod Exp $ */
+/* $OpenBSD: vme.c,v 1.13 2014/05/08 22:17:33 miod Exp $ */
/*
* Copyright (c) 2006, 2007, 2010 Miodrag Vallat.
*
out2:
extent_destroy(sc->sc_ext_a16);
out1:
- printf(": can't allocate memory\n", self->dv_xname);
+ printf(": can't allocate memory\n");
}
int
}
if (r->vr_width == 0) {
#ifdef DIAGNOSTIC
- printf("%s: non-sensical A%d mapping at va %p pa %p\n",
+ printf("%s: nonsensical A%d mapping at va 0x%08lx pa 0x%08lx\n",
__func__, AWIDTH(awidth), vaddr, paddr);
#endif
return;
-# $OpenBSD: Makefile.luna88k,v 1.52 2013/11/02 23:42:12 miod Exp $
+# $OpenBSD: Makefile.luna88k,v 1.53 2014/05/08 22:17:33 miod Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
INCLUDES= -nostdinc -I$S -I. -I$S/arch
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
- -Wno-main -Wno-uninitialized -Wno-format \
+ -Wno-main -Wno-uninitialized \
-Wstack-larger-than-2047
CMACHFLAGS= -mno-check-zero-division -mmemcpy
-/* $OpenBSD: mb89352.c,v 1.17 2011/05/30 20:01:29 miod Exp $ */
+/* $OpenBSD: mb89352.c,v 1.18 2014/05/08 22:17:33 miod Exp $ */
/* $NetBSD: mb89352.c,v 1.5 2000/03/23 07:01:31 thorpej Exp $ */
/* NecBSD: mb89352.c,v 1.4 1998/03/14 07:31:20 kmatsuda Exp */
case MSG_CMDCOMPLETE:
if (sc->sc_dleft < 0) {
sc_link = acb->xs->sc_link;
- printf("%s: %d extra bytes from %d:%d\n",
+ printf("%s: %ld extra bytes from %d:%d\n",
sc->sc_dev.dv_xname, -sc->sc_dleft,
sc_link->target, sc_link->lun);
acb->data_length = 0;
-/* $OpenBSD: mb89352var.h,v 1.4 2011/05/30 20:01:29 miod Exp $ */
+/* $OpenBSD: mb89352var.h,v 1.5 2014/05/08 22:17:33 miod Exp $ */
/* $NetBSD: mb89352var.h,v 1.6 2003/08/02 12:48:09 tsutsui Exp $ */
/* NecBSD: mb89352var.h,v 1.4 1998/03/14 07:31:22 kmatsuda Exp */
/* Data about the current nexus (updated for every cmd switch) */
u_char *sc_dp; /* Current data pointer */
- size_t sc_dleft; /* Data bytes left to transfer */
+ ssize_t sc_dleft; /* Data bytes left to transfer */
u_char *sc_cp; /* Current command pointer */
size_t sc_cleft; /* Command bytes left to transfer */
-/* $OpenBSD: machdep.c,v 1.97 2014/04/22 22:58:02 aoyama Exp $ */
+/* $OpenBSD: machdep.c,v 1.98 2014/05/08 22:17:33 miod Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
*/
printf(version);
identifycpu();
- printf("real mem = %u (%uMB)\n", ptoa(physmem),
+ printf("real mem = %lu (%luMB)\n", ptoa(physmem),
ptoa(physmem) / 1024 / 1024);
/*
-/* $OpenBSD: db_interface.c,v 1.18 2011/10/25 18:38:06 miod Exp $ */
+/* $OpenBSD: db_interface.c,v 1.19 2014/05/08 22:17:33 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
#define R(i) s->tf_r[i]
#define IPMASK(x) ((x) & ~(3))
- db_printf("R00-05: 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ db_printf("R00-05: 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx\n",
R(0), R(1), R(2), R(3), R(4), R(5));
- db_printf("R06-11: 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ db_printf("R06-11: 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx\n",
R(6), R(7), R(8), R(9), R(10), R(11));
- db_printf("R12-17: 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ db_printf("R12-17: 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx\n",
R(12), R(13), R(14), R(15), R(16), R(17));
- db_printf("R18-23: 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ db_printf("R18-23: 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx\n",
R(18), R(19), R(20), R(21), R(22), R(23));
- db_printf("R24-29: 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ db_printf("R24-29: 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx\n",
R(24), R(25), R(26), R(27), R(28), R(29));
- db_printf("R30-31: 0x%08x 0x%08x\n", R(30), R(31));
+ db_printf("R30-31: 0x%08lx 0x%08lx\n", R(30), R(31));
- db_printf("%cxip: 0x%08x ",
+ db_printf("%cxip: 0x%08lx ",
CPU_IS88110 ? 'e' : 's', s->tf_sxip & XIP_ADDR);
db_find_xtrn_sym_and_offset((db_addr_t)IPMASK(s->tf_sxip),
&name, &offset);
db_printf("\n");
if (s->tf_snip != s->tf_sxip + 4) {
- db_printf("%cnip: 0x%08x ",
+ db_printf("%cnip: 0x%08lx ",
CPU_IS88110 ? 'e' : 's', s->tf_snip);
db_find_xtrn_sym_and_offset((db_addr_t)IPMASK(s->tf_snip),
&name, &offset);
#ifdef M88100
if (CPU_IS88100) {
if (s->tf_sfip != s->tf_snip + 4) {
- db_printf("sfip: 0x%08x ", s->tf_sfip);
+ db_printf("sfip: 0x%08lx ", s->tf_sfip);
db_find_xtrn_sym_and_offset((db_addr_t)IPMASK(s->tf_sfip),
&name, &offset);
if (name != NULL && (u_int)offset <= db_maxoff)
#endif
#ifdef M88110
if (CPU_IS88110) {
- db_printf("fpsr: 0x%08x fpcr: 0x%08x fpecr: 0x%08x\n",
+ db_printf("fpsr: 0x%08lx fpcr: 0x%08lx fpecr: 0x%08lx\n",
s->tf_fpsr, s->tf_fpcr, s->tf_fpecr);
- db_printf("dsap 0x%08x duap 0x%08x dsr 0x%08x dlar 0x%08x dpar 0x%08x\n",
+ db_printf("dsap 0x%08lx duap 0x%08lx dsr 0x%08lx dlar 0x%08lx dpar 0x%08lx\n",
s->tf_dsap, s->tf_duap, s->tf_dsr, s->tf_dlar, s->tf_dpar);
- db_printf("isap 0x%08x iuap 0x%08x isr 0x%08x ilar 0x%08x ipar 0x%08x\n",
+ db_printf("isap 0x%08lx iuap 0x%08lx isr 0x%08lx ilar 0x%08lx ipar 0x%08lx\n",
s->tf_isap, s->tf_iuap, s->tf_isr, s->tf_ilar, s->tf_ipar);
}
#endif
- db_printf("epsr: 0x%08x current process: %p\n",
+ db_printf("epsr: 0x%08lx current process: %p\n",
s->tf_epsr, curproc);
- db_printf("vector: 0x%02x interrupt mask: 0x%08x\n",
+ db_printf("vector: 0x%02lx interrupt mask: 0x%08lx\n",
s->tf_vector, s->tf_mask);
/*
#ifdef M88100
if (CPU_IS88100) {
if (s->tf_vector == /*data*/3 || s->tf_dmt0 & DMT_VALID) {
- db_printf("dmt,d,a0: 0x%08x 0x%08x 0x%08x ",
+ db_printf("dmt,d,a0: 0x%08lx 0x%08lx 0x%08lx ",
s->tf_dmt0, s->tf_dmd0, s->tf_dma0);
db_find_xtrn_sym_and_offset((db_addr_t)s->tf_dma0,
&name, &offset);
db_printf("\n");
if ((s->tf_dmt1 & DMT_VALID) && (!suppress1)) {
- db_printf("dmt,d,a1: 0x%08x 0x%08x 0x%08x ",
+ db_printf("dmt,d,a1: 0x%08lx 0x%08lx 0x%08lx ",
s->tf_dmt1, s->tf_dmd1, s->tf_dma1);
db_find_xtrn_sym_and_offset((db_addr_t)s->tf_dma1,
&name, &offset);
db_printf("\n");
if ((s->tf_dmt2 & DMT_VALID) && (!suppress2)) {
- db_printf("dmt,d,a2: 0x%08x 0x%08x 0x%08x ",
+ db_printf("dmt,d,a2: 0x%08lx 0x%08lx 0x%08lx ",
s->tf_dmt2, s->tf_dmd2, s->tf_dma2);
db_find_xtrn_sym_and_offset((db_addr_t)s->tf_dma2,
&name, &offset);
}
}
- db_printf("fault code %d\n",
+ db_printf("fault code %ld\n",
CMMU_PFSR_FAULT(s->tf_dpfsr));
}
}
#endif /* M88100 */
if (s->tf_fpecr & 255) { /* floating point error occurred */
- db_printf("fpecr: 0x%08x fpsr: 0x%08x fpcr: 0x%08x\n",
+ db_printf("fpecr: 0x%08lx fpsr: 0x%08lx fpcr: 0x%08lx\n",
s->tf_fpecr, s->tf_fpsr, s->tf_fpcr);
#ifdef M88100
if (CPU_IS88100) {
- db_printf("fcr1-4: 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ db_printf("fcr1-4: 0x%08lx 0x%08lx 0x%08lx 0x%08lx\n",
s->tf_fphs1, s->tf_fpls1, s->tf_fphs2, s->tf_fpls2);
- db_printf("fcr5-8: 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ db_printf("fcr5-8: 0x%08lx 0x%08lx 0x%08lx 0x%08lx\n",
s->tf_fppt, s->tf_fprh, s->tf_fprl, s->tf_fpit);
}
#endif
db_find_xtrn_sym_and_offset(l, &name, &offset);
if (name && (u_int)offset <= db_maxoff)
- db_printf("stopped at 0x%lx (%s+0x%x)\n", l, name, offset);
+ db_printf("stopped at 0x%lx (%s+0x%lx)\n", l, name, offset);
else
db_printf("stopped at 0x%lx\n", l);
}
/* walk back up stack until 8k boundry, looking for 0 */
while (addr & ((8 * 1024) - 1)) {
if (frame_is_sane((db_regs_t *)addr, 1) != 0)
- db_printf("frame found at 0x%x\n", addr);
+ db_printf("frame found at 0x%lx\n", addr);
addr += 4;
}
- db_printf("(Walked back until 0x%x)\n",addr);
+ db_printf("(Walked back until 0x%lx)\n",addr);
}
#ifdef MULTIPROCESSOR
ddb_mp_nextcpu = cpu;
db_cmd_loop_done = 1;
} else {
- db_printf("cpu%d is not active\n", cpu);
+ db_printf("cpu%ld is not active\n", cpu);
}
return;
}
ci->ci_ddb_state);
break;
}
- db_printf("%ccpu%1d %02x %-14s %08x %08x %3d %08x\n",
+ db_printf("%ccpu%d %02x %-14s %08lx %08lx %3u %08x\n",
(cpu == cpu_number()) ? '*' : ' ', CPU_INFO_UNIT(ci),
- ci->ci_flags, state, ci->ci_curproc, ci->ci_curpcb,
- ci->ci_intrdepth, ci->ci_ipi);
+ ci->ci_flags, state, (register_t)ci->ci_curproc,
+ (register_t)ci->ci_curpcb, ci->ci_intrdepth, ci->ci_ipi);
}
}
-/* $OpenBSD: m88k_machdep.c,v 1.59 2014/03/29 18:09:29 guenther Exp $ */
+/* $OpenBSD: m88k_machdep.c,v 1.60 2014/05/08 22:17:33 miod Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
regdump(struct trapframe *f)
{
#define R(i) f->tf_r[i]
- printf("R00-05: 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ printf("R00-05: 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx\n",
R(0),R(1),R(2),R(3),R(4),R(5));
- printf("R06-11: 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ printf("R06-11: 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx\n",
R(6),R(7),R(8),R(9),R(10),R(11));
- printf("R12-17: 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ printf("R12-17: 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx\n",
R(12),R(13),R(14),R(15),R(16),R(17));
- printf("R18-23: 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ printf("R18-23: 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx\n",
R(18),R(19),R(20),R(21),R(22),R(23));
- printf("R24-29: 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ printf("R24-29: 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx\n",
R(24),R(25),R(26),R(27),R(28),R(29));
- printf("R30-31: 0x%08x 0x%08x\n",R(30),R(31));
+ printf("R30-31: 0x%08lx 0x%08lx\n",R(30),R(31));
#ifdef M88110
if (CPU_IS88110) {
- printf("exip %x enip %x\n", f->tf_exip, f->tf_enip);
+ printf("exip %lx enip %lx\n", f->tf_exip, f->tf_enip);
}
#endif
#ifdef M88100
if (CPU_IS88100) {
- printf("sxip %x snip %x sfip %x\n",
+ printf("sxip %lx snip %lx sfip %lx\n",
f->tf_sxip, f->tf_snip, f->tf_sfip);
}
if (CPU_IS88100 && f->tf_vector == 0x3) {
/* print dmt stuff for data access fault */
- printf("dmt0 %x dmd0 %x dma0 %x\n",
+ printf("dmt0 %lx dmd0 %lx dma0 %lx\n",
f->tf_dmt0, f->tf_dmd0, f->tf_dma0);
- printf("dmt1 %x dmd1 %x dma1 %x\n",
+ printf("dmt1 %lx dmd1 %lx dma1 %lx\n",
f->tf_dmt1, f->tf_dmd1, f->tf_dma1);
- printf("dmt2 %x dmd2 %x dma2 %x\n",
+ printf("dmt2 %lx dmd2 %lx dma2 %lx\n",
f->tf_dmt2, f->tf_dmd2, f->tf_dma2);
- printf("fault type %d\n", (f->tf_dpfsr >> 16) & 0x7);
+ printf("fault type %ld\n", (f->tf_dpfsr >> 16) & 0x7);
dae_print((u_int *)f);
}
if (CPU_IS88100 && longformat != 0) {
- printf("fpsr %x fpcr %x epsr %x ssbr %x\n",
+ printf("fpsr %lx fpcr %lx epsr %lx ssbr %lx\n",
f->tf_fpsr, f->tf_fpcr, f->tf_epsr, f->tf_ssbr);
- printf("fpecr %x fphs1 %x fpls1 %x fphs2 %x fpls2 %x\n",
+ printf("fpecr %lx fphs1 %lx fpls1 %lx fphs2 %lx fpls2 %lx\n",
f->tf_fpecr, f->tf_fphs1, f->tf_fpls1,
f->tf_fphs2, f->tf_fpls2);
- printf("fppt %x fprh %x fprl %x fpit %x\n",
+ printf("fppt %lx fprh %lx fprl %lx fpit %lx\n",
f->tf_fppt, f->tf_fprh, f->tf_fprl, f->tf_fpit);
- printf("vector %d mask %x flags %x scratch1 %x cpu %p\n",
+ printf("vector %ld mask %lx flags %lx scratch1 %lx cpu %p\n",
f->tf_vector, f->tf_mask, f->tf_flags,
f->tf_scratch1, f->tf_cpu);
}
#endif
#ifdef M88110
if (CPU_IS88110 && longformat != 0) {
- printf("fpsr %x fpcr %x fpecr %x epsr %x\n",
+ printf("fpsr %lx fpcr %lx fpecr %lx epsr %lx\n",
f->tf_fpsr, f->tf_fpcr, f->tf_fpecr, f->tf_epsr);
- printf("dsap %x duap %x dsr %x dlar %x dpar %x\n",
+ printf("dsap %lx duap %lx dsr %lx dlar %lx dpar %lx\n",
f->tf_dsap, f->tf_duap, f->tf_dsr, f->tf_dlar, f->tf_dpar);
- printf("isap %x iuap %x isr %x ilar %x ipar %x\n",
+ printf("isap %lx iuap %lx isr %lx ilar %lx ipar %lx\n",
f->tf_isap, f->tf_iuap, f->tf_isr, f->tf_ilar, f->tf_ipar);
- printf("vector %d mask %x flags %x scratch1 %x cpu %p\n",
+ printf("vector %ld mask %lx flags %lx scratch1 %lx cpu %p\n",
f->tf_vector, f->tf_mask, f->tf_flags,
f->tf_scratch1, f->tf_cpu);
}
-/* $OpenBSD: pmap.c,v 1.75 2013/11/16 18:45:20 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.76 2014/05/08 22:17:33 miod Exp $ */
/*
* Copyright (c) 2001-2004, 2010, Miodrag Vallat.
if (canfail)
return NULL;
panic("pmap_expand_kmap(%p): uvm_pagealloc() failed",
- va);
+ (void *)va);
}
pa = VM_PAGE_TO_PHYS(pg);
} else {
pa = (paddr_t)uvm_pageboot_alloc(PAGE_SIZE);
if (pa == 0)
panic("pmap_expand_kmap(%p): uvm_pageboot_alloc() failed",
- va);
+ (void *)va);
bzero((void *)pa, PAGE_SIZE);
}
/* m88k systems only have one segment. */
#ifdef DIAGNOSTIC
if (vm_physmem[0].avail_end - vm_physmem[0].avail_start < npg)
- panic("pmap_steal_memory(%x): out of memory", size);
+ panic("pmap_steal_memory(%lx): out of memory", size);
#endif
va = ptoa(vm_physmem[0].avail_start);
#ifdef DIAGNOSTIC
if (pa != 0 && pa < VM_MAX_KERNEL_ADDRESS)
panic("pmap_map: virtual range %p-%p overlaps KVM",
- pa, pa + sz);
+ (void *)pa, (void *)(pa + sz));
#endif
sz = round_page(pa + sz) - trunc_page(pa);
#ifdef DIAGNOSTIC
if (pvl->pv_pmap == NULL)
panic("pmap_remove_pte(%p, %p, %p, %p/%p, %d): null pv_list",
- pmap, va, pte, pa, pg, flush);
+ pmap, (void *)va, pte, (void *)pa, pg, flush);
#endif
prev = NULL;
if (cur == NULL) {
panic("pmap_remove_pte(%p, %p, %p, %p, %d): mapping for va "
"(pa %p) not in pv list at %p",
- pmap, va, pte, pg, flush, pa, pvl);
+ pmap, (void *)va, pte, pg, flush, (void *)pa, pvl);
}
if (prev == NULL) {
-/* $OpenBSD: trap.c,v 1.90 2014/04/18 11:51:17 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.91 2014/05/08 22:17:33 miod Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
* Copyright (c) 1998 Steve Murphree, Jr.
if (CPU_IS88100) {
if (type == 2) {
/* instruction exception */
- printf("\nInstr access fault (%s) v = %x, frame %p\n",
+ printf("\nInstr access fault (%s) v = %lx, frame %p\n",
pbus_exception_type[
CMMU_PFSR_FAULT(frame->tf_ipfsr)],
frame->tf_sxip & XIP_ADDR, frame);
} else if (type == 3) {
/* data access exception */
- printf("\nData access fault (%s) v = %x, frame %p\n",
+ printf("\nData access fault (%s) v = %lx, frame %p\n",
pbus_exception_type[
CMMU_PFSR_FAULT(frame->tf_dpfsr)],
frame->tf_sxip & XIP_ADDR, frame);
} else
- printf("\nTrap type %d, v = %x, frame %p\n",
+ printf("\nTrap type %d, v = %lx, frame %p\n",
type, frame->tf_sxip & XIP_ADDR, frame);
}
#endif
return;
#endif /* DDB */
case T_MISALGNFLT:
- printf("kernel misaligned access exception @%p\n",
+ printf("kernel misaligned access exception @0x%08lx\n",
frame->tf_sxip);
goto lose;
case T_INSTFLT:
#ifdef DDB
regdump((struct trapframe*)frame);
#endif
- panic("unrecoverable exception %d", frame->tf_vector);
+ panic("unrecoverable exception %ld", frame->tf_vector);
}
#ifdef M88100