Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Oct 2000 10:34:41 -0700 (PDT)
From:      Matthew Jacob <mjacob@feral.com>
To:        John Baldwin <jhb@FreeBSD.ORG>
Cc:        arch@FreeBSD.ORG
Subject:   when is it safe to call msleep?
Message-ID:  <Pine.LNX.4.21.0010121032050.2654-100000@zeppo.feral.com>
In-Reply-To: <XFMail.001009123032.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

I've been fooling around with the new lock stuff and trying to convert things
over, and I called msleep with an initialized MTX_DEF lock held (on my
pc164) during probes, but I got a panic:

fatal kernel trap:

    trap entry = 0x2 (memory management fault)
    a0         = 0x0
    a1         = 0x1
    a2         = 0x0
    pc         = 0xfffffc000051d638
    ra         = 0xfffffc000051d630
    curproc    = 0xfffffc00005efe60
        pid = 0, comm = swapper

Stopped at      mtx_exit_hard+0x118:    ldq     t1,0(s1) <0x0>  <t1=0xfffffc0000
604b18,s1=0x0>
db> t
mtx_exit_hard() at mtx_exit_hard+0x118
msleep() at msleep+0x130
isp_mboxcmd() at isp_mboxcmd+0x284
isp_reset() at isp_reset+0xd80
isp_pci_attach() at isp_pci_attach+0x14dc
device_probe_and_attach() at device_probe_and_attach+0xcc
bus_generic_attach() at bus_generic_attach+0x28
device_probe_and_attach() at device_probe_and_attach+0xcc
bus_generic_attach() at bus_generic_attach+0x28
device_probe_and_attach() at device_probe_and_attach+0xcc
bus_generic_attach() at bus_generic_attach+0x28
cia_attach() at cia_attach+0x1f0
device_probe_and_attach() at device_probe_and_attach+0xcc
root_bus_configure() at root_bus_configure+0x38
configure() at configure+0x40
mi_startup() at mi_startup+0xf4
locorestart() at locorestart+0x6c

Eh?

-matt




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0010121032050.2654-100000>