[Contents] [index] [Help] [Retrace] [browse <] [Browse >]

Exec provides a number of to control the processor mode and, if available,
the caches.  All these functions work independently of the specific M68000
family processor type.  This enables you to write code which correctly
controls the state of both the MC68000 and the MC68040.  Along with
processor mode and cache control, functions are provided to obtain
information about the condition code register (CCR) and status register
(SR).  No functions are provided to control a paged memory management unit
(PMMU) or floating point unit (FPU).


          Table 21-2: Processor and Cache Control Functions
   __________________________________________________________________
  |                                                                  |
  |     Function              Description                            |
  |==================================================================|
  |         getcc()  get processor condition codes.                  |
  |         setsr()  get/set processor status register.              |
  |    superstate()  set supervisor mode with user stack.            |
  |    supervisor()  execute a short supervisor mode function.       |
  |     userstate()  return to user mode with user stack.            |
  |------------------------------------------------------------------|
  |   cachecleare()  flush cpu instruction and/or data caches (v37). |
  |   cacheclearu()  flush cpu instruction and data caches (v37).    |
  |  cachecontrol()  global cache control (v37).                     |
  |  cachepostdma()  perform actions prior to hardware dma (v37).    |
  |   cachepredma()  perform actions after hardware dma (v37).       |
  |__________________________________________________________________|


 supervisor mode    condition code register    dma cache functions 
 status register    cache functions            the 68040 and cpu caches