Print this page
patch fix-compile2

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/ia32/os/syscall.c
          +++ new/usr/src/uts/intel/ia32/os/syscall.c
↓ open down ↓ 141 lines elided ↑ open up ↑
 142  142  syscall_entry(kthread_t *t, long *argp)
 143  143  {
 144  144          klwp_t *lwp = ttolwp(t);
 145  145          struct regs *rp = lwptoregs(lwp);
 146  146          unsigned int code;
 147  147          struct sysent *callp;
 148  148          struct sysent *se = LWP_GETSYSENT(lwp);
 149  149          int error = 0;
 150  150          uint_t nargs;
 151  151  
 152      -        ASSERT(t == curthread && curthread->t_schedflag & TS_DONT_SWAP);
      152 +        ASSERT(t == curthread);
 153  153  
 154  154          lwp->lwp_ru.sysc++;
 155  155          lwp->lwp_eosys = NORMALRETURN;  /* assume this will be normal */
 156  156  
 157  157          /*
 158  158           * Set lwp_ap to point to the args, even if none are needed for this
 159  159           * system call.  This is for the loadable-syscall case where the
 160  160           * number of args won't be known until the system call is loaded, and
 161  161           * also maintains a non-NULL lwp_ap setup for get_syscall_args(). Note
 162  162           * that lwp_ap MUST be set to a non-NULL value _BEFORE_ t_sysnum is
↓ open down ↓ 73 lines elided ↑ open up ↑
 236  236  pre_syscall()
 237  237  {
 238  238          kthread_t *t = curthread;
 239  239          unsigned code = t->t_sysnum;
 240  240          klwp_t *lwp = ttolwp(t);
 241  241          proc_t *p = ttoproc(t);
 242  242          int     repost;
 243  243  
 244  244          t->t_pre_sys = repost = 0;      /* clear pre-syscall processing flag */
 245  245  
 246      -        ASSERT(t->t_schedflag & TS_DONT_SWAP);
 247      -
 248  246  #if defined(DEBUG)
 249  247          /*
 250  248           * On the i386 kernel, lwp_ap points at the piece of the thread
 251  249           * stack that we copy the users arguments into.
 252  250           *
 253  251           * On the amd64 kernel, the syscall arguments in the rdi..r9
 254  252           * registers should be pointed at by lwp_ap.  If the args need to
 255  253           * be copied so that those registers can be changed without losing
 256  254           * the ability to get the args for /proc, they can be saved by
 257  255           * save_syscall_args(), and lwp_ap will be restored by post_syscall().
↓ open down ↓ 1136 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX