Print this page
cpuid for ARMv7

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/armv7/os/bsmdep.c
          +++ new/usr/src/uts/armv7/os/bsmdep.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * Copyright (c) 2014 Joyent, Inc.  All rights reserved.
  14   14   */
  15   15  #include <sys/types.h>
  16   16  #include <sys/time.h>
  17   17  
  18   18  /*
  19   19   * Board Specific Module dependencies.
  20   20   */
  21   21  
  22   22  /*
  23      - * In addition to the entry points defined below, a board is also required to
  24      - * implement the following functions:
  25      - *
  26      - * void armv6_bsmdep_l2cacheinfo(void);
  27      - *
  28      - *      The board should set the value of 'armv6_l2cache_linesz'
  29      - *
  30      - * XXX Some day we should make all of this into modules that can be loaded early
  31      - * by unix so that way we can have one kernel for all boards...
  32      - */
  33      -
  34      -/*
  35   23   * While we would like to have a single consistent hrtime function across all of
  36      - * the ARMv6 implementations, the chip itself leaves us rather lacking. As such,
       24 + * the ARMv7 implementations, the chip itself leaves us rather lacking. As such,
  37   25   * we have to rely on each ARM board or implementation to do the work for us,
  38   26   * alas.
  39   27   */
  40   28  static hrtime_t
  41   29  dummy_hrtime(void)
  42   30  {
  43   31          return (0);
  44   32  }
  45   33  
  46   34  /*
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX