Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!apple!ames!ncar!boulder!sunybcs!tahoe!heather!bruce From: bruce@heather.pooh.com (Bruce Robertson) Newsgroups: comp.sys.m68k Subject: Re: MC68030 data cache question. Message-ID: Date: 1 Jul 89 01:42:02 GMT References: <14803@watdragon.waterloo.edu> Sender: bruce@pooh.com Organization: Hundred Acre Software, Reno, NV Lines: 19 In-reply-to: dvadura@watdragon.waterloo.edu's message of 29 Jun 89 18:00:18 GMT Two things. First, if your sample code really looks like that, the problem is that you're fetching a value from location 0x909 and stashing it in %cacr. You really want to do this: movl &0x909, %d0 movl %d0, %cacr Second, here is a slightly better way to do it: mov.l %cacr,%d0 or.w &0x909,%d0 mov.l %d0,%cacr The above code is straight out of the UNIX kernel I did for the 68030. -- Bruce Robertson Hundred Acre Software, Reno, NV Domain: bruce@pooh.com UUCP: ...!uunet!tahoe.unr.edu!heather!bruce