Print this page
cpuid for ARMv7

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/armv7/os/startup.c
          +++ new/usr/src/uts/armv7/os/startup.c
↓ open down ↓ 86 lines elided ↑ open up ↑
  87   87   */
  88   88  long page_hashsz;               /* Size of page hash table (power of two) */
  89   89  unsigned int page_hashsz_shift; /* log2(page_hashsz) */
  90   90  struct page *pp_base;           /* Base of initial system page struct array */
  91   91  struct page **page_hash;        /* Page hash table */
  92   92  pad_mutex_t *pse_mutex;         /* Locks protecting pp->p_selock */
  93   93  size_t pse_table_size;          /* Number of mutexes in pse_mutex[] */
  94   94  int pse_shift;                  /* log2(pse_table_size) */
  95   95  
  96   96  /*
  97      - * Cache size information filled in via cpuid and startup_cache()
       97 + * Cache size information filled in via cpuid.
  98   98   */
  99      -int armv6_cachesz;              /* Total size of the l1 cache */
 100      -int armv6_cache_assoc;          /* L1 cache associativity */
 101      -int armv6_l2cache_linesz;       /* Size of a line in the l2 cache */
 102      -int armv6_l2cache_size;         /* Total size of the l2 cache */
       99 +int l2cache_sz;
      100 +int l2cache_linesz ;
      101 +int l2cache_assoc;
 103  102  
 104  103  /*
 105  104   * Do basic set up.
 106  105   */
 107  106  static void
 108  107  startup_init()
 109  108  {
 110  109          if (BOP_GETPROPLEN(bootops, "prom_debug") >= 0) {
 111  110                  ++prom_debug;
 112  111                  prom_printf("prom_debug found in boot enviroment");
↓ open down ↓ 51 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX