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
F137288121: D52514.id162140.diff
Sat, Nov 22, 2:18 AM
Unknown Object (File)
Thu, Nov 20, 7:12 AM
Unknown Object (File)
Tue, Nov 18, 1:34 PM
Unknown Object (File)
Sat, Nov 15, 4:56 AM
Unknown Object (File)
Fri, Nov 14, 5:02 AM
Unknown Object (File)
Thu, Nov 13, 11:26 PM
Unknown Object (File)
Wed, Nov 5, 11:01 PM
Unknown Object (File)
Fri, Oct 31, 6:15 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