Follow xv6 code style.  Also fixes indexing for these functions
Follow xv6 code style.  Also fixes indexing for these functions

bowlofstew/sv6,msyksphinz/xv6-mips,supdizh/clean_xv6,ThomasDq/xv6OS,rafamanzo/ep4-so,OrangeTide/xv6-public,nwolovick/xv6-public,sdimitro/xv6,myl2821/xv6-fork,rafamanzo/ep2-so-xv6,kingsizeme/xv6,pablogventura/xv6-public,roygoldman/xv6-fsprot,Cheukyin/xv6,bowlofstew/sv6,SarthakCodes/xv6,walafc0/xv6,myl2821/xv6-fork,CKost/Authorization,PINK-FL0YD/xv6-public,MrHohn/CS-OperatingSystem-hw3,shadowfax-ring/mit-xv6,robertpd/xv6,BMJHayward/xv6-public,CHRISTOPHERDIEHL/xv6,lord021/Assignment2,shining-yang/xv6,jgome043/tearos,arajago6/Axv6_One,walafc0/xv6,tehgeekmeister/xv6,tlerea1/xv6,preshshah/xv6,AndreiRO/xv6,rafamanzo/ep4-so,panks/Xv6,MrHohn/cs518hw3,5kg/xv6,emaadmanzoor/xv6,OrangeTide/xv6-public,rafamanzo/ep2-so-xv6,WeiranFang/cs518hw3,arturosevilla/xv6-turi,yum185/assign1_partA,logangorence/xv6-public,Royvaknin29/OS_Ass1,AskDrCatcher/xv6,nwolovick/xv6-public,walafc0/xv6,junxu/xv6,bowlofstew/sv6,film42/xv6,forwchen/xv6,justodiaz/xv6,humphreyja/Xv6,arianvp/xv6,bngabonziza/xv6-public,GautamV/xv6,rafamanzo/ep4-so,HugoTian/xv6,tehgeekmeister/xv6,HawxChen/Offical-Version-xv6,KushOza/hw2,arianvp/xv6,eewayhsu/xv6,raman162/CS450,Y-liulian/xv6-public,howerj/xv6,sometimesfood/xv6,guilleiguaran/xv6,avana002/xv6,MrHohn/CS-OperatingSystem-hw2,BMJHayward/xv6-public,penguiner/xv6,sometimesfood/xv6,ihciah/XV6-OS,gburd/xv6,gmy987/xv6,bowlofstew/xv6-public,gmy987/xv6,TheMatrixShibe/tmsv6,kongming92/6828-xv6,siddharthv/xv6,kazunobu-fujii/xv6,voytovichs/xv6-public,nrahimi/xv6,meilank/CS416-hw1,avana002/xv6,pekopeko1/xv6,raman162/CS450,galbenor/os162-4,supdizh/clean_xv6,Cheukyin/xv6,liyinhgqw/xv6,orenherman/xv6-clone,arajago6/Axv6_One,Raysmond/xv6,kongming92/6828-xv6,baboofei/v6rt,firstblade/xv6,arajago6/Axv6_One,reutz19/xv6_ass4,kazunobu-fujii/xv6,Cheukyin/xv6,gw/xv6,wenhuizhang/xv6-public,lishuwnc/Xv6,yubai/ksm_xv6,kingsizeme/xv6,UIKit0/Xv6,maxymania/open-xv6,Cealestus/cmpt332Assignment1,svdamani/xv6,AZQ1994/xv6,Cealestus/cmpt332Assignment1,roygoldman/xv6-sem,voytovichs/xv6-public,tamlok/xv6,MatanGilead/myxv6,MrHohn/cs518hw2,descent/xv6,bowlofstew/sv6,liadgi/os163,baboofei/v6rt,gco/xv6,fintler/xv6,meilank/CS416-hw2,meilank/CS416-hw2,laisborin/RT-xv6,svdamani/xv6,ZheyuJin/xv6_reading,nrahimi/xv6,alex0906093/xv6,dswann5/os_assignment_3,panks/Xv6,supr/Xv6,MrHohn/cs518hw2,roygoldman/xv6-fsprot,ZheyuJin/xv6_reading,romanzhg/xv6,jsommers/xv6-public,garzon/xv6-public,RicardoParizotto/xv6---stride-scheduling,codelabs-ch/xv6-muen,tehgeekmeister/xv6,tinti/xv6-ubuntu,expertsnipo/xv6,nwf/xv6-public,CKost/Authorization,danrods/xv6Hacks,ahorn/xv6,PINK-FL0YD/xv6-public,Mifnight/xv6-public,jsommers/xv6-public,Mifnight/xv6-public,TheMatrixShibe/tmsv6,seckcoder/mirror-xv6,bohaoist/xv6,oskarth/xv6,roygoldman/xv6-fsprot,ZheyuJin/xv6_reading,reutz19/xv6_ass4,gw/xv6,lord021/Assignment1,chrisdew/xv6,oskarth/xv6,gzpan123/xv6,chyka-dev/xv6-public,pekopeko1/xv6-code,gburd/xv6,cpehle/xv6,shadowfax-ring/mit-xv6,fintler/xv6,penguiner/xv6,junxu/xv6,bngabonziza/xv6-1,MrHohn/cs518hw3,sdimitro/xv6,SarthakCodes/xv6,supdizh/clean_xv6,garzon/xv6-public,konyavic/xv6,pablogventura/xv6-public,imagine4077/xv6-public,HugoTian/xv6,galbenor/os162-4,sigma-random/xv6,orenherman/xv6-clone,phf/xv6-public,tenstep/xv6,khalily/xv6,SajadAzami/xv6-pm,UIKit0/xv6-1,yum185/assign1_partA,arcbbb/xv6,pelhamnicholas/xv6,nullpo-head/xv6-mips,pelhamnicholas/xv6,romanzhg/xv6,s-rah/xv6-permissions,film42/xv6,UIKit0/Xv6,guilleiguaran/xv6,tamlok/xv6,prashantkhurana/OS,rafamanzo/ep2-so-xv6,SanchayanMaity/xv6-cs450,shyandsy/xv6,cpehle/xv6,supr/Xv6,pekopeko1/xv6-code,louisje/xv6,MatanGilead/myxv6,eewayhsu/xv6,gco/xv6,SarthakCodes/xv6,garzon/xv6-public,expertsnipo/xv6,t3rm1n4l/xv6,Cealestus/cmpt332Assignment1,niral28/hw1,jeffallen/xv6,ManaPoustizadeh/OS-finalProject,rlok3000/xv6,gmy987/xv6,liyinhgqw/xv6,GautamV/xv6,jeffallen/xv6,lishuwnc/Xv6,codelabs-ch/xv6-muen,shyandsy/xv6,yum185/assign1_partA,bohaoist/xv6,gzpan123/xv6,liadgi/os163,tinti/xv6-ubuntu,techno/xv6-mist32,chnpmy/xv6,bngabonziza/xv6-1,MrHohn/CS-OperatingSystem-hw2,Cealestus/cmpt332Assignment1,MrHohn/CS-OperatingSystem-hw2,gzpan123/xv6,KushOza/hw2,vicionator/XV6,AskDrCatcher/xv6,ahorn/xv6,DuskDragon/xv6,guilleiguaran/xv6,gnosis23/xv6,siddharthv/xv6,descent/xv6,film42/xv6,aquamme/xv6,sdharan/xv6-rcu,svdamani/xv6,supdizh/clean_xv6,yum185/assign1_partA,wenhuizhang/xv6-public,ShakhMoves/Shakh6,tenstep/xv6,gw/xv6,sdharan/xv6-rcu,meilank/CS416-hw2,MrHohn/CS-OperatingSystem-hw3,danluu/Xv6,lenw/xv6-public,lolosssss/Xv6,expertsnipo/xv6,lolosssss/Xv6,nrahimi/xv6,vicionator/XV6,wenhuizhang/xv6-public,AZQ1994/xv6,niral28/hw1,kingsizeme/xv6,juroland/xv6,williamsandrew/xv6,lord021/Assignment2,ckkashyap/xv6,shtyd/xv6-lua,CHRISTOPHERDIEHL/xv6,lord021/Assignment1,prashantkhurana/OS,konyavic/xv6,juroland/xv6,pablogventura/xv6-public,pekopeko1/xv6-code,liorderei/OS_Class,emaadmanzoor/xv6,nomadium/xv6,rajma996/xv6,wkatsak/xv6,howerj/xv6,Laaia/RT-xv6,techno/xv6-mist32,nomadium/xv6,tehgeekmeister/xv6,penguiner/xv6,OrangeTide/xv6-public,alex0906093/xv6,sdimitro/xv6,Y-liulian/xv6-public,sometimesfood/xv6-public,rlok3000/xv6,alex0906093/xv6,tlerea1/xv6,AndreiRO/xv6,lenw/xv6-public,laisborin/RT-xv6,robertpd/xv6,ShakhMoves/Shakh6,shadowfax-ring/mit-xv6,davidbalbert/xv6,xujunhai1991/xv6,bngabonziza/xv6,firstblade/xv6,RicardoParizotto/xv6---stride-scheduling,expertsnipo/xv6,aclements/sv6,PINK-FL0YD/xv6-public,bowlofstew/xv6-public,gnosis23/xv6,gnudeep/xv6,sdharan/xv6-rcu,meilank/CS416-hw1,xv6-jp/xv6,chnpmy/xv6,descent/xv6,jsommers/xv6-public,lishuwnc/Xv6,i/xv6,gburd/xv6,t3rm1n4l/xv6,orenherman/xv6-clone,johnson-li/xv6-homework,arcbbb/xv6,arturosevilla/xv6-turi,wkatsak/xv6,liadgi/os163,aclements/sv6,aquamme/xv6,reutz19/xv6_ass4,tehgeekmeister/xv6,juroland/xv6,ihciah/XV6-OS,WeiranFang/cs518hw3,DuskDragon/xv6,nwolovick/xv6-public,chrisdew/xv6,raman162/CS450,ShakhMoves/Shakh6,roygoldman/xv6-sem,ZheyuJin/xv6_reading,meilank/CS416-hw1,tlerea1/xv6,pekopeko1/xv6-code,chyka-dev/xv6-public,nwf/xv6-public,meilank/CS416-hw1,chnpmy/xv6,dswann5/os_assignment_3,pekopeko1/xv6,lord021/Assignment2,pelhamnicholas/xv6,varunk08/xv6,preshshah/xv6,bngabonziza/xv6,prashantkhurana/OS,Mifnight/xv6-public,rajma996/xv6,bowlofstew/xv6-public,t3rm1n4l/xv6,garzon/xv6,techno/xv6-mist32,chrisdew/xv6,msyksphinz/xv6-mips,niral28/hw1,sigma-random/xv6,phf/xv6-public,BMJHayward/xv6-public,tinti/xv6-ubuntu,louisje/xv6,galbenor/os162-4,varunk08/xv6,UIKit0/xv6-1,arturosevilla/xv6-turi,v1ta/xv6,nwolovick/xv6-public,voytovichs/xv6-public,TheDude05/xv6,kazunobu-fujii/xv6,eewayhsu/xv6,wkatsak/xv6,orenherman/xv6-clone,shining-yang/xv6,konyavic/xv6,xv6-jp/xv6,ManaPoustizadeh/OS-finalProject,shadowfax-ring/mit-xv6,wkatsak/xv6,imagine4077/xv6-public,roygoldman/xv6-fsprot,kongming92/6828-xv6,justodiaz/xv6,danrods/xv6Hacks,CKost/Authorization,rlok3000/xv6,davidbalbert/xv6,lolosssss/Xv6,RicardoParizotto/xv6---stride-scheduling,KushOza/hw2,myl2821/xv6-fork,nullpo-head/xv6-mips,DuskDragon/xv6,bohaoist/xv6,TheMatrixShibe/tmsv6,niral28/hw1,guilleiguaran/xv6,baboofei/v6rt,logangorence/xv6-public,jgome043/tearos,garzon/xv6-public,GautamV/xv6,run/xv6,arianvp/xv6,AskDrCatcher/xv6,danrods/xv6Hacks,f13mash/xv6,HugoTian/xv6,humphreyja/Xv6,lorenzo-stoakes/haxv6,bngabonziza/xv6-1,voytovichs/xv6-public,codelabs-ch/xv6-muen,i/xv6,UIKit0/xv6-1,junxu/xv6,run/xv6,bngabonziza/xv6-public,danluu/Xv6,wangxiayang/xv6,siddharthv/xv6,emaadmanzoor/xv6,bowlofstew/sv6,f13mash/xv6,emaadmanzoor/xv6,ckkashyap/xv6,jgome043/tearos,maxymania/open-xv6,imagine4077/xv6-public,5kg/xv6,MrHohn/CS-OperatingSystem-hw3,Royvaknin29/OS_Ass1,SanchayanMaity/xv6-cs450,raman162/CS450,voytovichs/xv6-public,v1ta/xv6,nullpo-head/xv6-mips,AndreiRO/xv6,lenw/xv6-public,avana002/xv6,ThomasDq/xv6OS,v1ta/xv6,alex0906093/xv6,bowlofstew/xv6-public,leenjewel/xv6_learn,SanchayanMaity/xv6-cs450,ihciah/XV6-OS,imagine4077/xv6-public,jsommers/xv6-public,gmy987/xv6,nullpo-head/xv6-mips,wasabiz/xv6,johnson-li/xv6-homework,shtyd/xv6-lua,williamsandrew/xv6,tamlok/xv6,shyandsy/xv6,khalily/xv6,PINK-FL0YD/xv6-public,f13mash/xv6,seckcoder/mirror-xv6,Y-liulian/xv6-public,UIKit0/xv6-1,panks/Xv6,HugoTian/xv6,MrHohn/cs518hw2,vicionator/XV6,ihciah/xv6,justodiaz/xv6,HawxChen/Offical-Version-xv6,run/xv6,yubai/ksm_xv6,gco/xv6,supr/Xv6,kingsizeme/xv6,shyandsy/xv6,Raysmond/xv6,AZQ1994/xv6,jeffallen/xv6,RicardoParizotto/xv6---stride-scheduling,arajago6/Axv6_One,xujunhai1991/xv6,chyka-dev/xv6-public,Cheukyin/xv6,bngabonziza/xv6-public,gnudeep/xv6,SajadAzami/xv6-pm,gw/xv6,romanzhg/xv6,chnpmy/xv6,shining-yang/xv6,ThomasDq/xv6OS,chrisdew/xv6,varunk08/xv6,MrHohn/cs518hw3,UIKit0/Xv6,nwf/xv6-public,gnosis23/xv6,rajma996/xv6,film42/xv6,romanzhg/xv6,howerj/xv6,wangxiayang/xv6,humphreyja/Xv6,pablogventura/xv6-public,dswann5/os_assignment_3,MrHohn/cs518hw3,sdimitro/xv6,wangxiayang/xv6,s-rah/xv6-permissions,lishuwnc/Xv6,ThomasDq/xv6OS,Laaia/RT-xv6,shtyd/xv6-lua,shining-yang/xv6,nwf/xv6-public,roygoldman/xv6-sem,jmatth/xv6,TheDude05/xv6,xujunhai1991/xv6,ShakhMoves/Shakh6,MatanGilead/myxv6,gzpan123/xv6,shtyd/xv6-lua,laisborin/RT-xv6,i/xv6,liorderei/OS_Class,baboofei/v6rt,Laaia/RT-xv6,robertpd/xv6,rajma996/xv6,run/xv6,nomadium/xv6,lord021/Assignment1,seckcoder/mirror-xv6,tlerea1/xv6,sdharan/xv6-rcu,ahorn/xv6,laisborin/RT-xv6,danluu/Xv6,oskarth/xv6,aclements/sv6,liorderei/OS_Class,descent/xv6,davidbalbert/xv6,SajadAzami/xv6-pm,lorenzo-stoakes/haxv6,ckkashyap/xv6,reutz19/xv6_ass4,yubai/ksm_xv6,lenw/xv6-public,pelhamnicholas/xv6,yubai/ksm_xv6,walafc0/xv6,SarthakCodes/xv6,MrHohn/cs518hw2,jmatth/xv6,gw/xv6,wangxiayang/xv6,5kg/xv6,robertpd/xv6,ihciah/xv6,DuskDragon/xv6,sometimesfood/xv6,tamlok/xv6,aquamme/xv6,avana002/xv6,gnudeep/xv6,AndreiRO/xv6,yubai/ksm_xv6,v1ta/xv6,varunk08/xv6,arcbbb/xv6,CKost/Authorization,Laaia/RT-xv6,chyka-dev/xv6-public,roygoldman/xv6-sem,louisje/xv6,preshshah/xv6,myl2821/xv6-fork,kazunobu-fujii/xv6,humphreyja/Xv6,bngabonziza/xv6,pekopeko1/xv6,fintler/xv6,s-rah/xv6-permissions,leenjewel/xv6_learn,shyandsy/xv6,MatanGilead/myxv6,CHRISTOPHERDIEHL/xv6,juroland/xv6,Y-liulian/xv6-public,s-rah/xv6-permissions,CHRISTOPHERDIEHL/xv6,AZQ1994/xv6,t3rm1n4l/xv6,ckkashyap/xv6,sigma-random/xv6,johnson-li/xv6-homework,meilank/CS416-hw2,nwf/xv6-public,jgome043/tearos,aclements/sv6,msyksphinz/xv6-mips,bngabonziza/xv6-1,liorderei/OS_Class,xujunhai1991/xv6,lord021/Assignment2,bohaoist/xv6,bngabonziza/xv6,dswann5/os_assignment_3,aquamme/xv6,kongming92/6828-xv6,Royvaknin29/OS_Ass1,ThomasDq/xv6OS,OrangeTide/xv6-public,ManaPoustizadeh/OS-finalProject,nomadium/xv6,sometimesfood/xv6-public,logangorence/xv6-public,gnudeep/xv6,gnosis23/xv6,lolosssss/Xv6,techno/xv6-mist32,GautamV/xv6,pekopeko1/xv6,sometimesfood/xv6,BMJHayward/xv6-public,TheMatrixShibe/tmsv6,wasabiz/xv6,SajadAzami/xv6-pm,ahorn/xv6,ManaPoustizadeh/OS-finalProject,MrHohn/CS-OperatingSystem-hw2,khalily/xv6,prashantkhurana/OS,leenjewel/xv6_learn,phf/xv6-public,HawxChen/Offical-Version-xv6,TheDude05/xv6,WeiranFang/cs518hw3,danluu/Xv6,forwchen/xv6,msyksphinz/xv6-mips,davidbalbert/xv6,junxu/xv6,arcbbb/xv6,jmatth/xv6,AskDrCatcher/xv6,penguiner/xv6,aclements/sv6,eewayhsu/xv6,jmatth/xv6,wenhuizhang/xv6-public,sometimesfood/xv6-public,firstblade/xv6,justodiaz/xv6,WeiranFang/cs518hw3,CKost/Authorization,MrHohn/CS-OperatingSystem-hw3,SanchayanMaity/xv6-cs450,sometimesfood/xv6-public,sigma-random/xv6,gburd/xv6,UIKit0/Xv6,liyinhgqw/xv6,johnson-li/xv6-homework,khalily/xv6,vicionator/XV6,Mifnight/xv6-public,williamsandrew/xv6,lorenzo-stoakes/haxv6,xv6-jp/xv6,lorenzo-stoakes/haxv6,danrods/xv6Hacks,galbenor/os162-4,phf/xv6-public,rlok3000/xv6,Royvaknin29/OS_Ass1,KushOza/hw2,louisje/xv6,garzon/xv6,howerj/xv6,codelabs-ch/xv6-muen,arturosevilla/xv6-turi,firstblade/xv6,preshshah/xv6,svdamani/xv6,5kg/xv6,i/xv6,oskarth/xv6,bngabonziza/xv6-public,leenjewel/xv6_learn,ihciah/XV6-OS,seckcoder/mirror-xv6,siddharthv/xv6,arianvp/xv6