Date: Tue, 16 Jan 2001 16:29:14 -0600 (CST) From: John Gregor <johng@vieo.com> To: freebsd-hackers@FreeBSD.ORG Subject: SIGBUS when writing to mmap'd device memory... Message-ID: <200101162229.f0GMTEH54921@vieo.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101162229.f0GMTEH54921>