Print this page
OS-7753 THREAD_KPRI_RELEASE does nothing of the sort
Reviewed by: Bryan Cantrill <bryan@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4/ml/offsets.in
          +++ new/usr/src/uts/sun4/ml/offsets.in
   1    1  \ offsets.in: input file to produce assym.h using the stabs program
   2    2  \ Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
   3    3  \ Copyright 2012 Garrett D'Amore <garett@damore.org>.  All rights reserved.
        4 +\ Copyright 2019 Joyent, Inc.
   4    5  \
   5    6  \ CDDL HEADER START
   6    7  \
   7    8  \ The contents of this file are subject to the terms of the
   8    9  \ Common Development and Distribution License (the "License").
   9   10  \ You may not use this file except in compliance with the License.
  10   11  \
  11   12  \ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  12   13  \ or http://www.opensolaris.org/os/licensing.
  13   14  \ See the License for the specific language governing permissions
↓ open down ↓ 3 lines elided ↑ open up ↑
  17   18  \ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  18   19  \ If applicable, add the following below this CDDL HEADER, with the
  19   20  \ fields enclosed by brackets "[]" replaced with your own identifying
  20   21  \ information: Portions Copyright [yyyy] [name of copyright owner]
  21   22  \
  22   23  \ CDDL HEADER END
  23   24  \
  24   25  \
  25   26  \
  26   27  \ Guidelines:
  27      -\ 
       28 +\
  28   29  \ A blank line is required between structure/union/intrinsic names.
  29      -\ 
       30 +\
  30   31  \ The general form is:
  31      -\ 
       32 +\
  32   33  \       name size_define [shift_define]
  33   34  \               member_name [offset_define]
  34   35  \       {blank line}
  35      -\ 
       36 +\
  36   37  \ If offset_define is not specified then the member_name is
  37   38  \ converted to all caps and used instead.  If the size of an item is
  38   39  \ a power of two then an optional shift count may be output using
  39   40  \ shift_define as the name but only if shift_define was specified.
  40      -\ 
       41 +\
  41   42  \ Arrays cause stabs to automatically output the per-array-item increment
  42   43  \ in addition to the base address:
  43      -\ 
       44 +\
  44   45  \        foo FOO_SIZE
  45   46  \               array   FOO_ARRAY
  46      -\ 
       47 +\
  47   48  \ results in:
  48      -\ 
       49 +\
  49   50  \       #define FOO_ARRAY       0x0
  50   51  \       #define FOO_ARRAY_INCR  0x4
  51      -\ 
       52 +\
  52   53  \ which allows \#define's to be used to specify array items:
  53      -\ 
       54 +\
  54   55  \       #define FOO_0   (FOO_ARRAY + (0 * FOO_ARRAY_INCR))
  55   56  \       #define FOO_1   (FOO_ARRAY + (1 * FOO_ARRAY_INCR))
  56   57  \       ...
  57   58  \       #define FOO_n   (FOO_ARRAY + (n * FOO_ARRAY_INCR))
  58      -\ 
       59 +\
  59   60  \ There are several examples below (search for _INCR).
  60      -\ 
       61 +\
  61   62  \ There is currently no manner in which to identify "anonymous"
  62   63  \ structures or unions so if they are to be used in assembly code
  63   64  \ they must be given names.
  64      -\ 
       65 +\
  65   66  \ When specifying the offsets of nested structures/unions each nested
  66   67  \ structure or union must be listed separately then use the
  67   68  \ "\#define" escapes to add the offsets from the base structure/union
  68   69  \ and all of the nested structures/unions together.  See the many
  69   70  \ examples already in this file.
  70   71  
  71   72  #ifndef _GENASSYM
  72   73  #define _GENASSYM
  73   74  #endif
  74   75  
↓ open down ↓ 83 lines elided ↑ open up ↑
 158  159          t_preempt
 159  160          t_proc_flag
 160  161          t_startpc
 161  162          t_sysnum
 162  163          _tu._t_post_sys_ast     T_POST_SYS_AST
 163  164          _tu._ts._t_astflag      T_ASTFLAG
 164  165          _tu._ts._t_sig_check    T_SIG_CHECK
 165  166          _tu._ts._t_post_sys     T_POST_SYS
 166  167          _tu._ts._t_trapret      T_TRAPRET
 167  168          t_preempt_lk
 168      -        t_kpri_req
 169  169          t_lockstat
 170  170          t_pil
 171  171          t_intr_start
 172  172          _tdu._tds._t_dtrace_on  T_DTRACE_ON
 173  173          _tdu._tds._t_dtrace_step T_DTRACE_STEP
 174  174          _tdu._tds._t_dtrace_ret T_DTRACE_RET
 175  175          _tdu._tds._t_dtrace_ast T_DTRACE_AST
 176  176          _tdu._t_dtrace_ft       T_DTRACE_FT
 177  177          t_dtrace_npc
 178  178          t_copyops
↓ open down ↓ 188 lines elided ↑ open up ↑
 367  367          cpu_m.tmp1                      CPU_TMP1
 368  368          cpu_m.tmp2                      CPU_TMP2
 369  369          cpu_m.tmp3                      CPU_TMP3
 370  370          cpu_m.tmp4                      CPU_TMP4
 371  371          cpu_m.ofd                       CPU_OFD
 372  372          cpu_m.lfd                       CPU_LFD
 373  373          cpu_m.otd                       CPU_OTD
 374  374          cpu_m.mpcb                      CPU_MPCB
 375  375          cpu_m.cpu_private               CPU_PRIVATE
 376  376          cpu_m.cpu_mmu_idx               CPU_MMU_IDX
 377      -        cpu_m.cpu_mmu_ctxp              CPU_MMU_CTXP
      377 +        cpu_m.cpu_mmu_ctxp              CPU_MMU_CTXP
 378  378          cpu_m.ptl1_state                CPU_PTL1
 379  379  
 380  380  cpu_core_t      CPU_CORE_SIZE   CPU_CORE_SHIFT
 381  381          cpuc_dtrace_flags
 382  382          cpuc_dtrace_illval
 383  383  
 384  384  cpuset_t        CPUSET_SIZE
 385  385  
 386  386  ptl1_state      PTL1_STATE_SIZE
 387  387          ptl1_regs
↓ open down ↓ 162 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX