Print this page
patch fix-compile2

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sparc/os/syscall.c
          +++ new/usr/src/uts/sparc/os/syscall.c
↓ open down ↓ 351 lines elided ↑ open up ↑
 352  352  {
 353  353          unsigned int code;
 354  354          kthread_t *t = curthread;
 355  355          proc_t *p = ttoproc(t);
 356  356          klwp_t *lwp = ttolwp(t);
 357  357          struct regs *rp = lwptoregs(lwp);
 358  358          int     repost;
 359  359  
 360  360          t->t_pre_sys = repost = 0;      /* clear pre-syscall processing flag */
 361  361  
 362      -        ASSERT(t->t_schedflag & TS_DONT_SWAP);
 363      -
 364  362          syscall_mstate(LMS_USER, LMS_SYSTEM);
 365  363  
 366  364          /*
 367  365           * The syscall arguments in the out registers should be pointed to
 368  366           * by lwp_ap.  If the args need to be copied so that the outs can
 369  367           * be changed without losing the ability to get the args for /proc,
 370  368           * they can be saved by save_syscall_args(), and lwp_ap will be
 371  369           * restored by post_syscall().
 372  370           */
 373  371          ASSERT(lwp->lwp_ap == (long *)&rp->r_o0);
↓ open down ↓ 860 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX