home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / netbsd / docs / mailinglist-archive / 1993-12 / text0413.txt < prev    next >
Encoding:
Text File  |  1993-06-25  |  1.2 KB  |  28 lines

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