Article View: gnu.gcc.help
Article #51581Re: 680x0 clr instruction
From: Mike Park
Date: Wed, 05 May 1993 14:57
Date: Wed, 05 May 1993 14:57
18 lines
1449 bytes
1449 bytes
derway@cco.caltech.edu (D. Erway) writes: >The original 68000 clr instruction would do a read before write. This lead to >headaches in device driver code, where reading an address does something. Does >anyone know if the latter members of this family continue to do this, or if >they gave up the stupid useless bus cycle? I am specifically interested in >68030. The same problem still exists in the 68030. My suggestion to you is to clear variables by assigning from a zero variable. ie: static int zero = 0; int* csr = 0xfff; /* special hardware register address */ *csr = zero; /* forces write; don't use *csr = 0; */ -- Mike Park mikep@dragoman.com (NeXT Mail OK)
Technical Details
Message-ID:
<1sa5sk$nlu@hack.dragoman.com>Path:
arc1-ca.pugleaf.net!gmd.de!ira.uka.de!sol.ctr.columbia.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!usenet.ee.pdx.edu!fastrac.llnl.gov!wsrcc.com!hack.dragoman.com!hack.dragoman.com!not-for-mailReferences:
<1s70qhINNruc@gap.caltech.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,52499d5dab982a68 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-05-05 22:12:57 PST Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!sol.ctr.columbia.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!usenet.ee.pdx.edu!fastrac.llnl.gov!wsrcc.com!hack.dragoman.com!hack.dragoman.com!not-for-mail From: mikep@hack.dragoman.com (Mike Park) Newsgroups: gnu.gcc.help Subject: Re: 680x0 clr instruction Message-ID: <1sa5sk$nlu@hack.dragoman.com> Date: 5 May 93 14:57:56 GMT Article-I.D.: hack.1sa5sk$nlu References: <1s70qhINNruc@gap.caltech.edu> Distribution: gnu Organization: Hoopy Froods, Inc. Lines: 18 NNTP-Posting-Host: hack.dragoman.com