A little fix
Tom,
I think you've goofed a little bit again:
[email protected], 2001-11-27 15:44:22-07:00, [email protected]
'bootinfo' is wrong, 'bi_record' is right, whoops.
arch/ppc/boot/common/misc-simple.c
1.12 01/11/27 15:44:21 [email protected] +3 -5 struct bootinfo -> struct bi_record.
After this change misc-simple.c doesn't compile due to a missing semicolon, and even if it compiled it would return the wrong address (we need the start of bi_recs, not the end). The fix is below.
MS
arch/ppc/boot/common/misc-simple.c +4 -2
@@ -63,7 +63,8 @@ {int timer =0 ;char *cp, ch; - struct bi_record *rec +struct bi_record *rec; +struct bi_record *birecs;setup_legacy (); com_port =serial_init (0 ,NULL );
@@ -159,6 +160,7 @@*/ rec = (struct bi_record *)_ALIGN ((unsigned long )(zimage_size) + (1 <<20 ) -1 , (1 <<20 )); + birecs = rec; rec->tag =BI_FIRST ; rec->size =sizeof (struct bi_record );
@@ -184,5 +186,5 @@ rec = (struct bi_record *)((unsigned long )rec + rec->size);puts ("Now booting the kernel\n" ); -return rec; +return birecs; }
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 8 lines · Michael Sokolov
Tom,
I think you've goofed a little bit again:
[email protected], 2001-11-27 15:44:22-07:00, [email protected]
'bootinfo' is wrong, 'bi_record' is right, whoops.
Quoted 7 lines
arch/ppc/boot/common/misc-simple.c1.12 01/11/27 15:44:21 [email protected] +3 -5 struct bootinfo -> struct bi_record.After this change
misc-simple.cdoesn't compile due to a missing semicolon, and even if it compiled it would return the wrong address (we need the start ofbi_recs, not the end). The fix is below.
D'oh. Not my day... Thanks.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/