Print this page
OS-5510 remove lwp_brand_syscall_fast handler
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
OS-5192 need faster clock_gettime
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
Reviewed by: Ryan Zezeski <ryan@zinascii.com>
OS-4961 lxbrand want fasttrap-like brand hook
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
OS-4129 lxbrand should not abuse p_brand_data for storing exit signal
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
OS-3561 lxbrand emulation library should execute on alternate stack
OS-3558 lxbrand add support for full in-kernel syscall handling
OS-3545 lx_syscall_regs should not walk stack
OS-3868 many LTP testcases now hang
OS-3901 lxbrand lx_recvmsg fails to translate control messages when 64-bit
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Bryan Cantrill <bryan@joyent.com>
OS-3149 lx brand always sends SIGCHLD to parent processes, regardless of how clone was invoked
OS-2887 lxbrand add WALL, WCLONE, WNOTHREAD support to waitid
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
   1 \
   2 \ Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
   3 \ Copyright 2012 Garrett D'Amore <garrett@damore.org>.  All rights reserved.

   4 \
   5 \ CDDL HEADER START
   6 \
   7 \ The contents of this file are subject to the terms of the
   8 \ Common Development and Distribution License (the "License").
   9 \ You may not use this file except in compliance with the License.
  10 \
  11 \ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  12 \ or http://www.opensolaris.org/os/licensing.
  13 \ See the License for the specific language governing permissions
  14 \ and limitations under the License.
  15 \
  16 \ When distributing Covered Code, include this CDDL HEADER in each
  17 \ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  18 \ If applicable, add the following below this CDDL HEADER, with the
  19 \ fields enclosed by brackets "[]" replaced with your own identifying
  20 \ information: Portions Copyright [yyyy] [name of copyright owner]
  21 \
  22 \ CDDL HEADER END
  23 \


  44 #include <sys/tss.h>
  45 #include <sys/privregs.h>
  46 #include <sys/segments.h>
  47 #include <sys/devops.h>
  48 #include <sys/ddi_impldefs.h>
  49 #include <vm/as.h>
  50 #include <sys/avintr.h>
  51 #include <sys/pic.h>
  52 #include <sys/rm_platter.h>
  53 #include <sys/stream.h>
  54 #include <sys/strsubr.h>
  55 #include <sys/sunddi.h>
  56 #include <sys/modctl.h>
  57 #include <sys/traptrace.h>
  58 #include <sys/ontrap.h>
  59 #include <sys/lgrp.h>
  60 #include <sys/dtrace.h>
  61 #include <sys/brand.h>
  62 #include <sys/fastboot.h>
  63 #include <sys/cpr_wakecode.h>

  64 
  65 proc            PROCSIZE
  66         p_link
  67         p_next
  68         p_child
  69         p_sibling
  70         p_sig
  71         p_flag
  72         p_tlist
  73         p_as
  74         p_lockp
  75         p_user
  76         p_ldt
  77         p_ldt_desc
  78         p_model
  79         p_pctx
  80         p_agenttp
  81         p_zone
  82         p_brand
  83         p_brand_data


 133 
 134 as
 135         a_hat
 136 
 137 user    USIZEBYTES
 138         u_comm
 139         u_signal
 140 
 141 _label_t
 142         val     LABEL_VAL
 143 
 144 \#define        LABEL_PC        LABEL_VAL
 145 \#define        LABEL_SP        _CONST(LABEL_VAL + LABEL_VAL_INCR)
 146 \#define        T_PC            _CONST(T_LABEL + LABEL_PC)
 147 \#define        T_SP            _CONST(T_LABEL + LABEL_SP)
 148 
 149 _klwp
 150         lwp_thread
 151         lwp_procp
 152         lwp_brand

 153         lwp_eosys
 154         lwp_regs
 155         lwp_arg
 156         lwp_ap
 157         lwp_cursig
 158         lwp_state
 159         lwp_mstate.ms_acct      LWP_MS_ACCT
 160         lwp_mstate.ms_prev      LWP_MS_PREV
 161         lwp_mstate.ms_start     LWP_MS_START
 162         lwp_mstate.ms_state_start LWP_MS_STATE_START
 163         lwp_pcb
 164         lwp_ru.sysc             LWP_RU_SYSC
 165 
 166 \#define        LWP_ACCT_USER   _CONST(LWP_MS_ACCT + _MUL(LMS_USER, LWP_MS_ACCT_INCR))
 167 \#define        LWP_ACCT_SYSTEM _CONST(LWP_MS_ACCT + _MUL(LMS_SYSTEM, LWP_MS_ACCT_INCR))
 168 
 169 fpu_ctx
 170         fpu_regs                FPU_CTX_FPU_REGS
 171         fpu_flags               FPU_CTX_FPU_FLAGS
 172         fpu_xsave_mask          FPU_CTX_FPU_XSAVE_MASK


 450         wc_idt_limit    WC_IDT
 451         wc_idt_base
 452         wc_tr
 453         wc_ldt
 454         wc_eflags
 455         wc_ebx
 456         wc_edi
 457         wc_esi
 458         wc_ebp
 459         wc_esp
 460         wc_esp
 461         wc_ss
 462         wc_cs
 463         wc_ds
 464         wc_es
 465         wc_cpu_id
 466         wc_saved_stack
 467 
 468 wc_wakecode
 469         wc_cpu


   1 \
   2 \ Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
   3 \ Copyright 2012 Garrett D'Amore <garrett@damore.org>.  All rights reserved.
   4 \ Copyright 2016 Joyent, Inc.
   5 \
   6 \ CDDL HEADER START
   7 \
   8 \ The contents of this file are subject to the terms of the
   9 \ Common Development and Distribution License (the "License").
  10 \ You may not use this file except in compliance with the License.
  11 \
  12 \ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  13 \ or http://www.opensolaris.org/os/licensing.
  14 \ See the License for the specific language governing permissions
  15 \ and limitations under the License.
  16 \
  17 \ When distributing Covered Code, include this CDDL HEADER in each
  18 \ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  19 \ If applicable, add the following below this CDDL HEADER, with the
  20 \ fields enclosed by brackets "[]" replaced with your own identifying
  21 \ information: Portions Copyright [yyyy] [name of copyright owner]
  22 \
  23 \ CDDL HEADER END
  24 \


  45 #include <sys/tss.h>
  46 #include <sys/privregs.h>
  47 #include <sys/segments.h>
  48 #include <sys/devops.h>
  49 #include <sys/ddi_impldefs.h>
  50 #include <vm/as.h>
  51 #include <sys/avintr.h>
  52 #include <sys/pic.h>
  53 #include <sys/rm_platter.h>
  54 #include <sys/stream.h>
  55 #include <sys/strsubr.h>
  56 #include <sys/sunddi.h>
  57 #include <sys/modctl.h>
  58 #include <sys/traptrace.h>
  59 #include <sys/ontrap.h>
  60 #include <sys/lgrp.h>
  61 #include <sys/dtrace.h>
  62 #include <sys/brand.h>
  63 #include <sys/fastboot.h>
  64 #include <sys/cpr_wakecode.h>
  65 #include <sys/comm_page.h>
  66 
  67 proc            PROCSIZE
  68         p_link
  69         p_next
  70         p_child
  71         p_sibling
  72         p_sig
  73         p_flag
  74         p_tlist
  75         p_as
  76         p_lockp
  77         p_user
  78         p_ldt
  79         p_ldt_desc
  80         p_model
  81         p_pctx
  82         p_agenttp
  83         p_zone
  84         p_brand
  85         p_brand_data


 135 
 136 as
 137         a_hat
 138 
 139 user    USIZEBYTES
 140         u_comm
 141         u_signal
 142 
 143 _label_t
 144         val     LABEL_VAL
 145 
 146 \#define        LABEL_PC        LABEL_VAL
 147 \#define        LABEL_SP        _CONST(LABEL_VAL + LABEL_VAL_INCR)
 148 \#define        T_PC            _CONST(T_LABEL + LABEL_PC)
 149 \#define        T_SP            _CONST(T_LABEL + LABEL_SP)
 150 
 151 _klwp
 152         lwp_thread
 153         lwp_procp
 154         lwp_brand
 155         lwp_brand_syscall
 156         lwp_eosys
 157         lwp_regs
 158         lwp_arg
 159         lwp_ap
 160         lwp_cursig
 161         lwp_state
 162         lwp_mstate.ms_acct      LWP_MS_ACCT
 163         lwp_mstate.ms_prev      LWP_MS_PREV
 164         lwp_mstate.ms_start     LWP_MS_START
 165         lwp_mstate.ms_state_start LWP_MS_STATE_START
 166         lwp_pcb
 167         lwp_ru.sysc             LWP_RU_SYSC
 168 
 169 \#define        LWP_ACCT_USER   _CONST(LWP_MS_ACCT + _MUL(LMS_USER, LWP_MS_ACCT_INCR))
 170 \#define        LWP_ACCT_SYSTEM _CONST(LWP_MS_ACCT + _MUL(LMS_SYSTEM, LWP_MS_ACCT_INCR))
 171 
 172 fpu_ctx
 173         fpu_regs                FPU_CTX_FPU_REGS
 174         fpu_flags               FPU_CTX_FPU_FLAGS
 175         fpu_xsave_mask          FPU_CTX_FPU_XSAVE_MASK


 453         wc_idt_limit    WC_IDT
 454         wc_idt_base
 455         wc_tr
 456         wc_ldt
 457         wc_eflags
 458         wc_ebx
 459         wc_edi
 460         wc_esi
 461         wc_ebp
 462         wc_esp
 463         wc_esp
 464         wc_ss
 465         wc_cs
 466         wc_ds
 467         wc_es
 468         wc_cpu_id
 469         wc_saved_stack
 470 
 471 wc_wakecode
 472         wc_cpu
 473 
 474 comm_page_s     COMM_PAGE_S_SIZE