From patchwork Thu Apr 4 19:14:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schnelle X-Patchwork-Id: 10886105 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CD1041390 for ; Thu, 4 Apr 2019 19:14:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B00B728662 for ; Thu, 4 Apr 2019 19:14:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A4918289EA; Thu, 4 Apr 2019 19:14:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE15B28662 for ; Thu, 4 Apr 2019 19:14:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730228AbfDDTOw (ORCPT ); Thu, 4 Apr 2019 15:14:52 -0400 Received: from smtp.duncanthrax.net ([89.31.1.170]:33751 "EHLO smtp.duncanthrax.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730153AbfDDTOv (ORCPT ); Thu, 4 Apr 2019 15:14:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=duncanthrax.net; s=dkim; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From; bh=78IeIiaTW/IumaLqfRMh+7JxtDEcZBIu8WvMaXXTDF4=; b=mdj3Zo5nTCZ4icYzaUqnkvigce Kyzf8zPgOaGwOjGw0zp8guvBYf+Eqv9tceC/Xf+WME3PWrkGSy2iv4F8CMnVZSu3Hog8Ge3Rscegw rZKMathHK/NTje0+siBCogXtCay/NZmEW7i4A/nRkhFwdi9d8Sh5RZzm4PodJStw2ry0=; Received: from [134.3.47.207] (helo=t470p.stackframe.org) by smtp.eurescom.eu with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1hC7p3-00012K-RT; Thu, 04 Apr 2019 21:14:49 +0200 From: Sven Schnelle To: deller@gmx.de Cc: linux-parisc@vger.kernel.org, Sven Schnelle Subject: [PATCH v2 0/3] Add KGDB support to PA-RISC Date: Thu, 4 Apr 2019 21:14:07 +0200 Message-Id: <20190404191410.3444-1-svens@stackframe.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, this is v2 of the patch set. Changes compared to v1: - add a missing #ifdef CONFIG_KGDB in traps.c, to fix a compile error when CONFIG_KGDB is not enabled. - call __patch_text() in kgdb, as kgdb already stops all CPUs. Sven Schnelle (3): parisc: add set_fixmap()/clear_fixmap() parisc: add parisc code patching parisc: add KGDB support arch/parisc/Kconfig | 1 + arch/parisc/include/asm/fixmap.h | 19 ++- arch/parisc/include/asm/kgdb.h | 68 ++++++++++ arch/parisc/include/asm/patch.h | 11 ++ arch/parisc/kernel/Makefile | 4 +- arch/parisc/kernel/kgdb.c | 210 +++++++++++++++++++++++++++++++ arch/parisc/kernel/patch.c | 78 ++++++++++++ arch/parisc/kernel/traps.c | 17 +++ arch/parisc/mm/Makefile | 2 +- arch/parisc/mm/fixmap.c | 43 +++++++ arch/parisc/mm/init.c | 14 ++- 11 files changed, 459 insertions(+), 8 deletions(-) create mode 100644 arch/parisc/include/asm/kgdb.h create mode 100644 arch/parisc/include/asm/patch.h create mode 100644 arch/parisc/kernel/kgdb.c create mode 100644 arch/parisc/kernel/patch.c create mode 100644 arch/parisc/mm/fixmap.c