progress and add functions in xv6 source code