Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/ml/cpr_resume_setup.s
          +++ new/usr/src/uts/sun4u/ml/cpr_resume_setup.s
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29      -#if defined(lint)
  30      -#include <sys/types.h>
  31      -#else   /* lint */
  32   27  #include "assym.h"
  33      -#endif  /* lint */
  34   28  
  35   29  #include <sys/asm_linkage.h>
  36   30  #include <sys/machthread.h>             /* for reg definition */
  37   31  
  38   32  #include <sys/machasi.h>                /* sun4u ASI */
  39   33  #include <sys/mmu.h>
  40   34  #include <sys/privregs.h>
  41   35  #include <sys/machparam.h>
  42   36  #include <vm/hat_sfmmu.h>
  43   37  #include <sys/cpr_impl.h>
↓ open down ↓ 11 lines elided ↑ open up ↑
  55   49   *      7. longjmp back to kernel
  56   50   *
  57   51   * registers from cprboot:exit_to_kernel()
  58   52   *      %o0     prom cookie
  59   53   *      %o1     struct sun4u_machdep *mdp
  60   54   *
  61   55   * Any change to this register assignment
  62   56   * require changes to cprboot_srt0.s
  63   57   */
  64   58  
  65      -#if defined(lint)
  66      -
  67      -/* ARGSUSED */
  68      -void
  69      -i_cpr_resume_setup(void *cookie, csu_md_t *mdp)
  70      -{}
  71      -
  72      -/* ARGSUSED */
  73      -int
  74      -i_cpr_cif_wrapper(void *args)
  75      -{ return (0); }
  76      -
  77      -/* ARGSUSED */
  78      -void
  79      -dtlb_wr_entry(uint_t index, tte_t *tte, uint64_t *va_tag)
  80      -{}
  81      -
  82      -/* ARGSUSED */
  83      -void
  84      -itlb_wr_entry(uint_t index, tte_t *tte, uint64_t *va_tag)
  85      -{}
  86      -
  87      -#else   /* lint */
  88      -
  89   59          !
  90   60          ! reserve 4k for cpr tmp stack; tstack should be first,
  91   61          ! any new data symbols should be added after tstack.
  92   62          !
  93   63          .seg    ".data"
  94   64          .global i_cpr_data_page, i_cpr_tstack_size
  95   65          .global i_cpr_orig_cif
  96   66  
  97   67          .align  MMU_PAGESIZE
  98   68  i_cpr_data_page:
↓ open down ↓ 174 lines elided ↑ open up ↑
 273  243          srlx    %o4, MMU_PAGESHIFT, %o4         ! clear any page offset
 274  244          sllx    %o4, MMU_PAGESHIFT, %o4         ! o4 = va_tag & PAGEMASK
 275  245          set     MMU_TAG_ACCESS, %o3
 276  246          stxa    %o4, [%o3]ASI_IMMU
 277  247          stxa    %o5, [%o0]ASI_ITLB_ACCESS
 278  248          membar  #Sync
 279  249          retl
 280  250          nop
 281  251          SET_SIZE(itlb_wr_entry)
 282  252  
 283      -#endif /* !lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX