0001-Fix-GCC14.1-compile-error-in-w25x10cls.S-2000.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 5c1f16cd723de3c2e0b57f1a34e2317cdabef294 Mon Sep 17 00:00:00 2001
  2. From: "Earle F. Philhower, III" <earlephilhower@yahoo.com>
  3. Date: Tue, 5 Nov 2024 12:06:04 -0800
  4. Subject: [PATCH 1/1] Fix GCC14.1 compile error in w25x10cls.S (#2000)
  5. GCC14 doesn't like the 2-character temporary label "00" and throws an error
  6. .../pico-sdk/src/rp2040/boot_stage2/boot2_w25x10cl.S: Assembler messages:
  7. .../pico-sdk/src/rp2040/boot_stage2/boot2_w25x10cl.S:147: Error: junk at end of line, first unrecognized character is `0'
  8. .../pico/rp2040/pico-sdk/src/rp2040/boot_stage2/boot2_w25x10cl.S:150: Error: garbage following instruction -- `beq 00b'
  9. Convert it to a single number, "1", like in other boot2xxx.S files
  10. Fixes #1999
  11. ---
  12. src/rp2_common/boot_stage2/boot2_w25x10cl.S | 4 ++--
  13. 1 file changed, 2 insertions(+), 2 deletions(-)
  14. diff --git a/src/rp2_common/boot_stage2/boot2_w25x10cl.S b/src/rp2_common/boot_stage2/boot2_w25x10cl.S
  15. index 89d2cd1..1bf7e10 100644
  16. --- a/src/rp2_common/boot_stage2/boot2_w25x10cl.S
  17. +++ b/src/rp2_common/boot_stage2/boot2_w25x10cl.S
  18. @@ -139,10 +139,10 @@ regular_func _stage2_boot
  19. // status register and checking for the "RX FIFO Not Empty" flag to assert.
  20. movs r1, #SSI_SR_RFNE_BITS
  21. -00:
  22. +1:
  23. ldr r0, [r3, #SSI_SR_OFFSET] // Read status register
  24. tst r0, r1 // RFNE status flag set?
  25. - beq 00b // If not then wait
  26. + beq 1b // If not then wait
  27. // At this point CN# will be deasserted and the SPI clock will not be running.
  28. // The Winbond WX25X10CL device will be in continuous read, dual I/O mode and
  29. --
  30. 2.39.5