/** * build_linkno - 构建一个LINKNO * * @ptr: LINKNO项 * * return * LINKNO */ static INLINE_FN linkno_t build_linkno(IN struct linkno_s *ptr) { struct linkno_s_pool *obj = lnk_pool_object(); unsigned int hi = ptr->inc++; unsigned int lo = ptr - obj->base; linkno_t v; v = ((hi << 16) & 0xFFFF0000) | (lo & 0xFFFF); SET_ID(obj->bitmap, lo); return v; }
static UINT32 opDI(void) { SET_ID(1); return clkIF; }
static UINT32 opEI(void) { SET_ID(0); return clkIF; }