From owner-freebsd-hackers Tue Jan 16 14:29:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from vieo.com (vieo.com [216.30.79.131]) by hub.freebsd.org (Postfix) with ESMTP id 730C437B404 for ; Tue, 16 Jan 2001 14:29:15 -0800 (PST) Received: (from johng@localhost) by vieo.com (8.11.2/8.11.2) id f0GMTEH54921 for freebsd-hackers@FreeBSD.ORG; Tue, 16 Jan 2001 16:29:14 -0600 (CST) (envelope-from johng) Date: Tue, 16 Jan 2001 16:29:14 -0600 (CST) From: John Gregor Message-Id: <200101162229.f0GMTEH54921@vieo.com> To: freebsd-hackers@FreeBSD.ORG Subject: SIGBUS when writing to mmap'd device memory... Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG All, I'm trying to mmap() a region of device memory into user space. When the user app tries to write to the page, I'm getting a SIGBUS. My code in foo_mmap() looks essentially like: ... voff = bhandle + client_offset; poff = vtophys(voff); return i386_btop(poff); I know that voff is fine as I can write in the kernel to that address and the right things happen. Any ideas? Anything I can do to help narrow down the cause? Thanks, -JohnG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message