This leaves some memory for pk, where it keeps tohost/fromhost which we
cannot just write to.
fd.write("uint32_t length = %d;\n" % length)
fd.write("uint8_t d[%d] = {\n" % length)
self.crc = 0
- for _ in range(length / 16):
- fd.write(" ");
+ for i in range(length / 16):
+ fd.write(" /* 0x%04x */ " % (i * 16));
for _ in range(16):
value = random.randrange(1<<8)
fd.write("%d, " % value)
/*--------------------------------------------------------------------*/
/* Begining of code and text segment */
- . = 0x80000000;
+ /* Leave some space for pk's data structures, which includes tohost/fromhost
+ * which are special addresses we ought to leave alone. */
+ . = 0x80010000;
_ftext = .;
PROVIDE( eprol = . );