Don't use a non-zero argument for __builtin_frame_address

Mirror the change made for powerpc64 in r323687.  With this
change, gcc 6.4.0 can successfully compile and link a kernel
that runs on sparc64.

MFC after:	2 weeks
This commit is contained in:
Kurt Lidl 2017-10-11 03:50:44 +00:00
parent 7a174c3469
commit 8e4db4e4a1

View File

@ -93,5 +93,5 @@ void
stack_save(struct stack *st)
{
stack_capture(st, (struct frame *)__builtin_frame_address(1));
stack_capture(st, (struct frame *)__builtin_frame_address(0));
}