mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
ROMCC: Trigger internal compiler failure and apply the workaround
These boards first failed when attempting to change print_err() from
direct function call to console_tx_XX() to a code block in the form of
do { if (y) console_tx_XX(x); } while(0)
Removing the label dummy_romcc_workaround_label added here will
trigger the following compiler error for the two boards:
Internal compiler error: no edge to block->last->next
Change-Id: I997adfaf586d7fa2096401dd574b07ce676d0ac6
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/5349
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
@@ -169,6 +169,11 @@ static void main(unsigned long bist)
|
||||
print_err("HI THERE!\n");
|
||||
// sizemem();
|
||||
staticmem();
|
||||
|
||||
/* Void warranty when label is removed. */
|
||||
dummy_romcc_workaround_label:
|
||||
do { } while (0);
|
||||
|
||||
print_err("c60 is "); print_err_hex16(*(unsigned short *)0xfffefc60);
|
||||
print_err("\n");
|
||||
|
||||
|
||||
@@ -153,6 +153,11 @@ static void main(unsigned long bist)
|
||||
|
||||
print_err("Technologic Systems TS5300 - http://www.embeddedx86.com/\n");
|
||||
staticmem();
|
||||
|
||||
/* Void warranty when label is removed. */
|
||||
dummy_romcc_workaround_label:
|
||||
do { } while (0);
|
||||
|
||||
print_err("Memory initialized: 32MB\n");
|
||||
|
||||
#if 1
|
||||
|
||||
Reference in New Issue
Block a user