Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!cmcl2!adm!lhc!mimsy!haven.umd.edu!purdue!mentor.cc.purdue.edu!noose.ecn.purdue.edu!samsung!cs.utexas.edu!sun-barr!rutgers!cbmvax!mks From: mks@cbmvax.commodore.com (Michael Sinz) Newsgroups: comp.sys.amiga.programmer Subject: Re: Correct code for turning off 020/030 caches? Message-ID: <22421@cbmvax.commodore.com> Date: 13 Jun 91 22:35:18 GMT References: <1991Jun5.033401.27422@en.ecn.purdue.edu> <1991Jun8.132157.8194@starnet.uucp> <22294@cbmvax.commodore.com> <1991Jun12.063921.12695@starnet.uucp> Reply-To: mks@cbmvax.commodore.com (Michael Sinz) Organization: Commodore, West Chester, PA Lines: 25 In article <1991Jun12.063921.12695@starnet.uucp> sschaem@starnet.uucp (Stephan Schaem) writes: > > I Told to use the 2.0 function call if running on 2.x or higher! > And I TOLD AGAIN to check the CPU type... > And traps are documented and will put you in supervidor mode on any > 680x0. > And my example will work from 1.0 to 2.x and without kickstart. I claim it will not. Try your example while ENFORCER is running. Or when the VBR is at a different location. Note that to read the VBR you must be in supervisor state, so I guess you could do all of that work. Also, to set the trap address in the vector table, you should use the OS since multiple tasks may wish to use the traps. So, in general my friend, that code is unsupported by the OS. So, except for your statement about working without kickstart, I would say *NEVER* use that code if you wish to continue to work. /----------------------------------------------------------------------\ | /// Michael Sinz - Amiga Software Engineer | | /// Operating System Development Group | | /// BIX: msinz UUNET: rutgers!cbmvax!mks | |\\\/// Programming is like sex: | | \XX/ One mistake and you have to support it for life. | \----------------------------------------------------------------------/