From owner-svn-src-all@freebsd.org Sun Aug 23 13:18:57 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4FCD09C011E; Sun, 23 Aug 2015 13:18:57 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 405E41391; Sun, 23 Aug 2015 13:18:57 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t7NDIvXs016049; Sun, 23 Aug 2015 13:18:57 GMT (envelope-from andrew@FreeBSD.org) Received: (from andrew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t7NDIvpk016048; Sun, 23 Aug 2015 13:18:57 GMT (envelope-from andrew@FreeBSD.org) Message-Id: <201508231318.t7NDIvpk016048@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: andrew set sender to andrew@FreeBSD.org using -f From: Andrew Turner Date: Sun, 23 Aug 2015 13:18:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287031 - head/sys/arm64/arm64 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Aug 2015 13:18:57 -0000 Author: andrew Date: Sun Aug 23 13:18:56 2015 New Revision: 287031 URL: https://svnweb.freebsd.org/changeset/base/287031 Log: Handle the breakpoint instruction in userland by sending a SIGTRAP signal. Modified: head/sys/arm64/arm64/trap.c Modified: head/sys/arm64/arm64/trap.c ============================================================================== --- head/sys/arm64/arm64/trap.c Sun Aug 23 08:22:00 2015 (r287030) +++ head/sys/arm64/arm64/trap.c Sun Aug 23 13:18:56 2015 (r287031) @@ -327,6 +327,7 @@ el0_excp_unknown(struct trapframe *frame void do_el0_sync(struct trapframe *frame) { + struct thread *td; uint32_t exception; uint64_t esr; @@ -368,6 +369,11 @@ do_el0_sync(struct trapframe *frame) case EXCP_UNKNOWN: el0_excp_unknown(frame); break; + case EXCP_BRK: + td = curthread; + call_trapsignal(td, SIGTRAP, TRAP_BRKPT, (void *)frame->tf_elr); + userret(td, frame); + break; default: print_registers(frame); panic("Unknown userland exception %x esr_el1 %lx\n", exception,