Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/boot/boot_gdt.s
          +++ new/usr/src/uts/i86pc/boot/boot_gdt.s
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  
  28      -#if defined(__lint)
  29      -#pragma pack(1)
  30      -struct {
  31      -        uint16_t limit_low;
  32      -        uint16_t base_low;
  33      -        uint8_t base_middle;
  34      -        uint8_t attr;
  35      -        uint8_t attr_and_limit;
  36      -        uint8_t base_high;
  37      -} global_descriptor_table[8];
  38      -struct {
  39      -        uint16_t limit; /* sizeof (global_descriptor_table) - 1 */
  40      -        void     *base; /* &global_descriptor_table */
  41      -} gdt_info;
  42      -#pragma pack()
  43      -
  44      -#else   /* __lint */
  45      -
  46   28          .align 16
  47   29          .data
  48   30          /*
  49   31           * This must remain in sync with the entries in intel/sys/gdt.h; in
  50   32           * particular kmdb uses B64CODE_SEL or B32CODE_SEL in perpetuity for
  51   33           * its IDT entries (they're copied to the kernel's GDT in init_idt()).
  52   34           */
  53   35  
  54   36  global_descriptor_table:
  55   37          .long   0
↓ open down ↓ 80 lines elided ↑ open up ↑
 136  118  
 137  119  fake_cpu:
 138  120          .4byte 0
 139  121          .4byte 0
 140  122          .4byte 0
 141  123          .globl fake_cpu_ptr
 142  124  fake_cpu_ptr:
 143  125          .4byte 0
 144  126          .skip 0x6c0, 0
 145  127  
 146      -#endif  /* __lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX