Back to index

glibc  2.9
Functions
brdinit.c File Reference
#include <standalone.h>
#include "i960ca.h"

Go to the source code of this file.

Functions

void _Board_Initialize ()

Function Documentation

void _Board_Initialize ( void  )

Definition at line 31 of file brdinit.c.

{
  struct i80960ca_prcb   *prcb;     /* ptr to processor control block */
  struct i80960ca_ctltbl *ctl_tbl;  /* ptr to control table */

  static inline struct i80960ca_prcb *get_prcb()
  { register struct i80960ca_prcb *_prcb = 0;
    asm volatile( "calls 5; \
                   mov   g0,%0" \
                   : "=d" (_prcb) \
                   : "0" (_prcb) );
    return ( _prcb );
  }

  prcb    = get_prcb ();
  ctl_tbl = prcb->control_tbl;

  /*   The following configures the data breakpoint (which must be set
   *   before this is executed) to break on writes only.
   */

  ctl_tbl->bpcon &= ~0x00cc0000;
  reload_ctl_group (6);

   /*  bit 31 of the Register Cache Control can be set to
    *  enable an alternative caching algorithm.  It does
    *  not appear to help our applications.
    */

   /* Configure Number of Register Caches */

  prcb->reg_cache_cfg = 8;
  soft_reset (prcb);
}