home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.m68k
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!n8emr!ka8lvz!lydic
- From: lydic@ka8lvz.uucp (lydic)
- Subject: Re: Which processor?
- Message-ID: <1992Aug31.044532.570@ka8lvz.uucp>
- Keywords: processor, cache
- Organization: organization
- References: <6040@pdxgate.UUCP>
- Date: Mon, 31 Aug 1992 04:45:32 GMT
- Lines: 20
-
- In article <6040@pdxgate.UUCP> idr@rigel.cs.pdx.edu (Ian D Romanick) writes:
- >How does one go about detmining what processor you are running on? On my
- >machine type only 68000, '010, '020, '030, and '040 are available and I need
- >to be able to know which I'm running on. I also need to know how to shut off
- >the caches on the before mentioned processors. I've though about using an
- >illegal instruction trap, but I'm sure there has to be a more elegent method.
- >If there's a FAQ for this, sorry, but point me in its direction. :)
-
- The only way I know is to generate an illegal instruction or an address
- error (except '20 & '30) and look at the stack frame size. Actually pretty
- easy to do, although not very elegant.
-
- -.. .
-
- John W. Lydic Jr lydic@ka8lvz.cmhnet.org
-
- "We live beyond our means, on other peoples dreams, and that's succeeding"
- Janis Ian 'Between the lines'
- ... -.-
-
-