Re: device driver for the SGI system clock, mmtimer
From: Robert Picco
Date: Thu Sep 16 2004 - 13:13:35 EST
Jesse Barnes wrote:
On Thursday, September 16, 2004 8:52 am, Alan Cox wrote:
On Iau, 2004-09-16 at 17:09, Jesse Barnes wrote:
I think Christoph already looked at that. And HPET doesn't provide mmap
functionality, does it? I.e. allow a userspace program to dereference
the counter register directly?
It can do but that assumes nothing else is mapped into the same page
that would be harmful or reveal information that should not be revealed
etc..
And what about the register layout? mmtimer makes sure that the register is
on a page by itself before it allows the mmap, and only exports the counter
register itself. Can hpet do that?
Jesse
The hpet driver checks that the mapping is page aligned. It's up to the
platform to provide this alignment. It's also dependent on the platform
for what resides in the page. Also the configured page size could
impact what is within the page.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/