Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Feb 2019 16:02:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        ppc@FreeBSD.org
Subject:   [Bug 224872] powerpc64: ddb breakpoints throwing a fast kernel trap
Message-ID:  <bug-224872-21-IsgX45jmBB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-224872-21@https.bugs.freebsd.org/bugzilla/>
References:  <bug-224872-21@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224872

--- Comment #5 from commit-hook@freebsd.org ---
A commit references this bug:

Author: luporl
Date: Mon Feb  4 16:02:04 UTC 2019
New revision: 343744
URL: https://svnweb.freebsd.org/changeset/base/343744

Log:
  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, t=
he
  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

Changes:
  head/sys/powerpc/aim/locore32.S
  head/sys/powerpc/aim/locore64.S
  head/sys/powerpc/aim/trap_subr32.S
  head/sys/powerpc/aim/trap_subr64.S

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224872-21-IsgX45jmBB>