Re: SIGBUS when writing to mmap'd device memory...

2001-01-17 Thread John Gregor

All,

Never mind, problem found.  A logic bug was preventing me from
setting PROT_READ which was necessary even though these are
write-only registers.

Thanks,
-JohnG


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



SIGBUS when writing to mmap'd device memory...

2001-01-16 Thread John Gregor

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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message