Print this page
patch as-lock-macro-simplification

*** 3018,3030 **** */ if (pplist == NULL) { pfn_t pfnum; /* MMU mapping is already locked down */ ! AS_LOCK_ENTER(as, &as->a_lock, RW_READER); pfnum = hat_getpfnum(as->a_hat, rdest); ! AS_LOCK_EXIT(as, &as->a_lock); /* * TODO: The pfn step should not be necessary - need * a hat_getpp() function. */ --- 3018,3030 ---- */ if (pplist == NULL) { pfn_t pfnum; /* MMU mapping is already locked down */ ! AS_LOCK_ENTER(as, RW_READER); pfnum = hat_getpfnum(as->a_hat, rdest); ! AS_LOCK_EXIT(as); /* * TODO: The pfn step should not be necessary - need * a hat_getpp() function. */