lkml.org 
[lkml]   [1999]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: mmap from 0xFFFF0000 -> 0xFFFFFFFF does not work, why?!
On Fri, 7 May 1999, Matti Aarnio wrote:
[SNIPPED]
> >
> > Because the pentium processors have caches it is required to disable them
> > before access the flash memory (you know, time critical access). So i include
> > some assembler code that use the %cr0 pentium processor register but i get
> > segfaults while executing this source line :( How can i disable the cpu cache
> > withou using the assembler code within the user application ?! Of
> > course, only root can do that.
>
> "root" isn't powerfull enough, those must be executed
> in the supervisor mode -- within the kernel, that is.
> Another reason to go via device driver kernel module.
>
Will iopl(3) work for this?
Certainly a device-driver is the final solution, but he
may be able to test most things this way.

Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.2.6 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.043 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site