HomeFreeBSD

arm64, powerpc: fix calculation of 'used' in GET_STACK_USAGE

Description

arm64, powerpc: fix calculation of 'used' in GET_STACK_USAGE

We do not consider the space reserved for the pcb to be part of the
total kstack size, so it should not be included in the calculation of
the used stack size.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

(cherry picked from commit b02908b051c897117ebbc3dcb55848383b17c435)

Details

Provenance
mhorneAuthored on Nov 30 2021, 3:15 PM
Parents
rG2bb54c1646c7: i386: take pcb and fpu area into account in GET_STACK_USAGE
Branches
Unknown
Tags
Unknown