Skip to content

cpu/{atxmega,atmega_common}: fix invalid use of PSTR() [backport 2021.10]#16933

Merged
maribu merged 1 commit intoRIOT-OS:2021.10-branchfrom
maribu:backport/2021.10/cpu/avr8_common/bugfix
Oct 2, 2021
Merged

cpu/{atxmega,atmega_common}: fix invalid use of PSTR() [backport 2021.10]#16933
maribu merged 1 commit intoRIOT-OS:2021.10-branchfrom
maribu:backport/2021.10/cpu/avr8_common/bugfix

Conversation

@maribu
Copy link
Copy Markdown
Member

@maribu maribu commented Oct 1, 2021

Backport of #16920

Contribution description

core_panic() doesn't expect the message to be in program memory, but
in data memory. Bad things will happen on AVR when the address is
interpreted as being in data address space, but the allocation is
done in program address space.

Testing procedure

The corresponding panics (and IRQ without provided ISR) should print something sensible again.

Issues/PRs references

None

core_panic() doesn't expect the message to be in program memory, but
in data memory. Bad things will happen on AVR when the address is
interpreted as being in data address space, but the allocation is
done in program address space.

(cherry picked from commit 35a1b60)
@maribu maribu requested a review from kYc0o as a code owner October 1, 2021 19:55
@maribu maribu added Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Platform: AVR Platform: This PR/issue effects AVR-based platforms Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Oct 1, 2021
@maribu maribu requested a review from benpicco October 1, 2021 19:55
@maribu maribu merged commit 1874e63 into RIOT-OS:2021.10-branch Oct 2, 2021
@maribu maribu deleted the backport/2021.10/cpu/avr8_common/bugfix branch October 2, 2021 11:59
@maribu
Copy link
Copy Markdown
Member Author

maribu commented Oct 2, 2021

Thx!

@benpicco benpicco added this to the Release 2021.10 milestone Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Platform: AVR Platform: This PR/issue effects AVR-based platforms Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants