All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heikki Lindholm <holindho@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-core] [PATCH] xenomai 2.1 ppc64 i-pipe support
Date: Fri, 18 Nov 2005 18:41:50 +0200	[thread overview]
Message-ID: <437E044E.1030503@domain.hid> (raw)

[-- Attachment #1: Type: text/plain, Size: 68 bytes --]

Xenomai 2.1:

- Add ppc64 I-pipe kernel support

-- Heikki Lindholm

[-- Attachment #2: xenomai2.1-051118-ipipe-ppc64.patch --]
[-- Type: text/plain, Size: 1470 bytes --]

diff -Nru xenomai/include/asm-powerpc/system.h xenomai-devel/include/asm-powerpc/system.h
--- xenomai/include/asm-powerpc/system.h	2005-11-08 09:43:39.000000000 +0200
+++ xenomai-devel/include/asm-powerpc/system.h	2005-11-17 12:51:47.000000000 +0200
@@ -127,10 +127,17 @@
 #endif /* CONFIG_PPC64 */
 #else /* !CONFIG_ADEOS_CORE */
 #define xnarch_fault_pf_p(fi)   ((fi)->exception == IPIPE_TRAP_ACCESS)
+#ifdef CONFIG_PPC64
+#define xnarch_fault_bp_p(fi)   ((current->ptrace & PT_PTRACED) && \
+				 ((fi)->exception == IPIPE_TRAP_IABR || \
+				  (fi)->exception == IPIPE_TRAP_SSTEP || \
+				  (fi)->exception == IPIPE_TRAP_PERFMON))
+#else /* !CONFIG_PPC64 */
 #define xnarch_fault_bp_p(fi)   ((current->ptrace & PT_PTRACED) && \
 				 ((fi)->exception == IPIPE_TRAP_IABR || \
 				  (fi)->exception == IPIPE_TRAP_SSTEP || \
 				  (fi)->exception == IPIPE_TRAP_DEBUG))
+#endif /* CONFIG_PPC64 */
 #endif /* CONFIG_ADEOS_CORE */
 
 #define xnarch_fault_notify(fi) (!xnarch_fault_bp_p(fi))
diff -Nru xenomai/ksrc/arch/powerpc/switch_64.S xenomai-devel/ksrc/arch/powerpc/switch_64.S
--- xenomai/ksrc/arch/powerpc/switch_64.S	2005-11-08 09:44:47.000000000 +0200
+++ xenomai-devel/ksrc/arch/powerpc/switch_64.S	2005-11-17 12:52:06.000000000 +0200
@@ -24,7 +24,6 @@
 #include <asm/processor.h>
 #include <asm/cputable.h>
 #include <asm/page.h>
-#include <asm/offsets.h>
 #include <asm/ppc_asm.h>
 
 #define RTHAL_SAVEREG(reg, pos)	std reg,STACK_FRAME_OVERHEAD+8*(pos)(r1)

             reply	other threads:[~2005-11-18 16:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-18 16:41 Heikki Lindholm [this message]
2005-11-20 10:25 ` [Xenomai-core] [PATCH] xenomai 2.1 ppc64 i-pipe support Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=437E044E.1030503@domain.hid \
    --to=holindho@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.