home *** CD-ROM | disk | FTP | other *** search
- On Dec 16, 10:58pm, Markus Wild wrote:
- > > Is there any provision in NetBSD for a user level program to push the
- > > data and instruction caches? It looks like the shared library initialization
- > > is going to need something like this to work correctly.
- >
- > I think the hp300 port had/has a cachectl system call, that allows
- > such things (mainly to control the huge VAC on some hp300). We'll
- > probably need such a thing too? Unfortunately, that's an area I can't
- > test at all...
-
- I remember seeing some references to flushing the external cache, but it
- was from withing the kernel (called from the disk driver, I think). Ah, I
- just searched through some of the hp300 port and found a comment that
- trap 12 is the cachectl "syscall" for both HPUX and BSD. It appears that
- the same code is in the amiga code: locore.s has trap12 call cachectl()
- in amiga/sys_machdep.c, which makes the appropriate calls to the routines
- in locore.s that should work on the 68040. All I need now is to have the
- shared libraries do the appropriate "syscall".
-
- Michael
-
- --
- Michael L. Hitch INTERNET: osymh@montana.edu
- Computer Consultant BITNET: OSYMH@MTSUNIX1.BITNET
- Office of Systems and Computing Services
- Montana State University Bozeman, MT USA
-
-