summaryrefslogtreecommitdiff
path: root/sys/arch/arm32
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/arm32')
-rw-r--r--sys/arch/arm32/arm32/autoconf.c2
-rw-r--r--sys/arch/arm32/arm32/clock.c4
-rw-r--r--sys/arch/arm32/arm32/fault.c56
-rw-r--r--sys/arch/arm32/arm32/irqhandler.c4
-rw-r--r--sys/arch/arm32/arm32/machdep.c14
-rw-r--r--sys/arch/arm32/arm32/pmap.c14
-rw-r--r--sys/arch/arm32/arm32/stubs.c2
-rw-r--r--sys/arch/arm32/arm32/syscall.c4
-rw-r--r--sys/arch/arm32/arm32/undefined.c4
-rw-r--r--sys/arch/arm32/arm32/vm_machdep.c2
-rw-r--r--sys/arch/arm32/mainbus/beep.c6
-rw-r--r--sys/arch/arm32/mainbus/com.c2
-rw-r--r--sys/arch/arm32/mainbus/fd.c12
-rw-r--r--sys/arch/arm32/mainbus/kbd.c2
-rw-r--r--sys/arch/arm32/mainbus/lpt.c2
-rw-r--r--sys/arch/arm32/mainbus/pms.c6
-rw-r--r--sys/arch/arm32/mainbus/qmouse.c4
-rw-r--r--sys/arch/arm32/mainbus/vidcaudio.c2
-rw-r--r--sys/arch/arm32/mainbus/wd.c10
-rw-r--r--sys/arch/arm32/podulebus/asc.c8
-rw-r--r--sys/arch/arm32/podulebus/if_ea.c4
-rw-r--r--sys/arch/arm32/podulebus/if_eb.c4
-rw-r--r--sys/arch/arm32/podulebus/if_eh.c4
-rw-r--r--sys/arch/arm32/podulebus/if_ie.c4
-rw-r--r--sys/arch/arm32/podulebus/podulebus.c4
-rw-r--r--sys/arch/arm32/podulebus/ptsc.c2
-rw-r--r--sys/arch/arm32/podulebus/sbic.c2
27 files changed, 92 insertions, 92 deletions
diff --git a/sys/arch/arm32/arm32/autoconf.c b/sys/arch/arm32/arm32/autoconf.c
index e70cb3177c2..8ce5b86ba6d 100644
--- a/sys/arch/arm32/arm32/autoconf.c
+++ b/sys/arch/arm32/arm32/autoconf.c
@@ -150,7 +150,7 @@ set_root_device()
}
if (rootdev == NODEV)
- panic("No root device specified in boot config\n");
+ panic("No root device specified in boot config");
}
diff --git a/sys/arch/arm32/arm32/clock.c b/sys/arch/arm32/arm32/clock.c
index 203830aee65..6781d24fafe 100644
--- a/sys/arch/arm32/arm32/clock.c
+++ b/sys/arch/arm32/arm32/clock.c
@@ -155,7 +155,7 @@ cpu_initclocks()
clockirq.ih_level = IPL_CLOCK;
clockirq.ih_name = "TMR0 hard clk";
if (irq_claim(IRQ_TIMER0, &clockirq) == -1)
- panic("Cannot installer timer 0 IRQ handler\n");
+ panic("Cannot installer timer 0 IRQ handler");
if (stathz) {
setstatclockrate(stathz);
@@ -164,7 +164,7 @@ cpu_initclocks()
statclockirq.ih_arg = 0;
statclockirq.ih_level = IPL_CLOCK;
if (irq_claim(IRQ_TIMER1, &clockirq) == -1)
- panic("Cannot installer timer 1 IRQ handler\n");
+ panic("Cannot installer timer 1 IRQ handler");
}
}
diff --git a/sys/arch/arm32/arm32/fault.c b/sys/arch/arm32/arm32/fault.c
index 594d1b0cc96..c6c61de4ed9 100644
--- a/sys/arch/arm32/arm32/fault.c
+++ b/sys/arch/arm32/arm32/fault.c
@@ -229,11 +229,11 @@ data_abort_handler(frame)
base = (fault_instruction >> 16) & 0x0f;
if (base == 13 && (frame->tf_spsr & PSR_MODE) == PSR_SVC32_MODE) {
disassemble(fault_pc);
- panic("Abort handler cannot fix this :-(\n");
+ panic("Abort handler cannot fix this :-(");
}
if (base == 15) {
disassemble(fault_pc);
- panic("Abort handler cannot fix this :-(\n");
+ panic("Abort handler cannot fix this :-(");
}
#ifdef DEBUG_FAULT_CORRECTION
if (pmap_debug_level >=0)
@@ -255,7 +255,7 @@ data_abort_handler(frame)
offset = fault_instruction & 0x0f;
if (offset == base) {
disassemble(fault_pc);
- panic("Abort handler cannot fix this :-(\n");
+ panic("Abort handler cannot fix this :-(");
}
/* Register offset - hard we have to cope with shifts ! */
@@ -266,12 +266,12 @@ data_abort_handler(frame)
else {
if ((fault_instruction & (1 << 7)) != 0) {
disassemble(fault_pc);
- panic("Abort handler cannot fix this :-(\n");
+ panic("Abort handler cannot fix this :-(");
}
shift = ((fault_instruction >> 8) & 0xf);
if (base == shift) {
disassemble(fault_pc);
- panic("Abort handler cannot fix this :-(\n");
+ panic("Abort handler cannot fix this :-(");
}
#ifdef DEBUG_FAULT_CORRECTION
if (pmap_debug_level >=0)
@@ -297,7 +297,7 @@ data_abort_handler(frame)
break;
case 3 : /* Rotate right */
disassemble(fault_pc);
- panic("Abort handler cannot fix this yet :-(\n");
+ panic("Abort handler cannot fix this yet :-(");
break;
}
@@ -340,7 +340,7 @@ data_abort_handler(frame)
base = (fault_instruction >> 16) & 0x0f;
if (base == 15) {
disassemble(fault_pc);
- panic("Abort handler cannot fix this :-(\n");
+ panic("Abort handler cannot fix this :-(");
}
count = 0;
for (loop = 0; loop < 16; ++loop) {
@@ -387,11 +387,11 @@ data_abort_handler(frame)
base = (fault_instruction >> 16) & 0x0f;
if (base == 13 && (frame->tf_spsr & PSR_MODE) == PSR_SVC32_MODE) {
disassemble(fault_pc);
- panic("Abort handler cannot fix this :-(\n");
+ panic("Abort handler cannot fix this :-(");
}
if (base == 15) {
disassemble(fault_pc);
- panic("Abort handler cannot fix this :-(\n");
+ panic("Abort handler cannot fix this :-(");
}
offset = (fault_instruction & 0xff) << 2;
@@ -461,7 +461,7 @@ data_abort_handler(frame)
return;
if (pmap_modified_emulation(kernel_pmap, va))
return;
- panic("no pcb ... we're toast !\n");
+ panic("no pcb ... we're toast !");
}
if (pcb != curpcb) {
@@ -503,7 +503,7 @@ copyfault:
++onfault_count;
if (onfault_count > 10) {
traceback();
- panic("Eaten by zombies\n");
+ panic("Eaten by zombies");
}
return;
}
@@ -528,7 +528,7 @@ copyfault:
case FAULT_WRTBUF_1: /* Write Buffer Fault */
/* If this happens forget it no point in continuing */
- panic("Write Buffer Fault - Halting\n");
+ panic("Write Buffer Fault - Halting");
break;
case FAULT_ALIGN_0 | FAULT_USER: /* Alignment Fault */
@@ -543,7 +543,7 @@ copyfault:
* register in the CPU. Might as well panic as the kernel was not compiled
* for aligned accesses.
*/
- panic("Alignment fault - Halting\n");
+ panic("Alignment fault - Halting");
/* trapsignal(p, SIGBUS, fault_status & FAULT_TYPE_MASK);*/
break;
@@ -559,7 +559,7 @@ copyfault:
/* What will accutally cause a bus error ? */
/* Real bus errors are not a process problem but hardware */
- panic("Bus Error - Halting\n");
+ panic("Bus Error - Halting");
/* trapsignal(p, SIGBUS, fault_status & FAULT_TYPE_MASK);*/
break;
@@ -577,7 +577,7 @@ copyfault:
* PTE's but if this happens it implies a kernel problem.
*/
- panic("Domain Error - Halting\n");
+ panic("Domain Error - Halting");
/* trapsignal(p, SIGBUS, fault_status & FAULT_TYPE_MASK);*/
break;
@@ -630,7 +630,7 @@ copyfault:
aborts[fault_status & 0xf], fault_status & 0xfff, fault_address,
fault_pc);
postmortem(frame);
- panic("permission fault in kernel by kernel\n");
+ panic("permission fault in kernel by kernel");
} else
map = &vm->vm_map;
@@ -661,7 +661,7 @@ copyfault:
ftype |= VM_PROT_WRITE;
/* if (!(ftype & VM_PROT_WRITE)) {
- panic("permission fault on a read !\n");
+ panic("permission fault on a read !");
}*/
if (pmap_modified_emulation(map->pmap, va))
@@ -683,7 +683,7 @@ copyfault:
break;
}
}
-/* panic("Page Permission Fault - Halting\n");*/
+/* panic("Page Permission Fault - Halting");*/
break;
#if 0
@@ -705,7 +705,7 @@ copyfault:
aborts[fault_status & 0xf], fault_status & 0xfff, fault_address,
fault_pc);
postmortem(frame);
- panic("Page Permission Fault - (in SVC mode) Halting\n");
+ panic("Page Permission Fault - (in SVC mode) Halting");
break;
#endif
@@ -723,7 +723,7 @@ copyfault:
trapsignal(p, SIGBUS, FAULT_PERM_S);
break;
-/* panic("Section Permission Fault - Halting\n");
+/* panic("Section Permission Fault - Halting");
trapsignal(p, SIGBUS, fault_status & FAULT_TYPE_MASK);
break;*/
@@ -735,7 +735,7 @@ copyfault:
* These faults imply that the PTE is corrupt. Likely to be a kernel
* fault so we had better stop.
*/
- panic("Bus Error Translation - Halting\n");
+ panic("Bus Error Translation - Halting");
break;
/* trapsignal(p, SIGBUS, fault_status & FAULT_TYPE_MASK);
break;*/
@@ -826,7 +826,7 @@ copyfault:
/*
if (*(((pt_entry_t **)(PROCESS_PAGE_TBLS_BASE + va >> (PD_SHIFT+2)))[]) == 0)
- panic("vm_fault: Page table is needed first\n")
+ panic("vm_fault: Page table is needed first")
*/
rv = vm_fault(map, va, ftype, FALSE);
@@ -862,7 +862,7 @@ nogo:
trapsignal(p, SIGSEGV, FAULT_TRANS_P);
break;
}
-/* panic("Page Fault - Halting\n");*/
+/* panic("Page Fault - Halting");*/
break;
case FAULT_TRANS_S: /* Section Translation Fault */
@@ -978,7 +978,7 @@ nogo1:
trapsignal(p, SIGSEGV, FAULT_TRANS_S);
break;
}
-/* panic("Section Fault - Halting\n");
+/* panic("Section Fault - Halting");
break;*/
default :
@@ -992,7 +992,7 @@ we_re_toast:
postmortem(frame);
- panic("Fault cannot be handled\n");
+ panic("Fault cannot be handled");
break;
}
@@ -1043,7 +1043,7 @@ prefetch_abort_handler(frame)
postmortem(frame);
pmap_debug_level = 0;
(void)splx(s);
- panic("Fault handler not in SVC mode\n");
+ panic("Fault handler not in SVC mode");
}
@@ -1076,7 +1076,7 @@ prefetch_abort_handler(frame)
pcb = &p->p_addr->u_pcb;
if (pcb == 0)
- panic("no pcb ... we're toast !\n");
+ panic("no pcb ... we're toast !");
if (pcb != curpcb) {
printf("data_abort: Alert ! pcb(%08x) != curpcb(%08x)\n", (u_int)pcb,
@@ -1116,7 +1116,7 @@ prefetch_abort_handler(frame)
validate_trapframe(frame, 4);
#endif
#else
- panic("Prefetch abort in SVC mode\n");
+ panic("Prefetch abort in SVC mode");
#endif
}
diff --git a/sys/arch/arm32/arm32/irqhandler.c b/sys/arch/arm32/arm32/irqhandler.c
index fe3a764706f..6f75277f577 100644
--- a/sys/arch/arm32/arm32/irqhandler.c
+++ b/sys/arch/arm32/arm32/irqhandler.c
@@ -237,7 +237,7 @@ irq_claim(irq, handler)
*/
if (irq >= IRQ_EXPCARD0 && irqhandlers[IRQ_PODULE] == NULL)
- panic("Podule IRQ %d claimed but no podulebus handler installed\n",
+ panic("Podule IRQ %d claimed but no podulebus handler installed",
irq);
enable_irq(irq);
@@ -408,7 +408,7 @@ void
stray_irqhandler(mask)
u_int mask;
{
-/* panic("Stray IRQ received (%08x)\n", mask);*/
+/* panic("Stray IRQ received (%08x)", mask);*/
static u_int stray_irqs = 0;
if (++stray_irqs <= 8)
diff --git a/sys/arch/arm32/arm32/machdep.c b/sys/arch/arm32/arm32/machdep.c
index ad2be7c616d..bb2f341abf1 100644
--- a/sys/arch/arm32/arm32/machdep.c
+++ b/sys/arch/arm32/arm32/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.3 1998/03/01 00:37:27 niklas Exp $ */
+/* $OpenBSD: machdep.c,v 1.4 1999/01/11 05:11:11 millert Exp $ */
/* $NetBSD: machdep.c,v 1.6 1996/03/13 21:32:39 mark Exp $ */
/*
@@ -590,7 +590,7 @@ initarm(bootconf)
/* Check to make sure the page size is correct */
if (NBPG != bootconfig.pagesize)
- panic("Page size is not %d bytes\n", NBPG);
+ panic("Page size is not %d bytes", NBPG);
/*
* Ok now we have the hard bit.
@@ -617,10 +617,10 @@ initarm(bootconf)
*/
if ((bootconfig.scratchphysicalbase & 0x3fff) != 0)
- panic("initarm: Scratch area not aligned on 16KB boundry\n");
+ panic("initarm: Scratch area not aligned on 16KB boundry");
if ((bootconfig.scratchsize < 0xc000) != 0)
- panic("initarm: Scratch area too small (need >= 48KB)\n");
+ panic("initarm: Scratch area too small (need >= 48KB)");
/*
* Ok start the primary bootstrap.
@@ -841,7 +841,7 @@ initarm(bootconf)
/* This should never be able to happen but better confirm that. */
if ((kernel_pt_table[0] & (PD_SIZE-1)) != 0)
- panic("initarm: Failed to align the kernel page directory\n");
+ panic("initarm: Failed to align the kernel page directory");
/* Update the address of the first free page of physical memory */
@@ -1506,7 +1506,7 @@ allocsys(v)
#ifdef DIAGNOSTIC
if (bufpages == 0)
- panic("bufpages = 0\n");
+ panic("bufpages = 0");
#endif
if (nbuf == 0) {
@@ -1539,7 +1539,7 @@ map_section(pagetable, va, pa)
vm_offset_t pa;
{
if ((va & 0xfffff) != 0)
- panic("initarm: Cannot allocate 1MB section on non 1MB boundry\n");
+ panic("initarm: Cannot allocate 1MB section on non 1MB boundry");
((u_int *)pagetable)[(va >> 20)] = L1_SEC((pa & PD_MASK));
}
diff --git a/sys/arch/arm32/arm32/pmap.c b/sys/arch/arm32/arm32/pmap.c
index 66b5a935d39..41957167ef6 100644
--- a/sys/arch/arm32/arm32/pmap.c
+++ b/sys/arch/arm32/arm32/pmap.c
@@ -457,7 +457,7 @@ pmap_modify_pv(pmap, va, pind, bic_mask, eor_mask)
#ifdef DIAGNOSTIC
if (pind > 0x00010000 || pind < 0) {
traceback();
- panic("pmap_modify_pv: pind out of range pind = %08x va=%08x\n", pind, va);
+ panic("pmap_modify_pv: pind out of range pind = %08x va=%08x", pind, va);
}
#endif
@@ -926,7 +926,7 @@ pmap_freepagedir(pmap)
index = (((u_int) pmap->pm_pdir) - PAGE_DIRS_BASE - PD_SIZE) / PD_SIZE;
if (pagedirectories[index] != pmap)
- panic("pm_pdir inconsistancy found\n");
+ panic("pm_pdir inconsistancy found");
pagedirectories[index] = 0;
@@ -1377,7 +1377,7 @@ pmap_remove(pmap, sva, eva)
#ifdef DIAGNOSTIC
if (pind > 0x00010000 || pind < 0) {
printf("eerk ! pind=%08x pa=%08x\n", pind, (int) pa);
- panic("The axe has fallen, were dead\n");
+ panic("The axe has fallen, were dead");
}
#endif
if (pmap_remove_pv(pmap, sva, pind) & PT_W)
@@ -1580,7 +1580,7 @@ pmap_protect(pmap, sva, eva, prot)
/* Get the physical page index */
if ((pind = pmap_page_index(pa)) == -1)
- panic("pmap_protect: pmap_page_index failed for pte %08x\n", pte);
+ panic("pmap_protect: pmap_page_index failed for pte %08x", pte);
/* Clear write flag */
@@ -1651,7 +1651,7 @@ pmap_enter(pmap, va, pa, prot, wired)
if (!pte) {
printf("pmap_enter: pde = %08x\n", (u_int) pmap_pde(pmap, va));
printf("pmap_enter: pte = %08x\n", (u_int) pmap_pte(pmap, va));
- panic("Failure 01 in pmap_enter (V%08x P%08x)\n", (u_int) va, (u_int) pa);
+ panic("Failure 01 in pmap_enter (V%08x P%08x)", (u_int) va, (u_int) pa);
}
/* More debugging info */
@@ -1823,7 +1823,7 @@ if (va == 0 && (prot & VM_PROT_WRITE))
if (*pte == 0)
{
- panic("oopss: *pte = 0 in pmap_enter() npte=%08x\n", npte);
+ panic("oopss: *pte = 0 in pmap_enter() npte=%08x", npte);
}
if (pind != -1)
@@ -2431,7 +2431,7 @@ pmap_modified_emulation(pmap, va)
if (pmap_attributes)
pmap_attributes[pind] |= PT_M;
-/* panic("pmap_modified_emulation: Not yet completed\n");*/
+/* panic("pmap_modified_emulation: Not yet completed");*/
/* Return, indicating the problem has been dealt with */
diff --git a/sys/arch/arm32/arm32/stubs.c b/sys/arch/arm32/arm32/stubs.c
index 116bfc30a08..f87be59bf5a 100644
--- a/sys/arch/arm32/arm32/stubs.c
+++ b/sys/arch/arm32/arm32/stubs.c
@@ -117,7 +117,7 @@ do_mountroot()
if (major(rootdev) == 18 && bootrd) {
if (load_ramdisc_from_floppy(bootrd, makedev(17, minor(rootdev))) != 0)
- panic("Failed to load ramdisc\n");
+ panic("Failed to load ramdisc");
boothowto |= RB_SINGLE;
rootdev = makedev(major(rootdev), 0);
}
diff --git a/sys/arch/arm32/arm32/syscall.c b/sys/arch/arm32/arm32/syscall.c
index 318d99ecd64..cef77b05978 100644
--- a/sys/arch/arm32/arm32/syscall.c
+++ b/sys/arch/arm32/arm32/syscall.c
@@ -154,7 +154,7 @@ syscall(frame, code)
#endif
return;
#else
- panic("syscall in kernel mode !\n");
+ panic("syscall in kernel mode !");
#endif
}
#endif
@@ -231,7 +231,7 @@ syscall(frame, code)
if (frame->tf_r0 != 0)
panic((char *)frame->tf_r0, frame->tf_r1, frame->tf_r2,
frame->tf_r3);
- panic("SYSCALL 0x1004 panic\n");
+ panic("SYSCALL 0x1004 panic");
break;*/
/* case 0x1007:
diff --git a/sys/arch/arm32/arm32/undefined.c b/sys/arch/arm32/arm32/undefined.c
index 65f390740c5..ed113b03109 100644
--- a/sys/arch/arm32/arm32/undefined.c
+++ b/sys/arch/arm32/arm32/undefined.c
@@ -187,7 +187,7 @@ undefinedinstruction(frame)
pcb = &p->p_addr->u_pcb;
if (pcb == 0)
{
- panic("no pcb ... we're toast !\n");
+ panic("no pcb ... we're toast !");
}
#endif
@@ -318,7 +318,7 @@ resethandler(frame)
validate_trapframe(frame, 4);
#endif
#else
- panic("Branch through zero..... were dead\n");
+ panic("Branch through zero..... were dead");
#endif
}
diff --git a/sys/arch/arm32/arm32/vm_machdep.c b/sys/arch/arm32/arm32/vm_machdep.c
index f2f0c290caf..46c6517715d 100644
--- a/sys/arch/arm32/arm32/vm_machdep.c
+++ b/sys/arch/arm32/arm32/vm_machdep.c
@@ -207,7 +207,7 @@ cpu_fork(p1, p2)
#endif
if (vm_map_pageable(&p2->p_vmspace->vm_map, addr, addr+NBPG, FALSE) != 0) {
- panic("Failed to fault in system page PT\n");
+ panic("Failed to fault in system page PT");
}
#ifdef DEBUG_VMMACHDEP
diff --git a/sys/arch/arm32/mainbus/beep.c b/sys/arch/arm32/mainbus/beep.c
index 762830309f5..fd4adaa3ea6 100644
--- a/sys/arch/arm32/mainbus/beep.c
+++ b/sys/arch/arm32/mainbus/beep.c
@@ -137,9 +137,9 @@ beepattach(parent, self, aux)
sc->sc_buffer0 = kmem_alloc(kernel_map, NBPG);
if (sc->sc_buffer0 == 0)
- panic("beep: Cannot allocate buffer memory\n");
+ panic("beep: Cannot allocate buffer memory");
if ((sc->sc_buffer0 & (NBPG -1)) != 0)
- panic("beep: Cannot allocate page aligned buffer\n");
+ panic("beep: Cannot allocate page aligned buffer");
sc->sc_buffer1 = sc->sc_buffer0;
sc->sc_sound_cur0 = pmap_extract(kernel_pmap,
@@ -168,7 +168,7 @@ beepattach(parent, self, aux)
sc->sc_ih.ih_name = "dma snd ch 0";
if (irq_claim(IRQ_DMASCH0, &sc->sc_ih))
- panic("Cannot claim DMASCH0 IRQ for beep%d\n", parent->dv_unit);
+ panic("Cannot claim DMASCH0 IRQ for beep%d", parent->dv_unit);
disable_irq(IRQ_DMASCH0);
diff --git a/sys/arch/arm32/mainbus/com.c b/sys/arch/arm32/mainbus/com.c
index ee9b812f796..a22a93c076c 100644
--- a/sys/arch/arm32/mainbus/com.c
+++ b/sys/arch/arm32/mainbus/com.c
@@ -232,7 +232,7 @@ comattach(parent, self, aux)
sc->sc_ih.ih_name = "serial";
if (mb->mb_irq != IRQUNK)
if (irq_claim(mb->mb_irq, &sc->sc_ih))
- panic("Cannot claim IRQ %d for com%d\n", mb->mb_irq, sc->sc_dev.dv_unit);
+ panic("Cannot claim IRQ %d for com%d", mb->mb_irq, sc->sc_dev.dv_unit);
#ifdef KGDB
if (kgdb_dev == makedev(commajor, unit)) {
diff --git a/sys/arch/arm32/mainbus/fd.c b/sys/arch/arm32/mainbus/fd.c
index db8316cf288..efdca4fc236 100644
--- a/sys/arch/arm32/mainbus/fd.c
+++ b/sys/arch/arm32/mainbus/fd.c
@@ -328,7 +328,7 @@ fdcattach(parent, self, aux)
fdc->sc_ih.ih_level = IPL_BIO;
fdc->sc_ih.ih_name = "fdc";
if (irq_claim(mb->mb_irq, &fdc->sc_ih))
- panic("Cannot claim IRQ %d for fdc%d\n", mb->mb_irq, parent->dv_unit);
+ panic("Cannot claim IRQ %d for fdc%d", mb->mb_irq, parent->dv_unit);
/*
* The NVRAM info only tells us about the first two disks on the
@@ -973,7 +973,7 @@ loop:
fiqhandler.fh_r13 = fdc->sc_drq;
fiqhandler.fh_mask = 0x01;
if (fiq_claim(&fiqhandler) == -1)
- panic("Cannot claim FIQ vector\n");
+ panic("Cannot claim FIQ vector");
outb(iobase + fdctl, type->rate);
#ifdef FD_DEBUG
@@ -1026,7 +1026,7 @@ loop:
isa_dmaabort(fdc->sc_drq);
#endif*/
if (fiq_release(&fiqhandler) == -1)
- panic("Cannot release FIQ vector\n");
+ panic("Cannot release FIQ vector");
case SEEKTIMEDOUT:
case RECALTIMEDOUT:
case RESETTIMEDOUT:
@@ -1042,7 +1042,7 @@ loop:
isa_dmaabort(fdc->sc_drq);
#endif*/
if (fiq_release(&fiqhandler) == -1)
- panic("Cannot release FIQ vector\n");
+ panic("Cannot release FIQ vector");
#ifdef FD_DEBUG
fdcstatus(&fd->sc_dev, 7, bp->b_flags & B_READ ?
"read failed" : "write failed");
@@ -1060,7 +1060,7 @@ loop:
fdc->sc_drq);
#endif*/
if (fiq_release(&fiqhandler) == -1)
- panic("Cannot release FIQ vector\n");
+ panic("Cannot release FIQ vector");
if (fdc->sc_errors) {
/* diskerr(bp, "fd", "soft error", LOG_PRINTF,
@@ -1319,7 +1319,7 @@ load_ramdisc_from_floppy(rd, dev)
fdstrategy(bp);
if (biowait(bp))
- panic("Cannot load floppy image\n");
+ panic("Cannot load floppy image");
bcopy((caddr_t)bp->b_data, (caddr_t)rd->rd_addr
+ loop * fd_types[type].sectrac * DEV_BSIZE,
diff --git a/sys/arch/arm32/mainbus/kbd.c b/sys/arch/arm32/mainbus/kbd.c
index 3b85bdba7e8..5dd3ea7ce86 100644
--- a/sys/arch/arm32/mainbus/kbd.c
+++ b/sys/arch/arm32/mainbus/kbd.c
@@ -902,7 +902,7 @@ kbdinit(sc)
sc->sc_ih.ih_level = IPL_TTY;
sc->sc_ih.ih_name = "kbd rx";
if (irq_claim(IRQ_KBDRX, &sc->sc_ih))
- panic("Cannot claim IRQ for kbd%d\n", sc->sc_device.dv_unit);
+ panic("Cannot claim IRQ for kbd%d", sc->sc_device.dv_unit);
modifiers = 0;
kbdsetleds((modifiers >> 3) & 7);
diff --git a/sys/arch/arm32/mainbus/lpt.c b/sys/arch/arm32/mainbus/lpt.c
index 35ff77c3f0d..f379e3a60e3 100644
--- a/sys/arch/arm32/mainbus/lpt.c
+++ b/sys/arch/arm32/mainbus/lpt.c
@@ -324,7 +324,7 @@ lptattach(parent, self, aux)
sc->sc_ih.ih_name = "lpt";
#endif
if (irq_claim(mb->mb_irq, &sc->sc_ih))
- panic("Cannot claim IRQ %d for lpt%d\n", mb->mb_irq, sc->sc_dev.dv_unit);
+ panic("Cannot claim IRQ %d for lpt%d", mb->mb_irq, sc->sc_dev.dv_unit);
}
#if defined(INET) && defined(PLIP)
diff --git a/sys/arch/arm32/mainbus/pms.c b/sys/arch/arm32/mainbus/pms.c
index 8339e1ab8a0..8789074800d 100644
--- a/sys/arch/arm32/mainbus/pms.c
+++ b/sys/arch/arm32/mainbus/pms.c
@@ -267,7 +267,7 @@ pmsattach(parent, self, aux)
#ifdef RC7500
sc->sc_ih.ih_num = IRQ_MSDRX;
#else
- panic("pms: No IRQ specified for pms interrupt handler\n");
+ panic("pms: No IRQ specified for pms interrupt handler");
#endif
}
@@ -302,7 +302,7 @@ pmsopen(dev, flag, mode, p)
sc->lastb = -1;
if (irq_claim(IRQ_INSTRUCT, &sc->sc_ih) == -1)
- panic("Cannot claim MOUSE IRQ\n");
+ panic("Cannot claim MOUSE IRQ");
return 0;
}
@@ -317,7 +317,7 @@ pmsclose(dev, flag, mode, p)
struct pms_softc *sc = pms_cd.cd_devs[PMSUNIT(dev)];
if (irq_release(IRQ_INSTRUCT, &sc->sc_ih) != 0)
- panic("Cannot release MOUSE IRQ\n");
+ panic("Cannot release MOUSE IRQ");
sc->proc = NULL;
sc->sc_state &= ~PMS_OPEN;
diff --git a/sys/arch/arm32/mainbus/qmouse.c b/sys/arch/arm32/mainbus/qmouse.c
index b2a6447a073..14842236425 100644
--- a/sys/arch/arm32/mainbus/qmouse.c
+++ b/sys/arch/arm32/mainbus/qmouse.c
@@ -203,7 +203,7 @@ quadmouseopen(dev, flag, mode, p)
WriteByte(IOMD_T1GO, 0);
if (irq_claim(IRQ_TIMER1, &sc->sc_ih))
- panic("Cannot claim TIMER1 IRQ for quadmouse%d\n", sc->sc_device.dv_unit);
+ panic("Cannot claim TIMER1 IRQ for quadmouse%d", sc->sc_device.dv_unit);
return(0);
}
@@ -220,7 +220,7 @@ quadmouseclose(dev, flag, mode, p)
struct quadmouse_softc *sc = quadmouse_cd.cd_devs[unit];
if (irq_release(IRQ_TIMER1, &sc->sc_ih) != 0)
- panic("Cannot release IRA\n");
+ panic("Cannot release IRA");
sc->proc = NULL;
sc->sc_state = 0;
diff --git a/sys/arch/arm32/mainbus/vidcaudio.c b/sys/arch/arm32/mainbus/vidcaudio.c
index 0529519a9b4..dc215efa31f 100644
--- a/sys/arch/arm32/mainbus/vidcaudio.c
+++ b/sys/arch/arm32/mainbus/vidcaudio.c
@@ -204,7 +204,7 @@ vidcaudio_attach(parent, self, aux)
ag.silence = kmem_alloc(kernel_map, NBPG);
if (ag.silence == NULL)
- panic("vidcaudio: Cannot allocate memory\n");
+ panic("vidcaudio: Cannot allocate memory");
bzero((char *)ag.silence, NBPG);
bcopy((char *)beep_waveform, (char *)ag.silence, sizeof(beep_waveform));
diff --git a/sys/arch/arm32/mainbus/wd.c b/sys/arch/arm32/mainbus/wd.c
index 04b78437d28..c1540197729 100644
--- a/sys/arch/arm32/mainbus/wd.c
+++ b/sys/arch/arm32/mainbus/wd.c
@@ -263,7 +263,7 @@ wdcattach(parent, self, aux)
wdc->sc_ih.ih_level = IPL_BIO;
wdc->sc_ih.ih_name = "wdc";
if (irq_claim(mb->mb_irq, &wdc->sc_ih))
- panic("Cannot claim IRQ %d for wdc%d\n", mb->mb_irq, parent->dv_unit);
+ panic("Cannot claim IRQ %d for wdc%d", mb->mb_irq, parent->dv_unit);
for (wa.wa_drive = 0; wa.wa_drive < 2; wa.wa_drive++)
(void)config_found(self, (void *)&wa, wdprint);
@@ -680,7 +680,7 @@ loop:
/* isa_dmastart(bp->b_flags & B_READ,
bp->b_data + wd->sc_skip,
wd->sc_nbytes, wdc->sc_drq);*/
- panic("wd cannot do DMA yet\n");
+ panic("wd cannot do DMA yet");
break;
case WDM_PIOMULTI:
command = (bp->b_flags & B_READ) ?
@@ -727,7 +727,7 @@ loop:
outsw(wdc->sc_iobase+wd_data, (u_int) bp->b_data + wd->sc_skip,
wd->sc_nbytes >> 1);
else
- panic("wd cannot do 32 bit transfers\n");
+ panic("wd cannot do 32 bit transfers");
/* outsl(wdc->sc_iobase+wd_data, bp->b_data + wd->sc_skip,
wd->sc_nbytes >> 2);*/
}
@@ -783,7 +783,7 @@ wdcintr(arg)
/* Turn off the DMA channel and unbounce the buffer. */
if (wd->sc_mode == WDM_DMA)
- panic("wd cannot do DMA\n");
+ panic("wd cannot do DMA");
/* isa_dmadone(bp->b_flags & B_READ, bp->b_data + wd->sc_skip,
wd->sc_nbytes, wdc->sc_drq);*/
@@ -828,7 +828,7 @@ wdcintr(arg)
insw(wdc->sc_iobase+wd_data, (u_int) bp->b_data + wd->sc_skip,
wd->sc_nbytes >> 1);
else
- panic("wd cannot do 32 bit transfers\n");
+ panic("wd cannot do 32 bit transfers");
/* insl(wdc->sc_iobase+wd_data, bp->b_data + wd->sc_skip,
wd->sc_nbytes >> 2);*/
}
diff --git a/sys/arch/arm32/podulebus/asc.c b/sys/arch/arm32/podulebus/asc.c
index 9514a19d44a..57bc3aade4c 100644
--- a/sys/arch/arm32/podulebus/asc.c
+++ b/sys/arch/arm32/podulebus/asc.c
@@ -207,7 +207,7 @@ ascattach(pdp, dp, auxp)
if (!asc_poll)
#endif
if (irq_claim(IRQ_PODULE, &sc->sc_ih))
- panic("asc: Cannot claim podule IRQ\n");
+ panic("asc: Cannot claim podule IRQ");
/*
* attach all scsi units on us
@@ -258,7 +258,7 @@ asc_dmago(dev, addr, count, flags)
#ifdef DDB
Debugger();
#else
- panic("Hit a brick wall\n");
+ panic("Hit a brick wall");
#endif
#if 0
volatile struct sdmac *sdp;
@@ -373,7 +373,7 @@ asc_dmanext(dev)
#ifdef DDB
Debugger();
#else
- panic("Hit a brick wall\n");
+ panic("Hit a brick wall");
#endif
#if 0
volatile struct sdmac *sdp;
@@ -462,7 +462,7 @@ int kvtop()
#ifdef DDB
Debugger();
#else
- panic("Hit a brick wall\n");
+ panic("Hit a brick wall");
#endif
return(0);
}
diff --git a/sys/arch/arm32/podulebus/if_ea.c b/sys/arch/arm32/podulebus/if_ea.c
index de1d1d3576e..e503d723ee5 100644
--- a/sys/arch/arm32/podulebus/if_ea.c
+++ b/sys/arch/arm32/podulebus/if_ea.c
@@ -508,7 +508,7 @@ ea_claimirq(sc)
dprintf(("ea_claimirq(%d)\n", sc->sc_irq));
if (irq_claim(sc->sc_irq, &sc->sc_ih))
- panic("Cannot install IRQ handler for IRQ %d\n", sc->sc_irq);
+ panic("Cannot install IRQ handler for IRQ %d", sc->sc_irq);
sc->sc_irqclaimed = 1;
}
@@ -526,7 +526,7 @@ ea_releaseirq(sc)
dprintf(("ea_releaseirq(%d)\n", sc->sc_irq));
if (irq_release(sc->sc_irq, &sc->sc_ih))
- panic("Cannot release IRQ handler for IRQ %d\n", sc->sc_irq);
+ panic("Cannot release IRQ handler for IRQ %d", sc->sc_irq);
sc->sc_irqclaimed = 0;
}
diff --git a/sys/arch/arm32/podulebus/if_eb.c b/sys/arch/arm32/podulebus/if_eb.c
index 5075b955fd9..356af878376 100644
--- a/sys/arch/arm32/podulebus/if_eb.c
+++ b/sys/arch/arm32/podulebus/if_eb.c
@@ -518,7 +518,7 @@ eb_claimirq(sc)
dprintf(("eb_claimirq(%d)\n", sc->sc_irq));
if (irq_claim(sc->sc_irq, &sc->sc_ih))
- panic("Cannot install IRQ handler for IRQ %d\n", sc->sc_irq);
+ panic("Cannot install IRQ handler for IRQ %d", sc->sc_irq);
sc->sc_irqclaimed = 1;
}
@@ -536,7 +536,7 @@ eb_releaseirq(sc)
dprintf(("eb_releaseirq(%d)\n", sc->sc_irq));
if (irq_release(sc->sc_irq, &sc->sc_ih))
- panic("Cannot release IRQ handler for IRQ %d\n", sc->sc_irq);
+ panic("Cannot release IRQ handler for IRQ %d", sc->sc_irq);
sc->sc_irqclaimed = 0;
}
diff --git a/sys/arch/arm32/podulebus/if_eh.c b/sys/arch/arm32/podulebus/if_eh.c
index a9b830634b4..4083515545f 100644
--- a/sys/arch/arm32/podulebus/if_eh.c
+++ b/sys/arch/arm32/podulebus/if_eh.c
@@ -309,10 +309,10 @@ ehprobe(parent, match, aux)
char *read_buffer;
MALLOC(test_data, char *, NLEN, M_TEMP, M_NOWAIT);
if (test_data == NULL)
- panic("Cannot allocate temporary memory for buffer test (1)\n");
+ panic("Cannot allocate temporary memory for buffer test (1)");
MALLOC(read_buffer, char *, NLEN, M_TEMP, M_NOWAIT);
if (read_buffer == NULL)
- panic("Cannot allocate temporary memory for buffer test (1)\n");
+ panic("Cannot allocate temporary memory for buffer test (1)");
printf("1.");
diff --git a/sys/arch/arm32/podulebus/if_ie.c b/sys/arch/arm32/podulebus/if_ie.c
index 8ea7517c1de..80d3199d222 100644
--- a/sys/arch/arm32/podulebus/if_ie.c
+++ b/sys/arch/arm32/podulebus/if_ie.c
@@ -452,7 +452,7 @@ void ieattach ( struct device *parent, struct device *self, void *aux )
{
sc->sc_irqmode = 0;
printf ( " POLLED" );
- panic("Cannot install IRQ handler\n");
+ panic("Cannot install IRQ handler");
}
else
{
@@ -1306,7 +1306,7 @@ int ieintr ( void *arg )
if ( in_intr==1 )
{
- panic ( "ie: INTERRUPT REENTERED\n" );
+ panic ( "ie: INTERRUPT REENTERED" );
}
/* Clear the interrrupt */
diff --git a/sys/arch/arm32/podulebus/podulebus.c b/sys/arch/arm32/podulebus/podulebus.c
index 6741da1701c..24e91b9bc9c 100644
--- a/sys/arch/arm32/podulebus/podulebus.c
+++ b/sys/arch/arm32/podulebus/podulebus.c
@@ -198,7 +198,7 @@ podulebusprint(aux, podulebus)
else if (pa->pa_podule->slottype == SLOT_NET)
printf(" [ netslot %d ]:", pa->pa_podule_number - MAX_PODULES);
else
- panic("Invalid slot type\n");
+ panic("Invalid slot type");
}
/* XXXX print flags */
@@ -535,7 +535,7 @@ podulebusattach(parent, self, aux)
poduleirq.ih_name = "podulebus";
if (irq_claim(IRQ_PODULE, &poduleirq))
- panic("Cannot claim IRQ for podulebus%d\n", IRQ_PODULE, parent->dv_unit);
+ panic("Cannot claim IRQ for podulebus%d", IRQ_PODULE, parent->dv_unit);
/* Find out what hardware is bolted on */
diff --git a/sys/arch/arm32/podulebus/ptsc.c b/sys/arch/arm32/podulebus/ptsc.c
index 958bba2e236..ab9b8fbe048 100644
--- a/sys/arch/arm32/podulebus/ptsc.c
+++ b/sys/arch/arm32/podulebus/ptsc.c
@@ -196,7 +196,7 @@ ptscattach(pdp, dp, auxp)
#if PTSC_POLL == 0
if (irq_claim(IRQ_PODULE /*IRQ_EXPCARD0 + sc->sc_specific.sc_podule_number */,
&sc->sc_softc.sc_ih))
- panic("ptsc: Cannot install IRQ handler\n");
+ panic("ptsc: Cannot install IRQ handler");
#endif
printf("\n");
diff --git a/sys/arch/arm32/podulebus/sbic.c b/sys/arch/arm32/podulebus/sbic.c
index b4d5b097f81..22f8a82f252 100644
--- a/sys/arch/arm32/podulebus/sbic.c
+++ b/sys/arch/arm32/podulebus/sbic.c
@@ -2100,7 +2100,7 @@ sbicmsgin(dev)
!(asr & SBIC_ASR_DBR|SBIC_ASR_INT) )
GET_SBIC_asr(regs, asr);
if( asr & SBIC_ASR_DBR )
- panic("msgin: jammed again!\n");
+ panic("msgin: jammed again!");
GET_SBIC_csr(regs, csr);
CSR_TRACE('e',csr,asr,dev->target);
if( csr & 0x07 != MESG_OUT_PHASE ) {