Skip to contentSkip to conversation

Fix reserve map output for asm format.

PATCH New Jerry Van Baren 1 participant 1 message Apr 17, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix reserve map output for asm format.

Add extra reserve map slots output for asm format (previously done for dtb
output).

---

Hi Jon, David, Milton,

Here is a patch just to fix the asm output for reserved slots for the -R parameter.

Best regards,
gvb

 flattree.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
flattree.c +3 -0
index 151d16e..8159848 100644
@@ -490,6 +490,9 @@ void dt_to_asm(FILE *f, struct boot_info *bi, int version, int boot_cpuid_phys)
 			(unsigned int)(re->re.size >> 32),
 			(unsigned int)(re->re.size & 0xffffffff));
 	}
+	for (i = 0; i < reservenum; i++) {
+		fprintf(f, "\t.long\t0, 0\n\t.long\t0, 0\n");
+	}
 
 	fprintf(f, "\t.long\t0, 0\n\t.long\t0, 0\n");
 
Signature · 1 line
1.4.4.4