phys_memory: Rewrite of refabs()