]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r343744:
authorLeandro Lupori <luporl@FreeBSD.org>
Wed, 5 Jun 2019 14:19:54 +0000 (14:19 +0000)
committerLeandro Lupori <luporl@FreeBSD.org>
Wed, 5 Jun 2019 14:19:54 +0000 (14:19 +0000)
commita65db3bbe7b8bcfe1eb5f0a32d4d655cc79921aa
tree2af8ad341e2d64894e799a397c7e4035c0e4884f
parent549e97f3bb18dc2e0ff782b5a6524ae4760ece2e
MFC r343744:

powerpc64: Add a trap stack area

Currently, the trap code switches to the the temporary stack in the dbtrap
section. It works in most cases, but in the beginning of the execution, the
temp stack is being used, as starting in the powerpc_init() code.

In this current scenario, the stack is being overwritten, which causes the
return of breakpoint() to take abnormal execution.

This current patchset create a small stack to use by the dbtrap: codepath
avoiding the corruption of the temporary stack.

PR:             224872
Submitted by:   breno.leitao_gmail.com
Reviewed by:    jhibbits
Differential Revision:  https://reviews.freebsd.org/D14484
sys/powerpc/aim/locore32.S
sys/powerpc/aim/locore64.S
sys/powerpc/aim/trap_subr32.S
sys/powerpc/aim/trap_subr64.S