From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from duke.felloff.net ([216.126.196.34]) by ewsd; Thu Jan 3 20:56:00 EST 2019 Message-ID: <98B4E166BE5C7B1C797BA96880E71335@felloff.net> Date: Fri, 4 Jan 2019 02:55:52 +0100 From: cinap_lenrek@felloff.net To: 9front@9front.org Subject: Re: [9front] T60 regression? In-Reply-To: 4B72C35BD44794BFBF5B123F980C2931@felloff.net MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: STM CSS DOM callback control ok, i think i got it. the mem.h dependency was not expressed correctly for apbootstrap.h in pc64. there was a "apboostrap.$O: mem.h" dependency but this is wrong as apoostrap.$O is an intermediate file that never gets referenced in the dependency graph. the real dependency needs to be on apboostrap.h. changeset: 6986:b048db97b5ea tag: tip user: cinap_lenrek@felloff.net date: Fri Jan 04 02:51:29 2019 +0100 summary: pc, pc64: properly track dependencies for mem.h on autogenerated apbootstrap.h and reboot.h targets diff -r 8c50688cb280 -r b048db97b5ea sys/src/9/pc/mkfile --- a/sys/src/9/pc/mkfile Wed Jan 02 10:26:38 2019 +0100 +++ b/sys/src/9/pc/mkfile Fri Jan 04 02:51:29 2019 +0100 @@ -8,8 +8,9 @@ p=9 # must match mem.h +KTZERO=0xF0100020 APBOOTSTRAP=0xF0007000 -KTZERO=0xF0100020 +REBOOTADDR=0x11000 DEVS=`{rc ../port/mkdevlist $CONF} @@ -143,15 +144,15 @@ sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g' echo '};'} > init.h -reboot.h:D: rebootcode.s +reboot.h:D: rebootcode.s mem.h $AS rebootcode.s - $LD -l -s -T0x11000 -R4 -o reboot.out rebootcode.$O + $LD -l -s -T$REBOOTADDR -R4 -o reboot.out rebootcode.$O {echo 'uchar rebootcode[]={' xd -1x reboot.out | sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g' echo '};'} > reboot.h -apbootstrap.h: apbootstrap.s mem.h +apbootstrap.h:D: apbootstrap.s mem.h $AS $prereq $LD -o apbootstrap.out -T$APBOOTSTRAP -R4 -l -s apbootstrap.$O {echo 'uchar apbootstrap[]={' diff -r 8c50688cb280 -r b048db97b5ea sys/src/9/pc64/mkfile --- a/sys/src/9/pc64/mkfile Wed Jan 02 10:26:38 2019 +0100 +++ b/sys/src/9/pc64/mkfile Fri Jan 04 02:51:29 2019 +0100 @@ -5,6 +5,7 @@ init.h -reboot.h: rebootcode.s +reboot.h:D: rebootcode.s mem.h $AS rebootcode.s $LD -l -R1 -s -o reboot.out -T$REBOOTADDR rebootcode.$O {echo 'uchar rebootcode[]={' @@ -153,7 +154,7 @@ sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g' echo '};'} > $target -apbootstrap.h: apbootstrap.s +apbootstrap.h:D: apbootstrap.s mem.h $AS apbootstrap.s $LD -l -R1 -s -o apbootstrap.out -T$APBOOTSTRAP apbootstrap.$O {echo 'uchar apbootstrap[]={'