On Thursday, September 16, 2004 8:52 am, Alan Cox wrote: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.
On Iau, 2004-09-16 at 17:09, Jesse Barnes wrote:
I think Christoph already looked at that. And HPET doesn't provide mmapIt can do but that assumes nothing else is mapped into the same page
functionality, does it? I.e. allow a userspace program to dereference
the counter register directly?
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