Skip to content

Conversation

@W-M-R
Copy link
Contributor

@W-M-R W-M-R commented Feb 3, 2026

These two registers need to be cleared before arm64-r hwdebug can be used.The arm64-a does not have such stringent requirements.

Note: Please adhere to Contributing Guidelines.

Summary

arm64/hwdebug: support armv8r hwdebug:These two registers need to be cleared before arm64-r hwdebug can be used.The arm64-a does not have such stringent requirements.

Impact

none

Testing

build armv8-r config and use up_debugpoint_add api to test

These two registers need to be cleared before arm64-r hwdebug can be used.The arm64-a does not have such stringent requirements.

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
@github-actions github-actions bot added Arch: arm64 Issues related to ARM64 (64-bit) architecture Size: XS The size of the change in this PR is very small labels Feb 3, 2026
mdscr |= ARM64_MDSCR_EL1_MDE | ARM64_MDSCR_EL1_KDE;
write_sysreg(mdscr, mdscr_el1);

write_sysreg(0, osdlr_el1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include comments before these lines

@jerpelea jerpelea changed the title arm64/hwdebug: support armv8r hwdebug arc/arm64: support armv8r hwdebug Feb 3, 2026
@linguini1 linguini1 changed the title arc/arm64: support armv8r hwdebug arch/arm64: support armv8r hwdebug Feb 3, 2026
Copy link
Contributor

@linguini1 linguini1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Include test logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm64 Issues related to ARM64 (64-bit) architecture Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants