shithub: riscv

Download patch

ref: 3c36cadefd5675ad290a607c3be0450eccde1f54
parent: 90143609212ed4500409a64d26f6b12d097b13ed
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Mar 28 20:44:09 EDT 2020

pc: fix mp boot regression due mistake in mkfile

the previous mkfile had a sneaky hack that would use
sed to delete the first 2 lines of hex output to strip
the 32 byte long a.out header for apbootstrap and rebootcode.

use 8l -H3 flag to strip the header from the output file.

--- a/sys/src/9/pc/mkfile
+++ b/sys/src/9/pc/mkfile
@@ -139,10 +139,10 @@
 	$LD -l -R1 -s -o $target $prereq
 
 rebootcode.out:		rebootcode.$O
-	$LD -l -R4 -s -o $target -T$REBOOTADDR $prereq
+	$LD -l -R4 -s -o $target -T$REBOOTADDR -H3 $prereq
 
 apbootstrap.out:	apbootstrap.$O
-	$LD -l -R4 -s -o $target -T$APBOOTSTRAP $prereq
+	$LD -l -R4 -s -o $target -T$APBOOTSTRAP -H3 $prereq
 
 sd53c8xx.i:	sd53c8xx.n
 	aux/na $prereq > $target