Skip to content

Commit 49730bc

Browse files
committed
Add link to GCC bug for ctable issue
1 parent e81e04d commit 49730bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ typedef struct shared_ram {
88
uint32_t pwms;
99
} shared_ram;
1010
// XXX: The real address in use here is 0x80010000
11-
// There appears to be a compiler bug where ctable entries with the MSB set
11+
// There is currently a compiler bug where ctable entries with the MSB set
1212
// do not get optimized correctly. We lie to the PRU compiler here, but the
1313
// hardware indeed contains the correct address we *actually* want.
14+
// Upstream bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121124
15+
// Revisit this once the patch lands in a release.
1416
static volatile shared_ram * const SHARED = (volatile shared_ram *)0x7f010000;
1517
#pragma ctable_entry 30 0x7f010000
1618

0 commit comments

Comments
 (0)