]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm/pmu: remove passing trap frame as argument
authorElliott Mitchell <ehem+freebsd@m5p.com>
Thu, 9 May 2024 23:04:34 +0000 (17:04 -0600)
committerWarner Losh <imp@FreeBSD.org>
Thu, 9 May 2024 23:14:29 +0000 (17:14 -0600)
commite64318e76ed90e8ef2666a9c5628e036d2cc8817
tree03cad5ae74ce24e981fe47557a9b24d162e29c89
parent24d5cc14dd60b49553ff3ee7830305621f782ff1
arm/pmu: remove passing trap frame as argument

While otherwise a handy potential approach, getting the trap frame via
the argument isn't documented and isn't supposed to be used.  Adjust
pmu_intr() to instead use curthread->td_intr_frame, which is the proper
way.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1126
sys/arm/arm/pmu.c