Print this page
8956 Implement KPTI
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
9210 remove KMDB branch debugging support
9211 ::crregs could do with cr2/cr3 support
9209 ::ttrace should be able to filter by thread
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>

@@ -1,9 +1,11 @@
 \
 \ Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 \ Use is subject to license terms.
 \
+\ Copyright 2018 Joyent, Inc.
+\
 \ CDDL HEADER START
 \
 \ The contents of this file are subject to the terms of the
 \ Common Development and Distribution License (the "License").
 \ You may not use this file except in compliance with the License.

@@ -19,16 +21,12 @@
 \ fields enclosed by brackets "[]" replaced with your own identifying
 \ information: Portions Copyright [yyyy] [name of copyright owner]
 \
 \ CDDL HEADER END
 \
-\ ident "%Z%%M% %I%     %E% SMI"
-\
 \ CPU-save structure offsets for use in assembly code.
 \
-\ Keep in sync with kdi_state.h
-\
 
 #include <sys/cpuvar.h>
 #include <sys/kdi_impl.h>
 
 kdi_memrange_t  MR_SIZE

@@ -45,40 +43,26 @@
 kdi_drreg_t
                 dr_ctl
                 dr_stat
                 dr_addr
 
-kdi_msr_t       MSR_SIZE
-                msr_num
-                msr_type
-                _u._msr_valp                    MSR_VALP
-                _u._msr_val                     MSR_VAL
-
 kdi_cpusave_t   KRS_SIZE
                 krs_gregs
                 krs_dr
                 krs_dr.dr_ctl                   KRS_DRCTL
                 krs_dr.dr_stat                  KRS_DRSTAT
                 krs_gdt
                 krs_idt
                 krs_cr0
-                krs_msr
                 krs_cpu_state
                 krs_curcrumbidx
                 krs_curcrumb
                 krs_crumbs
 
-cpu
-                cpu_id
-
 greg_t          KREG_SIZE
 
-#if defined(__amd64)
 \#define        REG_SHIFT               3
-#else
-\#define        REG_SHIFT               2
-#endif
 
 \#define        DRADDR_IDX(num)         _CONST(_MUL(num, DR_ADDR_INCR))
 \#define        DRADDR_OFF(num)         _CONST(DRADDR_IDX(num) + DR_ADDR)
 \#define        KRS_DROFF(num)          _CONST(DRADDR_OFF(num) + KRS_DR)
 \#define        REG_OFF(reg)            _CONST(_CONST(reg) << REG_SHIFT)