Page MenuHomeFreeBSD

aarch64: Clarify the initial adjustments to sp for kernel exception entry
ClosedPublic

Authored by jhb on Sep 13 2025, 5:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 30, 4:17 AM
Unknown Object (File)
Tue, Jun 30, 4:17 AM
Unknown Object (File)
Mon, Jun 29, 10:21 PM
Unknown Object (File)
Sun, Jun 28, 9:42 AM
Unknown Object (File)
Sat, Jun 13, 8:24 PM
Unknown Object (File)
Mon, Jun 8, 5:51 AM
Unknown Object (File)
May 19 2026, 9:42 AM
Unknown Object (File)
May 18 2026, 4:32 AM
Subscribers

Details

Summary

The first store-pair instruction in save_registers_head decrements the
stack pointer to create room for most of the trapframe (and the
redzone area for nested exceptions). However, the expression was a
bit non-intuitive as it was using an expression without a leading
negative sign to adjust the stack pointer. Rewrite the expression so
that it is more clearly a negative adjustment to the stack pointer.

Suggested by: andrew
Sponsored by: AFRL, DARPA

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 67001
Build 63884: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Sep 13 2025, 5:05 PM
This revision is now accepted and ready to land.Sep 13 2025, 6:34 PM