Print this page
patch as-lock-macro-simplification

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/io/rootnex.c
          +++ new/usr/src/uts/i86pc/io/rootnex.c
↓ open down ↓ 999 lines elided ↑ open up ↑
1000 1000                  struct segdev_data *sdp = (struct segdev_data *)seg->s_data;
1001 1001  
1002 1002                  if (hat == NULL) {
1003 1003                          /*
1004 1004                           * This is one plausible interpretation of
1005 1005                           * a null hat i.e. use the first hat on the
1006 1006                           * address space hat list which by convention is
1007 1007                           * the hat of the system MMU.  At alternative
1008 1008                           * would be to panic .. this might well be better ..
1009 1009                           */
1010      -                        ASSERT(AS_READ_HELD(seg->s_as, &seg->s_as->a_lock));
     1010 +                        ASSERT(AS_READ_HELD(seg->s_as));
1011 1011                          hat = seg->s_as->a_hat;
1012 1012                          cmn_err(CE_NOTE, "rootnex_map_fault: nil hat");
1013 1013                  }
1014 1014                  hat_devload(hat, addr, MMU_PAGESIZE, pfn, prot | sdp->hat_attr,
1015 1015                      (lock ? HAT_LOAD_LOCK : HAT_LOAD));
1016 1016          } else if (seg == &kvseg && dp == NULL) {
1017 1017                  hat_devload(kas.a_hat, addr, MMU_PAGESIZE, pfn, prot,
1018 1018                      HAT_LOAD_LOCK);
1019 1019          } else
1020 1020                  return (DDI_FAILURE);
↓ open down ↓ 4152 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX